A CLI tool to visualize ccusage JSON reports as terminal graphs.
- Cost bar chart (daily / weekly / monthly)
- Token usage bar chart (daily / weekly / monthly)
- Cost breakdown by model
- Period summary (total cost, average, peak period, etc.)
- Auto-detects JSON format from top-level key (
daily,weekly,monthly)
- Node.js >= 18
npx ccusage@latest --json | npx @einere/ccusage-graph
npx ccusage@latest weekly --json | npx @einere/ccusage-graph
npx ccusage@latest monthly --json | npx @einere/ccusage-graphnpx ccusage@latest --json > report.json
npx @einere/ccusage-graph report.jsonnpx @einere/ccusage-graph < report.jsonUses the JSON format generated by ccusage as-is.
MIT