Cc Sync — Development skill for Claude Code
Seamlessly sync Claude Code config & sessions across machines 跨机器无缝同步 Claude Code 配置和会话.
How to install Cc Sync
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ikook-wang/cc-sync and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cc Sync does
Seamlessly sync Claude Code config & sessions across machines 跨机器无缝同步 Claude Code 配置和会话.
Alternatives in Development
- Claude Supermemory — Persistent memory across sessions and projects using Supermemory 2.3k ★
- Dotenv Vault — Sync environment variables across machines for consistent Claude Code behavior 1.2k ★
- Tmux Claude Session Manager — Run many Claude Code sessions across your projects, each in its own tmux session — then list them, see which a 380 ★
README
cc-sync
Seamlessly sync your Claude Code configuration and sessions across machines.
简体中文 · English
Switch computers, run `claude --resume`, and pick up right where you left off.
What It Does
Start claude → auto pull latest config & sessions
↓
Working...
↓
Exit claude → auto commit & push
↓
Other machine → start claude → auto pull → claude --resume
**What gets synced:**
settings.json— Claude Code settings, hooks, plugin togglescommands/— Custom slash commandsskills/— Custom skillsplugins/— Installed pluginsprojects/*/memory/— Cross-session memory- Recent N sessions (for
claude --resume)
**What stays local:**
.credentials.json— Credentials (security)debug/,cache/,telemetry/, etc. — Local caches- Old session files — Only recent ones are synced to keep repo size manageable
Installation
Prerequisites
- Claude Code installed and used at least once
- Git
- A GitHub repository (recommend private) for storing config
One-Line Install
curl -fsSL https://raw.githubusercontent.com/ikook-wang/cc-sync/main/install.sh | bash
The installer will interactively guide you through:
- Enter your GitHub repo URL
- Set number of sessions to keep (default: 3)
- Auto-configure
.gitignore, hooks, and shell wrapper - Run initial sync
Run this once on each machine.
On Another Machine
# 1. Install cc-sync (use the same GitHub repo URL)
curl -fsSL https://raw.githubusercontent.com/ikook-wang/cc-sync/main/install.sh | bash
# 2. Resume your previous session
claude --resume
How It Works
cc-sync uses three mechanisms for automatic syncing:
| When | Mechanism | Action |
|---|---|---|
| Start Claude Code | SessionStart hook |
git pull to get latest |
| Exit Claude Code | S |
Related Skills
Cc Sync Legacy
Seamlessly sync Claude Code config & sessions across machines 跨机器无缝同步 Claude Code 配置和会话
Claude Public
A public template of my personal Claude Code configuration: settings, sync scripts, file-manager agent, and a
Claude Nomad
Sync your full Claude Code setup across machines: skills, settings, and session history, with path remapping a
Claude Knowledge Sync
An environment-aware Claude Code skill that synchronizes and merges memories and steering documents across mul
Harvest Memory
Promote durable learnings from the machine-local per-project memory store into the version-controlled repo mem
Codex Claude Transfer
Local-first CLI (cct) that moves Codex & Claude Code sessions between machines: export to a .codexbundle, copy
Related Agents
Internationalization Specialist
I18n expert that implements multi-language support, handles localization, and ensures applications work seamle
Brain Merge
Semantically merge brain knowledge from multiple Claude Code machines. Use when brain-sync or brain-join detec
Qp Bug Hunter
Read-only reviewer for the quality-pass bugs dimension — logout teardown, reconnect state machines, token refr