Skip to main content

ai-chat-vault

PyPI version CI License: MIT Python >= 3.11 Zero Dependencies

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.

ai-chat-vault Web UI Preview

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.2.1

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

Source distribution (sdist)

Source distribution for ai-chat-vault 0.2.1
File Size Uploaded Provenance Actions
ai_chat_vault-0.2.1.tar.gz 20.4 kB With provenance Details for ai_chat_vault-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ai-chat-vault 0.2.1
File Interpreter ABI Platform Actions
ai_chat_vault-0.2.1-py3-none-any.whl Python 3 none any Details for ai_chat_vault-0.2.1-py3-none-any.whl

Total release size: 40.3 kB

Release files / ai_chat_vault-0.2.1.tar.gz

Download URL ai_chat_vault-0.2.1.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8eb97071501e5fb2dbbd7675d1e8aa977bdd8f008451ec094e88095de7385cc0
BLAKE2b-256 checksum
How to use checksums
90f46369ef3c7f325d05fdb59c3197de7fab02c7801795c54d8273cd21f7ad8b
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 log

Release files / ai_chat_vault-0.2.1-py3-none-any.whl

Download URL ai_chat_vault-0.2.1-py3-none-any.whl
Size 19.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d00270c91d696fd93a220565dded22049481e4f6be009fffd994695fe207d8d5
BLAKE2b-256 checksum
How to use checksums
de00939f67d50dd1da1400d230669f9a558997f12d58340f2784d16fae6c7b27
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 log

Security for ai-chat-vault 0.2.1

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.

Select from 2 files

Attestation for ai_chat_vault-0.2.1.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 log

A 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.

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