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.4.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.4.0
File Size Uploaded Provenance Actions
ai_chat_vault-0.4.0.tar.gz 22.4 kB With provenance Details for ai_chat_vault-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 44.2 kB

Release files / ai_chat_vault-0.4.0.tar.gz

Download URL ai_chat_vault-0.4.0.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b3ae90da1a937f3784a487fc170f5a7d2555fc1b4faf5c8c02540d2278932033
BLAKE2b-256 checksum
How to use checksums
e1316c5028f99b841903f7fc154455936c00b0b9deb2c282b6382be7f0791c71
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.4.0-py3-none-any.whl

Download URL ai_chat_vault-0.4.0-py3-none-any.whl
Size 21.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0155bbfa259376c9243b8b3a0ed34990ef3526bbb6d024f79a8be488351b17b2
BLAKE2b-256 checksum
How to use checksums
b231899871b5320bc4c380dd59fbff09dbf1ace238a5b962670526a1c1cbd617
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.4.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.4.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