Skip to main content

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 to Harbor format
cc-logger export /tmp/cc-export --harbor

# 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

claude_code_logger-0.5.2.tar.gz (187.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_code_logger-0.5.2-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

Details for the file claude_code_logger-0.5.2.tar.gz.

File metadata

  • Download URL: claude_code_logger-0.5.2.tar.gz
  • Upload date:
  • Size: 187.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for claude_code_logger-0.5.2.tar.gz
Algorithm Hash digest
SHA256 872d9109d646324ab01197d1dfc73f649497e3ed83bf2af44fc03348d70c6dd9
MD5 873a8e7e374dcaa6b4befdb3c68f341c
BLAKE2b-256 672dc56affba7e8154d0e69ca416a830c685ce1b46d6d3c056a22d87053c6cc5

See more details on using hashes here.

File details

Details for the file claude_code_logger-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_code_logger-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 18f6ce972b2d8c0490b9c63f965eecf5d8323316de547a2f9150bf44dec950f3
MD5 b6ec49d8393ffd033c2083443d1aa3d9
BLAKE2b-256 01b2108ddc01ac1dbd6c31162eea88fca8dc7b9593feef9156db39079a546d24

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