Something went wrong. Try again.
npx ccusage
Something went wrong. Try again.
README.md
ccusage-adapter-claude #
The Claude Code adapter: it turns the JSONL transcripts Claude Code writes per project and session into the usage entries the reports render.
Owns #
daily.rs— the daily report path, which reads the same files with a narrower parser.paths.rs— environment variables, default directories, and file discovery.
Anything that is not specific to this source belongs in ccusage-core or
ccusage-adapter-common instead.
Data source #
~/.claude/projects/**/*.jsonland~/.config/claude/projects/**/*.jsonl
Record shapes, token mapping, and cost rules are documented in src/README.md.
Reads plain files through ccusage-adapter-common, which handles walking, size-balanced
chunking, and ordered parallel reads.
Public surface #
paths::timestamp_from_linepaths::claude_pathspaths::extract_projectpaths::extract_session_partspaths::usage_filesload_entriesload_daily_summariesusage_limit_reset_time_from_line
Depends on #
ccusage-adapter-commonccusage-corejiffmemchrrustc-hashserdeserde_json
Build layer #
Built in the adapters Crane artifact layer; the layer compiles all adapters in one Cargo invocation, so they build concurrently.