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

File metadata

File hashes

Hashes for claude_chats_and_analytics_viewer-2.0.3.tar.gz
Algorithm Hash digest
SHA256 3a5688d63d3610a98463de1d38ecf96ef5068e4257f968f664e2e3d15ffe76d7
MD5 79fd77972b0ffdaf37c3c365c9af8214
BLAKE2b-256 eeaf89a2372a6cb24279ed7675a288bcabf13cc5ac1fbcdc90e9a55b8395d7be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for claude_chats_and_analytics_viewer-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a6a939f486cd81b610dc82e03480531dcf9ee05f29109b96033f6e401a9a3b7c
MD5 f2fd6e2fd8a6155e56808d010008a586
BLAKE2b-256 a68f160a2d7a0f678237136e330ab6d63fcac33100b9f93bac9c5949359c13c3

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