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/prompt-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/prompt-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.1.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.1-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cc_vault-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 0ca06c7517b419a21a018975f578ce8e54d1d7aae0cf8831fede9a5a44a50a42
MD5 92a33295e960e17ea3fdedd58cf88d80
BLAKE2b-256 b8c4034477378a3e7a6b5c66e6840e1eaccdf112fb1c44a915f1be68d367b501

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cc_vault-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad3dd1997d1344b11835c27d228ab2695be056c47bef9d47f5b6c7fbbff20adc
MD5 af233a83bf57a6c7840809fa4d3c9fd6
BLAKE2b-256 5bc6162041b794fde791ae0123d4983a9f24821e11b80f120e39e516be2be98b

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