AI_Conversation_Index (AI Conversation Index): Search Every AI Chat from One Local Index
A practical read of 'AI_Conversation_Index', the self-hosted chat-history index by davidjbeveridge. What it imports, how FTS5 and local embeddings work without an API key, how the single-writer and read-only MCP split protects data, and the exact setup and backup commands. It also spells out which providers require a normalised format rather than a native parser.
View 1 referenceAllow the functional cookie to save your likes. Privacy details
What is AI Conversation Index?
AI_Conversation_Index, also written AI Conversation Index, is a self-hosted index that collects your AI conversations from several providers into one local SQLite database and exposes them through a CLI and an MCP server. Its stated goal is to keep one canonical copy on hardware you control and make it searchable from coding agents.
Which conversation sources does it import?
Native support covers ChatGPT export ZIP files, local Codex rollout JSONL, and a normalised JSON or JSONL format for other collectors. The project README also lists a ChatGPT desktop bridge, Gemini CLI sessions and Antigravity transcripts. Each source has a different import path and incremental strategy, so check the support table before relying on one.
For Gemini Apps Takeout, Claude and Grok exports, the project uses the normalised format; provider-specific parsers are described as pending fixtures. The README explicitly says it does not claim an untested provider parser. Treat that boundary as exact rather than assuming broad provider coverage.
How does search work without an API key?
The index combines FTS5 full-text search with deterministic local embeddings for semantic queries, plus metadata filtering. Because embeddings are computed locally, the README states that no OpenAI API key is required for search or local embeddings. A hybrid mode is demonstrated in the quick start.
./scripts/chat-history-cli search "Rust SQLite" --mode hybrid --limit 10
Why separate the writer from the readers?
A single live SQLite writer avoids conflicting writes, while other machines query through an authenticated read-only Streamable HTTP MCP endpoint over Tailscale. A separate authenticated writer endpoint is reserved for trusted remote collectors, such as a second Mac that contributes its Codex sessions.
The bearer token is generated into the macOS Keychain. Interactive clients such as OpenClaw use the read-only endpoint on port 8765; the writer service uses a different token and port. The README warns against placing live SQLite or WAL files in synchronised folders such as iCloud Drive, Google Drive or Dropbox.
What does installation look like?
The quick start targets macOS and requires Git, Rust/Cargo and the Codex CLI. After installation you start a new Codex task so the plugin reloads, then import an archive and sync local Codex rollouts. Without those tools the self-hosted script fails before any index is created.
git clone https://github.com/davidjbeveridge/chat-history-index-mcp.gitcd chat-history-index-mcp && ./scripts/install-self-hosted./scripts/chat-history-cli import --archive ~/Downloads/openai-export.zip --mode copy --run-api-jobs false./scripts/chat-history-cli sync-codex && ./scripts/chat-history-cli doctor
How do backup and migration work?
A consistent backup can be taken while the index is online, and a migration bundle carries both the database and portable provider cursor state. The Codex cursor is deliberately excluded because it belongs to the machine whose local sessions were scanned.
./scripts/chat-history-cli backup --output ~/Desktop/ai-history.sqlite3
./scripts/chat-history-migrate export --output ~/Desktop/ai-history-migration.tar.gz
What are the privacy boundaries?
Conversation content stays in the configured data home unless you explicitly transfer a backup or expose an MCP endpoint, and the project states that it collects no telemetry. The default macOS location is under ~/Library/Application Support/chat-history-index-mcp/, overridable with --data-home or CHAT_HISTORY_DATA_HOME. Index data is never meant to live in the Git repository.
FAQ: common questions about AI_Conversation_Index
Can I search Claude or Grok chats today?
Only through the documented normalised JSON/JSONL format. The README does not claim finished parsers for those providers, so you would need a collector that emits the expected shape. Treat provider support as a boundary to check, not a blanket promise.
Does it work on Windows or Linux?
The documented quick start is macOS, including LaunchAgent service management and Keychain-backed tokens. The architecture is a local SQLite file and MCP services, so other platforms are plausible, but the supported setup described in the README is macOS with Git, Rust and the Codex CLI.
Why not just keep the exports in a folder?
A folder gives you files, not a searchable index. This tool adds idempotent, source-aware imports so re-importing a newer export does not destroy the existing index, and it makes the result available to MCP clients while you work.
What does a real search session look like?
Suppose you remember that a coding assistant once suggested a SQLite trick but not which project or day. You run a hybrid search for the phrase, open the matching turn, and your agent now has the exact context instead of a vague memory.
The index is also useful before a new task: paste a topic into the CLI, find the earlier decision, and hand that passage to the agent. Because imports are idempotent and source-aware, re-running an import after a newer ChatGPT export adds what is new without erasing the existing index.
Can I use the index from a browser extension?
The project itself is a CLI and MCP server; it does not ship a browser extension. A separate Chrome extension project exists for capturing conversations, but it is a different tool with a different storage model, so do not assume it reads this index.
Operationally, the most important rule is to keep the canonical SQLite file on one machine and expose it read-only. If two machines both write, the indexes diverge and there is no merge path. The project's writer endpoint exists so remote collectors can add data without giving clients write access.
Bottom line and limits
The useful idea is architectural: one canonical local index, deterministic local embeddings, and a strict split between a single writer and authenticated read-only consumers. The limits are equally clear: macOS-focused setup, several providers only via a normalised format, and no claim of tested parsers where fixtures are missing. Check the README before relying on a specific provider.