Export Claude Code trajectories to Harbor ATIF format
Project description
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_code_logger-0.5.3.tar.gz.
File metadata
- Download URL: claude_code_logger-0.5.3.tar.gz
- Upload date:
- Size: 187.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2c05ae7c5b970f94867a77264c31b505777fb53c8aff040530c69673a3377f2
|
|
| MD5 |
0a482ddb36d2ef2d6ce732195ad9363a
|
|
| BLAKE2b-256 |
5d9ec086ca97573831b8c4de701b48c7bc7e03a1d9a9af5324b8c6e16fa9e398
|
File details
Details for the file claude_code_logger-0.5.3-py3-none-any.whl.
File metadata
- Download URL: claude_code_logger-0.5.3-py3-none-any.whl
- Upload date:
- Size: 26.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afc6637631269da57adb914e01b71b67a0c321b33286dd0d5439336aa01d88e5
|
|
| MD5 |
d7b64f76e9bc754b51b1f7739f23e5f9
|
|
| BLAKE2b-256 |
73670e49eeb95683700d038288e2624800a4b7de65195fba83691b552164d278
|