cc-logger
Export and analyse Claude Code sessions.
Reads the JSONL trajectories Claude Code stores in ~/.claude/ and converts them to Harbor ATIF format for viewing and analysis. Includes cost estimation using Anthropic's model pricing.
Install
pip install claude-code-logger
Usage
# List sessions
cc-logger list
# Export all sessions (Harbor format by default)
cc-logger export /tmp/cc-export
# View exported sessions in the browser
cc-logger view /tmp/cc-export
# Show analytics (tokens, costs, models, working hours)
cc-logger stats /tmp/cc-export
cc-logger stats /tmp/cc-export --json
cc-logger stats /tmp/cc-export --project myproject
# Refresh model pricing from Anthropic
cc-logger update-pricing
Pricing
Cost estimation uses model pricing bundled in src/cc_logger/data/pricing.json, scraped from platform.claude.com/docs/en/about-claude/pricing.
Run cc-logger update-pricing to scrape the latest prices into the repo, then release a new version so users get updated pricing.
Metadata
Release files for claude-code-logger 0.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| claude_code_logger-0.5.3.tar.gz | 187.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| claude_code_logger-0.5.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 213.8 kB
Release files / claude_code_logger-0.5.3.tar.gz
| Download URL | claude_code_logger-0.5.3.tar.gz |
|---|---|
| Size | 187.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2c05ae7c5b970f94867a77264c31b505777fb53c8aff040530c69673a3377f2
|
|
BLAKE2b-256 checksum How to use checksums |
5d9ec086ca97573831b8c4de701b48c7bc7e03a1d9a9af5324b8c6e16fa9e398
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|
Release files / claude_code_logger-0.5.3-py3-none-any.whl
| Download URL | claude_code_logger-0.5.3-py3-none-any.whl |
|---|---|
| Size | 26.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
afc6637631269da57adb914e01b71b67a0c321b33286dd0d5439336aa01d88e5
|
|
BLAKE2b-256 checksum How to use checksums |
73670e49eeb95683700d038288e2624800a4b7de65195fba83691b552164d278
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|