claudeers.

🔓 unclaimed — this page was auto-generated from GitHub. Are you the creator?

Claim this page →
// RAG & Knowledge

chat-history

ChatGPT and Claude history exploration

// RAG & Knowledge[ cli ][ api ][ web ][ claude ]#claude#chatgpt#chatgpt-chat-history#chatgpt-history#chatgpt-python#claude-ai#ragMIT$open-sourceupdated 15 days ago
Dormant
64/100
last commit 5 months ago
last release none
releases 0
open issues 14
// install
git clone https://github.com/mirableio/chat-history

Chat History

Browse and export your ChatGPT and Claude conversations locally.

Screenshot

Getting Started

Requires Python 3.11+ and uv.

  1. Export your chats from ChatGPT or Claude (Settings → Export data). Both services send a ZIP file by email.

  2. Create a folder for your chat history, save the ZIP there, and open a terminal in that folder. The wizard will store all data inside it.

  3. Run the setup wizard:

    uvx chat-history
    

    The wizard finds your export files, configures everything, and opens the browser.

Next time, run uvx chat-history in the same folder to start browsing. To update to the latest version, run uvx chat-history install.

To export all conversations as markdown (useful for feeding to other AI tools):

uvx chat-history export

Features

  • Unified conversation browser for ChatGPT and Claude exports
  • Provider-aware favorites and external links
  • Full-text search with optional semantic search (OpenAI embeddings + FAISS)
  • Activity and token statistics
  • Export conversations to markdown for downstream AI workflows

CLI Reference

All commands work as uvx chat-history <command> or, if installed locally, chat-history <command>.

CommandDescription
(none)Start server if configured, otherwise run setup wizard
initRun the interactive setup wizard
serveStart the web server
exportExport conversations to markdown
inspectPrint conversation and message counts
installReinstall chat-history via uvx --reinstall chat-history

serve

uvx chat-history serve [--host 127.0.0.1] [--port 8080] [--no-browser]

export

uvx chat-history export [--provider chatgpt|claude|all] [--out DIR] [--clean]
                        [--exclude-system] [--exclude-tool]
                        [--exclude-thinking] [--exclude-attachments]
  • --clean removes old export files before writing (scoped to --provider if set)
  • Default output: ./data/export/{chatgpt|claude}/

init

uvx chat-history init [--path DIR]

Scans the current folder and ~/Downloads for export ZIPs, validates them, extracts to ./data/, writes ./data/.env, and offers to start the server. Supports adding a second provider to an existing setup.

Configuration

All config lives in ./data/.env (created by the wizard or manually):

VariableDefaultDescription
CHAT_HISTORY_DATA_DIRdataRoot directory for derived data
CHAT_HISTORY_CHATGPT_PATHPath to ChatGPT export folder or conversations.json
CHAT_HISTORY_CLAUDE_PATHPath to Claude export folder or conversations.json
CHAT_HISTORY_OPENAI_ENABLEDfalseEnable semantic search
OPENAI_API_KEYRequired if semantic search is enabled
OPENAI_ORGANIZATIONOptional OpenAI org
OPENAI_EMBEDDING_MODELtext-embedding-3-smallEmbedding model for semantic search
CHAT_HISTORY_SETTINGS_DB_PATHOverride path for settings SQLite DB

Developer Setup

make install    # uv sync
make dev        # uvicorn with hot-reload on :8080
make test       # run tests

Install as a global command from the local repo (editable, changes reflected immediately):

make tool-install         # uv tool install -e .
chat-history              # works from any directory
make tool-uninstall       # uv tool uninstall chat-history

Notes

  • Export is non-destructive by default. Existing files remain unless --clean is used.
  • Token stats for Claude are approximate (fallback tokenizer), not exact Claude-native counts.

// compatibility

Platformscli, api, web
Operating systems
AI compatibilityclaude
LicenseMIT
Pricingopen-source
LanguagePython

// faq

What is chat-history?

ChatGPT and Claude history exploration. It is open-source on GitHub.

Is chat-history free to use?

chat-history is open-source under the MIT license, so it is free to use.

What category does chat-history belong to?

chat-history is listed under data in the Claudeers registry of Claude-compatible tools.

0 views
66 stars
unclaimed
updated 15 days ago

// embed badge

chat-history on Claudeers
[![Claudeers](https://claudeers.com/api/badge/chat-history.svg)](https://claudeers.com/chat-history)

// retro hit counter

chat-history hit counter
[![Hits](https://claudeers.com/api/counter/chat-history.svg)](https://claudeers.com/chat-history)

// reviews

// guestbook

0/500

// related in RAG & Knowledge

🔓

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 60-95% fewer tokens, same answers. Library, proxy, MCP server.

// ragheadroomlabs-ai/Python56,255Apache-2.0[ claude ]
🔓

A collection of notebooks/recipes showcasing some fun and effective ways of using Claude.

// raganthropics/Jupyter Notebook46,409MIT[ claude ]
🔓

✨ Light and Fast AI Assistant. Support: Web | iOS | MacOS | Android | Linux | Windows

// ragChatGPTNextWeb/TypeScript88,415MIT[ claude ]
🔓

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant contex…

// ragthedotmack/JavaScript86,462Apache-2.0[ claude ]
Connectorlinks several projects together across the ecosystem · 7 connections
→ see how chat-history connects across the ecosystem