ccusage

ccusage

Claude Code Usage Analysis (ccusage) is an open-source community tool to analyze Claude token usage for subscriptions. It analyzes the local JSONL files that Claude Code automatically generates.

What ccusage answers:

One-line install/run:

npx ccusage@latest

Outputs a "Claude Code Token Usage Report - Daily" table with columns: Date, Models, Input, Output, Cache Create, Cache Read, Total Tokens, Cost (USD).

Related: Usage, Stats, Cost