Skip to main content

Browse, search, and resume your Claude Code conversations -- from the browser or the terminal.

Project description

Claude Chats & Analytics Viewer

Browse, search, and resume your Claude Code conversations — from the browser or terminal.

Python 3.7+ No Dependencies Cross Platform PyPI


Install & Run

macOS / Linux

curl -fsSL https://raw.githubusercontent.com/AnshRajput/claude-chats-and-analytics-viewer/main/install.sh | sh

Windows (PowerShell)

iwr https://raw.githubusercontent.com/AnshRajput/claude-chats-and-analytics-viewer/main/install.ps1 | iex

That's it. Opens http://127.0.0.1:5005 in your browser.

The installer auto-detects your system, installs pipx if needed, and launches the viewer.

Manual install (if you prefer)

pipx install claude-chats-and-analytics-viewer && ccv   # pipx
uvx claude-chats-and-analytics-viewer                   # uv (no install needed)

Features

  • Conversation browser — search, filter by project, sort by date / tokens / cost
  • Cost estimation — shows ~$0.04 per conversation and per message based on model pricing
  • Deep content search — toggle DEEP to search inside every message, not just titles
  • Bookmarks — star any conversation, persisted to ~/.claude/viewer-bookmarks.json
  • Activity heatmap — GitHub-style 52-week calendar in the Stats tab
  • Copy buttons — one-click copy on every code block
  • Auto-refresh — detects new conversations while the viewer is open
  • Export — download as .md or .json, or export all as a .zip
  • Smart caching — instant startup after first run (only re-parses changed files)
  • Usage stats — token counts, model breakdown, top projects, total estimated cost
  • CLI — terminal interface with search, pagination, and resume
  • Keyboard shortcuts/ search · j/k navigate · b bookmark · Enter open
  • Zero dependencies — Python stdlib only, works on macOS / Windows / Linux

Commands

Command What it does
ccv Start Web UI
ccv --update Update to latest version
ccv --port 8080 Custom port
ccv --no-open Don't auto-open browser
ccv --install Auto-start on login (macOS)
ccv --install-systemd Auto-start on login (Linux)
claude-conversations-cli Terminal CLI

CLI

claude-conversations-cli                       # interactive browser
claude-conversations-cli --search "auth"       # search by keyword
claude-conversations-cli --view <session-id>   # view a conversation
claude-conversations-cli --resume <session-id> # resume in Claude Code

How it works

Claude Code saves conversations as JSONL files in ~/.claude/projects/<project>/<session-id>.jsonl. This tool scans those files, caches metadata, and serves a fast local web UI. All data stays local — nothing is sent anywhere.


Update

ccv --update

License

MIT — github.com/AnshRajput/claude-chats-and-analytics-viewer

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_chats_and_analytics_viewer-2.0.2.tar.gz (33.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file claude_chats_and_analytics_viewer-2.0.2.tar.gz.

File metadata

File hashes

Hashes for claude_chats_and_analytics_viewer-2.0.2.tar.gz
Algorithm Hash digest
SHA256 4a011704f725fdd2b204d08b0759ac8985e06559bb6aec2c930612a80092ed28
MD5 699d56fdf335917a9d83d46cb26c7991
BLAKE2b-256 0855cbcb660a86b49718752f10e643632d6d54904c657214c56f1c669e5c42b4

See more details on using hashes here.

File details

Details for the file claude_chats_and_analytics_viewer-2.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_chats_and_analytics_viewer-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 72d44fcd81988b52db1399b3839a0eaf5bb822a648151ab2abcd0b5e4f83719c
MD5 8b5b3931281692c61d11434535b3b0b5
BLAKE2b-256 fed6f6c242ad03b4bd7f93dd278490d651459d41eee6edaf94006310fbc15fc3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page