Skip to main content

Sync Claude conversations to Obsidian markdown files

Project description

Claude Vault

Transform your Claude conversations into a searchable, organized knowledge base in Obsidian.

What is Claude Vault?

Claude Vault is a command-line tool that syncs your Claude AI conversations into beautifully formatted Markdown files that integrate seamlessly with Obsidian and other note-taking tools.

Features

  • Local-first: Your conversations, your vault, your control
  • Simple CLI: Easy to use, powerful features
  • Bulk Historical Import: Import your entire Claude conversation history at once
  • Obsidian-native: Full frontmatter, tags, and metadata support
  • AI-Powered Tagging: Automatic tag generation using local LLMs (Ollama) - no API costs
  • Bi-directional sync: Rename and move files freely - they stay in sync
  • Smart updates: Only syncs what's changed
  • UUID tracking: Maintains file relationships even after renaming
  • Cross-Conversation Search: Search across all conversations with context and navigate to related ones
  • Smart Relationship Detection: Automatically finds and links related conversations via common tags

Prerequisites

  • Python 3.8+
  • Ollama (optional but recommended for AI tagging)

Install Claude Vault

# Clone or download the project
git clone https://github.com/MarioPadilla/claude-vault.git
cd claude-vault

# Create virtual environment
python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install in development mode
pip install -e .

# Verify installation
claude-vault --help

Test

python tests/test_parser.py

Install Ollama (Optional for AI tagging)

# On macOS
brew install ollama

# Start ollama
ollama serve

# Pull a balanced model (quality/speed)
ollama pull llama3.2:3b

Quick Usage

1. Export Your Claude Conversations

  1. Go to claude.ai
  2. Click profile → Settings
  3. Export conversations (downloads conversations.json)

2. Initialize Vault

# Navigate to your Obsidian vault
cd ~/Documents/ObsidianVault

# Initialize Claude Vault
claude-vault init

3. Sync Conversations

# Import all conversations
claude-vault sync ~/Downloads/conversations.json

4. Check Status

claude-vault status

Common Commands

# Search conversations
claude-vault search "python"

# Search with tag filter
claude-vault search "API" --tag code

# Regenerate tags with AI
claude-vault retag

# Verify vault integrity
claude-vault verify

# Clean up orphaned entries
claude-vault verify --cleanup

Troubleshooting

"Ollama not running": Start with ollama serve

"Module not found:" Reinstall with pip install -e . "Not initialized:" Run claude-vault init first

License

Claude Vault is available under a dual-license model:

🆓 Open Source License (AGPL-3.0)

Free for:

  • ✅ Personal use
  • ✅ Open source projects
  • ✅ Educational purposes
  • ✅ Research and academic use
  • ✅ Non-commercial applications

Requirements under AGPL-3.0:

  • Must disclose source code of any modifications
  • Must keep the same license (AGPL-3.0)
  • Must provide source code to users (including SaaS/network users)
  • Any derivative work must also be licensed under AGPL-3.0

Perfect for: Developers, hobbyists, students, and open-source contributors who want to freely use and modify Claude Vault.


💼 Commercial License

Required for:

  • ❌ Proprietary/closed-source applications
  • ❌ Commercial SaaS products
  • ❌ Enterprise deployments where source code disclosure is not desired
  • ❌ Products that cannot comply with AGPL-3.0 copyleft terms

Benefits of Commercial License:

  • ✅ Use Claude Vault in proprietary applications
  • ✅ No obligation to disclose your source code
  • ✅ Freedom from AGPL-3.0 copyleft requirements
  • ✅ Priority support (optional)
  • ✅ Custom modifications and consulting (optional)

Pricing: Contact me for a quote based on your use case.

📧 Contact: Github 📝 Subject: Claude Vault Commercial License Inquiry


❓ Which License Do I Need?

Use Case License Needed
Building an open-source tool AGPL-3.0 (Free) ✅
Learning/experimenting AGPL-3.0 (Free) ✅
Contributing to Claude Vault AGPL-3.0 (Free) ✅
Internal company tool (source shared with employees) AGPL-3.0 (Free) ✅
Commercial SaaS product Commercial 💼
Closed-source application Commercial 💼
Selling a product that includes Claude Vault Commercial 💼
Enterprise deployment (no source disclosure) Commercial 💼

Still unsure? Contact me


Note: By using, modifying, or distributing Claude Vault without obtaining a commercial license, you agree to comply with the AGPL-3.0 terms.

CLI Commands

init

Initialize Claude Vault in the specified directory.

claude-vault init [VAULT_PATH]

Example:

claude-vault init
claude-vault init ~/Documents/my-vault

sync

Sync Claude conversations to markdown files.

claude-vault sync [EXPORT_PATH]

Examples:

claude-vault sync ~/Downloads/conversations.json

status

Show Claude Vault status and statistics.

claude-vault status

verify

Verify integrity of tracked conversations and optionally clean up mismatches.

claude-vault verify

Examples:

claude-vault verify
claude-vault verify --cleanup

search

Search across all conversations.

claude-vault search KEYWORD [OPTIONS]

Arguments:

  • KEYWORD - Search term (required)

Options:

  • --tag TEXT - Filter by tag
  • --show-related / --no-show-related - Show related conversations (default: enabled)

Examples:

# Basic search
claude-vault search "python"

# Search with tag filter
claude-vault search "machine learning" --tag "ai"

# Search without showing related conversations
claude-vault search "debugging" --no-show-related

retag

Regenerate tags for conversations using AI.

claude-vault retag [OPTIONS]

Options:

  • --force - Regenerate all tags, even existing ones

Examples:

# Tag conversations without tags
claude-vault retag

# Force regenerate all tags
claude-vault retag --force

Requirements: Requires Ollama to be running with llama3.2:3b model installed.

Getting Help

Get help for any command:

claude-vault --help
claude-vault [COMMAND] --help

Examples:

claude-vault sync --help
claude-vault search --help

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

claude_vault-0.1.0.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

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

claude_vault-0.1.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file claude_vault-0.1.0.tar.gz.

File metadata

  • Download URL: claude_vault-0.1.0.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for claude_vault-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ecb7d3e94610024d92addf88cdd36a9af992030e79350cbda2b17fe3c0ff915e
MD5 ed2e7bccf863aa685cd810b537fd0fbf
BLAKE2b-256 c04096ae61ed493d7665f617522cdbf6d7416db05b2266b4ab5a49e5bd2cfdd1

See more details on using hashes here.

File details

Details for the file claude_vault-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: claude_vault-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for claude_vault-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14465f4415ce36626c99f229e861fcd18b63763049d5949d31dc5d5532d09b22
MD5 d5c35c31394e8e3c60356cd3a2ce3065
BLAKE2b-256 e3e3d45d9cc07b7630eb5ac3dc5ab65d1369d21793a51332208560c32ba511c7

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