Recording every session

What did you build last Tuesday?

ccvault archives every Claude Code conversation into a searchable vault. Full-text search, interactive TUI, DuckDB analytics, and MCP integration.

ccvault
$ ccvault search "debugging the auth flow"

Found 3 results:

1. [assistant] 2026-02-12 14:32
Project: myapp
...found the root cause in the auth middleware...

2. [user] 2026-02-10 09:15
Project: backend-api
...the auth flow breaks when the token expires...

3. [assistant] 2026-01-28 16:44
Project: myapp
...let me debug the session handling...

Everything your conversation history needs

From lightning-fast search to deep analytics, ccvault turns your ~/.claude directory into a structured, queryable archive.

Full-Text Search with FTS5

Gmail-like query syntax with operators for projects, models, tools, dates, and exact phrases. Powered by SQLite FTS5 for instant results across thousands of sessions.

$ ccvault search "project:myapp tool:Edit after:2026-01-01"

Interactive TUI

Browse projects, drill into sessions, and read full conversations in a Bubble Tea-powered terminal interface.

DuckDB Analytics

Export to Parquet and query with DuckDB for aggregate analytics: token usage, model breakdown, project trends.

MCP Server

8 tools and 6 prompts over JSON-RPC. Give your AI assistants access to your full conversation history.

Markdown Export

Export any session to clean, readable markdown with tool usage details, thinking blocks, and full metadata.

Three commands. That's it.

01

Sync

Index your conversations from ~/.claude into a local SQLite database. Incremental by default, only processes new sessions.

ccvault sync
02

Search

Query across every conversation with Gmail-like operators. Filter by project, model, tool, date range, or free text.

ccvault search "fixing the bug"
03

Analyze

Browse with the TUI, export to markdown, build analytics caches, or connect via MCP for AI-powered insights.

ccvault tui

Give your AI access to your history

The MCP server exposes 8 tools and 6 prompts over JSON-RPC, letting any MCP-compatible assistant search and analyze your conversations.

search_conversations

Full-text search with pagination

get_session_summary

Quick session overview

get_turns

Paginated conversation turns

get_session

Full session as markdown

list_sessions

Recent sessions by project

list_projects

All indexed projects

get_stats

Archive statistics

get_analytics

Usage analytics + DuckDB

Claude Desktop Config

claude_desktop_config.json
{
  "mcpServers": {
    "ccvault": {
      "command": "ccvault",
      "args": ["mcp"]
    }
  }
}

Install in seconds

Homebrew, go install, or build from source. Pick your path and start archiving.

Homebrew

macOS and Linux

$ brew install 2389-research/tap/ccvault

Go Install

Requires Go 1.25+

$ go install github.com/2389-research/ccvault/cmd/ccvault@latest

From Source

Build it yourself

$ git clone https://github.com/2389-research/ccvault.git
$ cd ccvault
$ make build

Stop losing conversations.
Start building on them.

Every session you've had with Claude Code is sitting in ~/.claude right now. Make it searchable.