# claude-sync

> Sync your Claude Code .claude/ directory across all your devices

Source: https://talira.ai/catalog/claude-sync-2fbqkagn
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / ai coding / claude code](https://talira.ai/categories/developer-tools/ai-coding/claude-code), [storage / sync](https://talira.ai/categories/storage/sync), [devops / backup](https://talira.ai/categories/devops/backup)
- Platforms: macos, linux, windows[^3]
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Self-hostable: yes[^1]
- Creator: Rene Fichtmueller

claude-sync is a small open source Node.js CLI that backs up and syncs [Claude Code](https://talira.ai/catalog/claude-code-jqv5000a.md)'s `~/.claude` directory (memory files, skills, settings, plugins and project folders) between machines. The recommended backends are a private [Git](https://talira.ai/catalog/git-ab5bez9f.md) repository or a self-hosted [Gitea](https://talira.ai/catalog/gitea-6a3pktfs.md), where each sync commits local changes, three-way merges the other devices' and stops on a real conflict; cloud folders, [Syncthing](https://talira.ai/catalog/syncthing-6w63xceb.md), rsync and custom commands also work, without merging. Claude Code's SessionStart and SessionEnd hooks can run it, so it pulls when a session starts and pushes when it ends. It never syncs credentials, keys or machine-specific files, holds incoming changes to `settings.json` and `plugins/` for review, and snapshots `~/.claude` before every sync so you can restore. It's one developer's project, with one tagged release (v1.1.0, October 2026).

## Links

- GitHub: https://github.com/renefichtmueller/claude-sync
- Docs: https://github.com/renefichtmueller/claude-sync/tree/main/docs

## Problems it solves

- back up my ~/.claude folder (settings, skills, memory) automatically when each Claude Code session ends
- keep Claude Code's memory files and skills the same on my laptop and my desktop
- keep a copy of my Claude Code session history in a private git repository
- set up a new machine with my whole Claude Code configuration in one command
- sync my Claude Code setup without copying my Claude login or API keys
- roll ~/.claude back to an earlier snapshot after something overwrote my settings
- stop another machine from silently changing my Claude Code hooks or MCP servers
- sync Claude Code's config over Syncthing or rsync instead of a cloud service
- see which of my machines last synced their Claude Code config

## Features

- syncs ~/.claude through git or a self-hosted Gitea, with three-way merges
- experimental iCloud, Dropbox, OneDrive, Syncthing, rsync over SSH and custom-command backends
- pulls on session start and pushes on session end through Claude Code hooks
- never syncs credentials, settings.local.json, .env files, keys, shell snapshots or IDE tokens
- holds settings.json and plugins/ changes from other devices for review before applying them
- a local snapshot before every sync, with history and restore commands
- selective sync with include and exclude patterns per device
- device registry and a short status for shell prompts
- conflicts stop the sync instead of overwriting; resolve with --prefer local or remote

## Limitations

- Doesn't encrypt what it syncs: encryption at rest isn't implemented yet, so use a private remote you control[^1]
- Doesn't sync in real time: the file watcher isn't implemented, so it syncs on demand or from Claude Code's session hooks[^1]
- Doesn't merge changes or sync deletions on the cloud, Syncthing and rsync backends: the last copy wins[^1]

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.28 out of 1.
Signals: backing 0.20, extensibility 0.20.

- created by Rene Fichtmueller

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [Claude Code](https://talira.ai/catalog/claude-code-jqv5000a.md)

## Alternatives

- [chezmoi](https://talira.ai/catalog/chezmoi-jg5mqkmp.md): Manage your dotfiles across multiple diverse machines, securely.
- [restic](https://talira.ai/catalog/restic-zvg5aa8d.md): Fast, secure, efficient backup program
- [rclone](https://talira.ai/catalog/rclone-0nm5r7vf.md): rsync for cloud storage
- [Syncthing](https://talira.ai/catalog/syncthing-6w63xceb.md): Open Source Continuous File Synchronization
- [Claude Code Trace](https://talira.ai/catalog/claude-code-trace-fsyaps89.md): Claude Code session log viewer for JSONL files in ~/.claude/projects: browse conversations, tool calls, tokens, and live tail sessions on desktop, web, and TUI
- [claude-code-log](https://talira.ai/catalog/claude-code-log-fvq2sstj.md): A Python CLI tool that converts Claude Code transcript JSONL files into readable HTML and Markdown

## Sources

[^1]: https://github.com/renefichtmueller/claude-sync/blob/main/README.md (checked 20 Nov 2026)
[^2]: https://github.com/renefichtmueller/claude-sync/blob/main/LICENSE (checked 20 Nov 2026)
[^3]: https://github.com/renefichtmueller/claude-sync/blob/main/docs/faq.md (checked 20 Nov 2026)
