This is a fork. claude-sync-profiles is a standalone fork of
tawanorg/claude-sync, which does all
the heavy lifting of encrypted cross-device sync — full credit to its authors.
This fork adds multi-account support (profiles): sync several Claude
config directories (e.g. ~/.claude for work and ~/.claude-personal for
personal) independently from the same machine, to the same or different
buckets. See Multiple Claude accounts.
Features
- Cross-device sync: Continue Claude Code conversations on any laptop
- Multi-account profiles (this fork): sync
~/.claude and ~/.claude-personal (or any CLAUDE_CONFIG_DIR) side by side, each with its own storage config, encryption key, and sync state
- Shared-bucket namespacing (this fork): an optional remote key prefix lets several profiles share a single bucket without colliding
- Multi-provider storage: Cloudflare R2, AWS S3, Google Cloud Storage, S3-compatible (Backblaze B2, MinIO, Wasabi), or WebDAV (Nextcloud, ownCloud)
- End-to-end encryption: All files encrypted with age before upload
- Passphrase-based keys: Same passphrase = same key on any device (no file copying)
- Selective sync: Choose
--scope sessions to sync only conversation data (skip plugins/node_modules)
- Interactive wizard: Arrow-key driven setup with validation
- Secure self-updating:
claude-sync update downloads and verifies SHA256 checksums
- Simple CLI:
push, pull, status, diff, conflicts, profiles commands
- Compression: Gzip compression before encryption for faster syncs
- Shell integration: Optional shell hooks for automatic push/pull
Quick Start
First Device
# Install
npm install -g claude-sync-profiles
# Set up (interactive wizard)
claude-sync init
# Push your sessions
claude-sync push
Second Device
# Install
npm install -g claude-sync-profiles
# Set up with SAME storage credentials
claude-sync init
# Select same provider (R2/S3/GCS/WebDAV)
# Enter same bucket name and credentials
# Choose "Passphrase" for encryption
# Enter the SAME passphrase as first device
# ✓ Encryption key verified <-- confirms passphrase matches!
# Preview what would be synced
claude-sync pull --dry-run
# Pull sessions (creates backup if you have existing files)
claude-sync pull
Same passphrase = same encryption key. The init verifies your passphrase can decrypt remote files before completing.
Multiple Claude accounts (profiles)
If you run more than one Claude account on a machine — say work in the
default ~/.claude and personal in ~/.claude-personal (pointed at by
Claude Code's CLAUDE_CONFIG_DIR) — set up one profile per account. Each
profile has its own storage config, encryption key, sync state, and Claude
directory:
- default profile →
~/.claude-sync/, syncs ~/.claude (exactly the pre-fork behavior)
- named profile
<name> → ~/.claude-sync/profiles/<name>/, syncs whatever claude_dir you configure
Set up
# Work account: default profile, syncs ~/.claude
claude-sync init
# Personal account: its own profile, syncs ~/.claude-personal
claude-sync --profile personal init --claude-dir ~/.claude-personal
During a named profile's init you'll also be asked for a remote key prefix
(default: the profile name). The prefix namespaces the profile's files inside
the bucket, so both accounts can share one bucket without colliding — or
point each profile at a different bucket and leave the prefix empty. Use the
same prefix for the same profile on every device.
Daily use
claude-sync push # default (work) profile
claude-sync --profile personal push # personal profile
claude-sync push --all-profiles # every configured profile in one go
claude-sync pull --all-profiles
claude-sync profiles # list profiles, dirs, and remotes
export CLAUDE_SYNC_PROFILE=personal # or select via environment variable
On your other computer