ai-chat-vault
Own your AI conversations. ai-chat-vault is a zero-dependency, local-first CLI and modern Web UI that archives exports from ChatGPT, Claude, and Gemini into a single SQLite + FTS5 vault, lets you full-text search across every chat in milliseconds, and exports clean Obsidian-ready Markdown files.
Why ai-chat-vault?
If you use ChatGPT, Claude, and Gemini side by side:
- Your best prompts, debugging sessions, and ideas are scattered across three web apps.
- Native web search is slow or missing across accounts/workspaces.
- Switching accounts, losing access, or canceling a plan puts your history at risk.
- Exporting clean Markdown with YAML frontmatter for Obsidian / Notion / Git takes manual work.
ai-chat-vault runs 100% offline with zero external Python dependencies (standard library only) and binds its local Web UI strictly to 127.0.0.1.
30-Second Quickstart
pip install ai-chat-vault
# 1. Import your ChatGPT, Claude, or Gemini export (.zip or .json):
ai-chat-vault import conversations.zip
# 2. See stats across all providers:
ai-chat-vault stats
# 3. Instant full-text search (SQLite FTS5 + BM25):
ai-chat-vault search "Obsidian"
ai-chat-vault search "bm25" --provider chatgpt
# 4. Export clean Obsidian-ready Markdown + _INDEX.md:
ai-chat-vault export --out ./my-ai-notes
# 5. Launch the local dark/light Web UI with drag-and-drop import (127.0.0.1:8765):
ai-chat-vault serve
Supported Export Formats
| Provider | How to export | What to pass to import |
|---|---|---|
| ChatGPT | Settings -> Data Controls -> Export Data | The .zip archive or conversations.json |
| Claude | Settings -> Privacy -> Export Data | The .zip archive or conversations.json |
| Gemini | Google Takeout -> Gemini Apps (MyActivity.json) or structured JSON |
The .zip archive or .json file |
Re-importing the same export is idempotent — conversations are upserted by provider + ID so you never get duplicates.
CLI Reference
ai-chat-vault [--db ai-chat-vault.db] import <file.zip | file.json | dir/>
ai-chat-vault [--db ai-chat-vault.db] search "<query>" [--provider all|chatgpt|claude|gemini] [--limit 15] [--json]
ai-chat-vault [--db ai-chat-vault.db] export [--out exported] [--provider all|chatgpt|claude|gemini]
ai-chat-vault [--db ai-chat-vault.db] stats [--json]
ai-chat-vault [--db ai-chat-vault.db] serve [--host 127.0.0.1] [--port 8765]
Obsidian Markdown Output
Every exported file includes clean YAML frontmatter compatible with Obsidian Properties & Dataview:
---
id: "claude:conv-claude-001"
title: "Designing an Obsidian Markdown frontmatter schema"
provider: claude
created_at: 2026-10-15T08:30:00Z
updated_at: 2026-10-15T08:35:00Z
tags: [ai-chat, claude]
---
# Designing an Obsidian Markdown frontmatter schema
License
MIT — see LICENSE.
Metadata
Release files for ai-chat-vault 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ai_chat_vault-0.3.0.tar.gz | 19.9 kB | With provenance | Details for ai_chat_vault-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ai_chat_vault-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for ai_chat_vault-0.3.0-py3-none-any.whl |
Total release size: 39.3 kB
Release files / ai_chat_vault-0.3.0.tar.gz
| Download URL | ai_chat_vault-0.3.0.tar.gz |
|---|---|
| Size | 19.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d789d93563e2cbbecde0b89e98d93ab56272a1359542228177be9188036c852b
|
|
BLAKE2b-256 checksum How to use checksums |
1e056219a048eb568b6dbf9df3bf31d055d750964efcc3129fa06cbd2db0dba6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / ai_chat_vault-0.3.0-py3-none-any.whl
| Download URL | ai_chat_vault-0.3.0-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68083bdad5de0a007518967b5e50a2a57309799ad8b46131e50ac859a7b2994d
|
|
BLAKE2b-256 checksum How to use checksums |
0b5256813b672a6f5e7dd7d583bc1c253bf52abbff5f844f0a802d3008b651d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for ai-chat-vault 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ai_chat_vault-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.