tawanorg/claude-sync

Sync Claude Code sessions across devices using Cloudflare R2 with end-to-end encryption

What it solves

Claude Code stores session data, project history, and custom agent configurations locally on your machine. This makes it difficult to maintain a consistent workflow when switching between different computers. This tool solves that by synchronizing your Claude Code environment across multiple devices.

How it works

It acts as a CLI bridge between your local ~/.claude directory and cloud storage providers like Cloudflare R2, AWS S3, Google Cloud Storage, or WebDAV. Before uploading, it compresses your files and encrypts them using the age encryption tool, ensuring your conversation data remains private. It handles path mapping automatically, so even if your home directory structure differs between machines, your sessions remain accessible and resumable.

Who it’s for

This is for power users of Claude Code who frequently switch between multiple workstations (e.g., a desktop and a laptop) and want a seamless, encrypted, and automated way to keep their AI coding sessions and configurations in sync.

Highlights

  • Cross-device synchronization: Keep your projects, history, and custom rules consistent across any number of machines.
  • End-to-end encryption: Uses age with passphrase-based keys to ensure your data is encrypted before it ever leaves your machine.
  • Flexible storage: Supports major cloud providers (R2, S3, GCS) and self-hosted WebDAV servers.
  • Smart path mapping: Automatically handles differences in file system layouts between devices so that sessions resume correctly.
  • Shell integration: Optional hooks allow for automatic syncing whenever you open or close your terminal.

Related

  • Project
  • Project
  • Project
  • Project