Features
- Cross-device sync: Continue Claude Code conversations on any laptop
- 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 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 @tawandotorg/claude-sync
# Set up (interactive wizard)
claude-sync init
# Push your sessions
claude-sync push
Second Device
# Install
npm install -g @tawandotorg/claude-sync
# 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.
Setup Guide
Step 1: Choose a Storage Provider
| Provider | Free Tier | Best For |
|---|
| Cloudflare R2 | 10GB storage | Personal use (recommended) |
| AWS S3 | 5GB (12 months) | AWS users |
| Google Cloud Storage | 5GB | GCP users |
| S3-compatible | varies | Backblaze B2, MinIO, Wasabi, DigitalOcean Spaces, self-hosted |
| WebDAV | Self-hosted (unlimited) | Nextcloud/ownCloud users |
Step 2: Create a Bucket
Cloudflare R2 (recommended)
- Go to Cloudflare Dashboard → R2 Object Storage
- Click "Create bucket" → name it
claude-sync
- Go to "Manage R2 API Tokens" → "Create API Token"
- Select Object Read & Write permission → Create
You'll need: Account ID, Access Key ID, Secret Access Key
AWS S3
- Go to S3 Console → Create bucket
- Go to IAM Security Credentials
- Create Access Keys
You'll need: Access Key ID, Secret Access Key, Region
Google Cloud Storage
- Go to Cloud Storage → Create bucket
- Go to Service Accounts → Create service account
- Grant "Storage Object Admin" role → Create JSON key
You'll need: Project ID, Service Account JSON file (or use gcloud auth application-default login)
S3-compatible (Backblaze B2, MinIO, Wasabi, DigitalOcean Spaces, ...)
Any provider exposing an S3-compatible API works through the S3-compatible (custom endpoint) option. Create a bucket and an application key with your provider, then supply its S3 endpoint URL.
Example (Backblaze B2):
claude-sync init --provider s3-compatible --endpoint https://s3.us-west-004.backblazeb2.com
You'll need: Endpoint URL, Access Key ID, Secret Access Key, Bucket. The signing region is auto-detected from the endpoint (e.g. us-west-004); for providers that ignore it, auto is used.