My personal Claude Code configuration synced across devices.
# Clone this repo
git clone [email protected]:YOUR_USERNAME/claude-config.git
cd claude-config
# Install config on this machine
npm run push # or: pnpm push# 1. Pull changes from ~/.claude to repo
npm run pull # or: pnpm pull
# 2. Commit and push
git add -A && git commit -m "Update config" && git push# 1. Pull from git
git pull
# 2. Push config to ~/.claude
npm run push # or: pnpm push
# 3. Restart Claude Code| Command | Description |
|---|---|
npm run pull / pnpm pull |
Copy from ~/.claude โ repo (for committing) |
npm run push / pnpm push |
Copy from repo โ ~/.claude (install config) |
npm run status / pnpm status |
Show what's synced |
CLAUDE.md- Main instructions filesettings.json- Settings and permissionsrules/- Custom rulesagents/- Custom agentscommands/- Custom slash commandsscripts/- Helper scripts
The script automatically handles different paths between Linux/WSL and macOS:
- In repo: Paths use placeholder
{{CLAUDE_HOME}} - On push: Placeholder is replaced with actual
~/.claudepath - On pull: Actual paths are normalized back to placeholder
This means the same config works on both systems! ๐