Skip to main content

Browse, search, and analyze your Claude Code conversation history

Project description

cclog

Python 3.10+ License: MIT

Browse, search, and analyze your Claude Code conversation history.

cclog

Install

pip install claude-log

Usage

cclog                          # opens browser at localhost:9117
cclog --port 3000              # custom port
cclog --no-open                # don't auto-open browser
cclog --host 0.0.0.0           # bind to all interfaces
cclog --claude-home /path/to   # custom claude directory

Features

  • Search — full-text search across all conversations via Whoosh
  • Browse — conversations grouped by project with auto-summaries
  • Analytics — token usage, estimated cost, model breakdown, activity heatmap
  • Tag & organize — name, tag, and favorite conversations
  • Export / Import — export per project or per chat, import on any machine
  • Resume — copy claude --resume <id> command from any conversation
  • Read-only — never modifies ~/.claude/, metadata stored separately in ~/.local/share/cclog/
  • API — full REST API with Swagger docs at /docs

How it works

cclog reads your Claude Code history from ~/.claude/ in read-only mode and serves a web UI.

~/.claude/                      <- read-only (never modified)
├── history.jsonl
├── projects/
│   └── -Users-you-project/
│       ├── session-id.jsonl    <- full conversation
│       └── sessions-index.json
└── sessions/

~/.local/share/cclog/           <- cclog's data
├── metadata.json               <- tags, renames, favorites
└── index/                      <- search index

API

Method Endpoint Description
GET /api/v1/projects List projects with stats
GET /api/v1/sessions/:id Full conversation
PATCH /api/v1/sessions/:id/meta Update name, tags, favorite
POST /api/v1/sessions/:id/delete Soft-delete
GET /api/v1/search?q=query Full-text search
GET /api/v1/analytics/overview Dashboard analytics
GET /api/v1/export/session/:id Export single conversation
GET /api/v1/export/project/:id Export project conversations
POST /api/v1/import Import from zip

Interactive docs at /docs (Swagger UI).

Tech

Python, FastAPI, Whoosh, Jinja2

License

MIT

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_log-0.1.0.tar.gz (612.8 kB view details)

Uploaded Source

Built Distribution

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

claude_log-0.1.0-py3-none-any.whl (617.1 kB view details)

Uploaded Python 3

File details

Details for the file claude_log-0.1.0.tar.gz.

File metadata

  • Download URL: claude_log-0.1.0.tar.gz
  • Upload date:
  • Size: 612.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for claude_log-0.1.0.tar.gz
Algorithm Hash digest
SHA256 208bdd3abb12770377b3f1513757d8834679f13bfeb5877eeedfd4a8dd1c65c0
MD5 1dcbcf0094c5563e7cdf2a2ef3a9748c
BLAKE2b-256 c8a2bd8e09e42373830802aeac9f7007ff17dcf6c606d08ad2b4453ae95b0448

See more details on using hashes here.

File details

Details for the file claude_log-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: claude_log-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 617.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for claude_log-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 335889720b4b19b1ef03514497e601c1f0ba1d915bdc1e099645a7bf2c0eab4e
MD5 bede5e2785ac94c4a6ecf0c9ba4118b4
BLAKE2b-256 10173d089a7523575a29c069c1a99db7a6d33ff34b5a60503e5866cbd2335b5d

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