Skip to main content

Automatic Claude Code session sync

Project description

CC-Vault

Automatic Claude Code session backup and search. Your conversations, synced and searchable.

Installation

pip install cc-vault

Quick Start

1. Authenticate

cv auth

Opens your browser for GitHub login. Once approved, the CLI stores a refresh token locally.

2. Enable Auto-Sync

cv install && source ~/.bashrc

This installs a shim that automatically uploads sessions after each claude command.

3. Use Claude Normally

claude

Sessions are automatically synced when you exit.

CLI Commands

Command Description
cv auth Authenticate with GitHub
cv sync Manually sync recent sessions (last 7 days)
cv sync --days 30 Sync sessions from last 30 days
cv install Install claude shim for auto-sync
cv uninstall Remove the claude shim
cv status Show authentication and shim status

How It Works

Authentication

  1. Run cv auth
  2. Browser opens for GitHub login
  3. Approve the device code shown in terminal
  4. CLI saves token to ~/.config/cc-vault/config.yaml

Auto-Sync

  1. cv install creates a shim that wraps the claude command
  2. When you run claude, the shim runs the real Claude CLI
  3. After Claude exits, new/modified sessions are uploaded automatically

Configuration

Config is stored at ~/.config/cc-vault/config.yaml:

api_base_url: https://your-backend-url.com
refresh_token: eyJ...
user_id: user_abc123

Claude Code Data Location

Sessions are read from:

  • Windows: %LOCALAPPDATA%\claude\projects\
  • Mac/Linux: ~/.claude/projects/

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cc_vault-0.1.2.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cc_vault-0.1.2-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file cc_vault-0.1.2.tar.gz.

File metadata

  • Download URL: cc_vault-0.1.2.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for cc_vault-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d676fc79fb49529754f86a54a5b21199c8918f299237536ae55ae489952da950
MD5 f3906b9dc8f8b70fe1be1dc73fc691df
BLAKE2b-256 a4d2357c7d24619a70e3b1a459537e176dae1c031c44fd4a5ee3f952193369be

See more details on using hashes here.

File details

Details for the file cc_vault-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: cc_vault-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for cc_vault-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 df3f347bc0cb82744cbf910e72414dce37b8bc0e18629728f5c0327e21adfc9f
MD5 98421fc6687188ea994f407d57adae87
BLAKE2b-256 46f2f954cba97d4a98a047ab4a9c35d7c9d91dedd2229b788e806cb3ecd85c6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page