Skip to main content

Claude Vault

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

Quick Start

pip install -e .
claude-vault init          # run inside your Obsidian vault folder
claude-vault sync ~/Downloads/conversations.json

That's it. Your conversations are now in conversations/ as Markdown files.

Installation

Requirements: Python 3.8+, optional: Ollama for AI tagging and semantic search.

git clone https://github.com/MarioPadilla/claude-vault.git
cd claude-vault
python3 -m venv venv && source venv/bin/activate
pip install -e .

Optional — Ollama setup for AI features:

ollama serve
ollama pull llama3.2:3b        # for tagging & summarization
ollama pull nomic-embed-text   # for semantic search

Features

  • Local-first — everything stays on your machine, no external APIs required
  • Three import formats — Claude Web exports (.json), Claude Code history (.jsonl), and OpenCode sessions (.db) auto-detected
  • AI tagging & summarization — local LLM (Ollama) generates tags and summaries; falls back to keyword extraction
  • Semantic search — find conversations by concept, not just exact words
  • Smart relationship detection — automatically links related conversations via shared tags
  • Bi-directional sync — rename or move files freely; UUID tracking keeps everything in sync
  • Watch mode — auto-syncs when your export files change
  • PII protection — detect, redact, or skip conversations containing personal or sensitive data
  • Dry-run mode — preview all changes before writing anything

Usage

Export your conversations

  1. Go to claude.ai → Settings → Export data
  2. This downloads conversations.json
  3. For Claude Code history, point directly at ~/.claude

Sync

# Web export (auto-detected)
claude-vault sync ~/Downloads/conversations.json

# Claude Code history
claude-vault sync ~/.claude

# OpenCode (auto-detected from .db extension)
claude-vault sync ~/.local/share/opencode/opencode.db

# OpenCode (uses default path)
claude-vault sync --source opencode

# Preview changes without writing
claude-vault sync conversations.json --dry-run
# Semantic search (requires Ollama + nomic-embed-text)
claude-vault search "async error handling"

# Keyword search
claude-vault search "python" --mode keyword

# Filter by tag
claude-vault search "API" --tag debugging

Watch mode

claude-vault watch-add ~/Downloads --source web   # register a path
claude-vault watch                                # start (foreground)
claude-vault watch-status
claude-vault watch-stop

PII & sensitive content protection

Scan conversations for personal or confidential data before they are written to disk.

Detected patterns: emails, phone numbers, SSNs, credit card numbers, API keys, IP addresses, credential contexts (password:, token:, etc.). If Ollama is running, an LLM pass also classifies broader sensitive content.

Risk levels: high (SSN / credit card / API key), medium (email / phone), low (IP / credential context).

# Tag conversations that contain PII (adds pii-* tags + frontmatter fields)
claude-vault sync conversations.json --detect-pii

# Redact PII before writing — stored files contain [REDACTED-EMAIL] etc.
claude-vault sync conversations.json --detect-pii --redact-pii

# Skip conversations at medium risk or above entirely
claude-vault sync conversations.json --detect-pii --skip-sensitive

To make these behaviours permanent, set them in ~/.claude-vault/config.json:

{
  "pii": {
    "enabled": false,
    "redact": false,
    "skip_sensitive": false,
    "use_llm": true,
    "risk_threshold": "medium"
  }
}

Other commands

claude-vault status              # vault statistics
claude-vault retag               # regenerate AI tags (requires Ollama)
claude-vault retag --force       # regenerate even existing tags
claude-vault verify              # check file/database consistency
claude-vault verify --cleanup    # remove orphaned database entries
claude-vault config              # view current configuration

Use claude-vault [command] --help for full options on any command.

Configuration

Global config lives at ~/.claude-vault/config.json. Run claude-vault config to view and edit it.

Key settings:

Section Key Default Purpose
ollama model llama3.2:3b Model used for tagging
ollama url http://localhost:11434/api/generate Ollama endpoint
embeddings model nomic-embed-text Model used for semantic search
pii risk_threshold medium Minimum level to tag as sensitive
pii use_llm true Enable LLM-based classification
root custom_keywords null Extra tag → keyword mappings for fallback tagging

Troubleshooting

Error Fix
"Ollama not running" Run ollama serve
Semantic search returns nothing Run ollama pull nomic-embed-text
"Module not found" Run pip install -e .
"Not initialized" Run claude-vault init first

Contributing

Contributions are welcome. Please see CONTRIBUTING.md for setup and pull request guidelines.

License

Claude Vault is dual-licensed:

AGPL-3.0 (free) — for personal use, open-source projects, education, and non-commercial work. Modifications must be shared under the same license.

Commercial license — required for proprietary applications, SaaS products, or any deployment where you cannot comply with AGPL-3.0 copyleft terms. Contact via GitHub for pricing.

Use case License
Personal / open-source / education AGPL-3.0 ✅
Internal tool (source shared with employees) AGPL-3.0 ✅
Commercial SaaS or closed-source product Commercial 💼
Enterprise deployment (no source disclosure) Commercial 💼

Metadata

Release files for claude-vault 0.8.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for claude-vault 0.8.9
File Size Uploaded
claude_vault-0.8.9.tar.gz 59.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for claude-vault 0.8.9
File Interpreter ABI Platform
claude_vault-0.8.9-py3-none-any.whl Python 3 none any Details

Total release size: 103.3 kB

Release files / claude_vault-0.8.9.tar.gz

Download URL claude_vault-0.8.9.tar.gz
Size 59.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9ee21906299a58a551ff40abba87bb71ec3d19fce37383fbad6619700203d24c
BLAKE2b-256 checksum
How to use checksums
5960e05b6a8a9ea4afe32d65708f25da7dcc7dfb25ac301a85a4574e471d54e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / claude_vault-0.8.9-py3-none-any.whl

Download URL claude_vault-0.8.9-py3-none-any.whl
Size 44.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e8ddbced5bd363ced94872283c04718ce92b2cf79f6168127debe71f8e0837b
BLAKE2b-256 checksum
How to use checksums
07dd0cdc02fbf3bd146c85fc4cc31493c4668d67c667c7e34fa31c0eefffeb2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

0.9.1

2 release files

0.9.0

2 release files

0.8.11

2 release files

0.8.10

2 release files

This release

0.8.9 This release

2 release files

0.8.8

2 release files

0.8.7

2 release files

0.8.6

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page