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.

PyPI version Python 3.7+ Zero Dependencies Cross Platform License: MIT


What is this?

Claude Code stores all your conversations as local files. This tool gives you a beautiful web UI and terminal CLI to:

  • Browse every conversation you've ever had with Claude Code
  • Search across titles or deep-search inside every message
  • See cost estimates, token usage, and model breakdowns
  • Bookmark important conversations
  • Export chats as Markdown or JSON
  • Resume any past conversation directly in Claude Code

100% local — no data leaves your machine.


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

The installer handles everything — installs pipx if needed, installs the package, and opens the viewer automatically.

Manual install

pipx install claude-chats-and-analytics-viewer    # recommended
uvx claude-chats-and-analytics-viewer             # uv, no install needed
pip3 install --user claude-chats-and-analytics-viewer

Don't have pipx?

  • macOS: brew install pipx && pipx ensurepath
  • Linux: python3 -m pip install --user pipx && python3 -m pipx ensurepath
  • Windows: pip install pipx && pipx ensurepath

After running ensurepath, open a new terminal and run ccv.


Features

Web UI

Feature Description
Conversation browser Search, filter by project, sort by date / tokens / cost
Cost estimation Per-conversation and per-message USD cost based on model pricing
Deep search Toggle DEEP to search inside every message, not just titles
Bookmarks Star any conversation — persisted across sessions
Activity heatmap GitHub-style 52-week calendar showing your Claude usage
Copy buttons One-click copy on every code block
Auto-refresh Detects new conversations while the viewer is open
Export Download as .md, .json, or export everything as a .zip
Smart caching Near-instant startup after first run
Usage stats Token counts, model breakdown, top projects, total cost

Terminal CLI

Feature Description
Interactive browser Paginated list with colored output and keyboard navigation
Search Filter conversations by keyword or project
View Read full conversation messages in the terminal
Resume Jump directly back into any past conversation in Claude Code
Bookmarks Toggle bookmarks from the terminal

Commands

Web UI (ccv)

ccv                        # start the viewer (opens browser automatically)
ccv --port 8080            # use a different port
ccv --no-open              # start server without opening browser
ccv --update               # update to the latest version
ccv --install              # auto-start on login (macOS LaunchAgent)
ccv --install-systemd      # auto-start on login (Linux systemd)
ccv --uninstall            # remove the auto-start service

Terminal CLI (claude-conversations-cli)

claude-conversations-cli                          # interactive browser
claude-conversations-cli --search "auth bug"      # search by keyword
claude-conversations-cli --project "myapp"        # filter by project
claude-conversations-cli --view <session-id>      # view a conversation
claude-conversations-cli --resume <session-id>    # resume in Claude Code
claude-conversations-cli --list                   # non-interactive list (pipe-friendly)
claude-conversations-cli --list --limit 10        # limit results

Interactive CLI keyboard commands

Key Action
3 Show details for conversation #3
v 3 Read full messages of conversation #3
r 3 Resume conversation #3 in Claude Code
b 3 Toggle bookmark on conversation #3
s <query> Search conversations
a Clear search, show all
n / p Next / previous page
h Show help
q Quit

Update

ccv --update
# or
pipx upgrade claude-chats-and-analytics-viewer

When an update is available, a banner appears in the Web UI and a notice prints in the CLI automatically.


How it works

Claude Code saves conversations as JSONL files at:

~/.claude/projects/<project-name>/<session-id>.jsonl          # macOS / Linux
%USERPROFILE%\.claude\projects\<project-name>\<session-id>.jsonl  # Windows

This tool scans those files, caches the metadata for fast startup, and serves a local web UI at http://127.0.0.1:5005. Nothing is uploaded or shared anywhere.


Troubleshooting

ccv not found after install Run pipx ensurepath, then open a new terminal.

Port already in use ccv automatically switches to the next available port and tells you which one it picked. Or specify one manually: ccv --port 8080

No conversations found Make sure you've used Claude Code at least once. Check that ~/.claude/projects/ exists and contains .jsonl files:

ls ~/.claude/projects/

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.7.tar.gz (37.3 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.7.tar.gz.

File metadata

File hashes

Hashes for claude_chats_and_analytics_viewer-2.0.7.tar.gz
Algorithm Hash digest
SHA256 e431c50f72d89150cbf8c47fe5e592fda6217be74c24eb0c523ac68da3b8c0dd
MD5 a88c3dbe65ef8b0614e0c4a039e28ad5
BLAKE2b-256 b73f2e1f97f6dd7e9be4b729fa916345111d924cd7f08d6158631d9d5b3c2a23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for claude_chats_and_analytics_viewer-2.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0c1a0a1d1466798b1d1da4b80c616dc38c2c9ec138bc82e635b6cf340df3f259
MD5 a79889accc97427ed57a01c809698991
BLAKE2b-256 9e9768ddb992195ec111af111877d6d828fd577ccb0ce9b3c1f045dea77bde6f

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