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
- Run
cv auth - Browser opens for GitHub login
- Approve the device code shown in terminal
- CLI saves token to
~/.config/prompt-vault/config.yaml
Auto-Sync
cv installcreates a shim that wraps theclaudecommand- When you run
claude, the shim runs the real Claude CLI - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ca06c7517b419a21a018975f578ce8e54d1d7aae0cf8831fede9a5a44a50a42
|
|
| MD5 |
92a33295e960e17ea3fdedd58cf88d80
|
|
| BLAKE2b-256 |
b8c4034477378a3e7a6b5c66e6840e1eaccdf112fb1c44a915f1be68d367b501
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad3dd1997d1344b11835c27d228ab2695be056c47bef9d47f5b6c7fbbff20adc
|
|
| MD5 |
af233a83bf57a6c7840809fa4d3c9fd6
|
|
| BLAKE2b-256 |
5bc6162041b794fde791ae0123d4983a9f24821e11b80f120e39e516be2be98b
|