Skip to main content

ai-chat-vault

中文说明 · PyPI

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 calm editorial Web UI that archives exports from ChatGPT, Claude, Gemini, and DeepSeek into a single SQLite + FTS5 vault — with instant full-text search, starring, keyboard navigation (⌘K, j/k, s), one-click Obsidian .zip export, and drag-and-drop import.

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

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.7.0
File Size Uploaded Provenance Actions
ai_chat_vault-0.7.0.tar.gz 364.8 kB With provenance Details for ai_chat_vault-0.7.0.tar.gz

Built distribution (wheel)

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

Total release size: 726.7 kB

Release files / ai_chat_vault-0.7.0.tar.gz

Download URL ai_chat_vault-0.7.0.tar.gz
Size 364.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c2eafc762e0a6dd67752e681b2df112df0c6e67b11b01e6f3ea1d2f24c7c9f50
BLAKE2b-256 checksum
How to use checksums
d07f58d702d6b921cb3655077012cc26b879118095737aba4e08e0bb094f2da4
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 29, 2026.

Transparency log

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

Download URL ai_chat_vault-0.7.0-py3-none-any.whl
Size 361.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa7ecd2e1da565f460dc3a59739b3be4b89a67216f79f40d618ef001342d06af
BLAKE2b-256 checksum
How to use checksums
9190bf5ae7c94bca7f35a23c2f97dde576ec638283b6dbe798db238cefb7e451
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 29, 2026.

Transparency log

Security for ai-chat-vault 0.7.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.

Select from 2 files

Attestation for ai_chat_vault-0.7.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 29, 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