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:
- How much am I using with Claude Code?
- Which conversations are expensive?
- What would I be paying on a pay-per-use plan?
- Am I getting good value from my subscription?
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).