ccusage
Token and cost reports for coding agent CLIs, read from local logs
What it is
A CLI that reads the usage data coding agents already keep on disk and turns it into daily, weekly, monthly and per-session reports of tokens and estimated cost. It began with Claude Code and now also covers Codex, OpenCode, Amp, Cline, Goose and others.
Good for
- See what yesterday's sessions cost
- Compare usage across agents by month
- Find the sessions that used the most tokens
Install or run
npx ccusage@latestCommand as given in the project README. Read the repository before you run anything on your machine.
What you need
Node.js
Sources
- https://github.com/ccusage/ccusage (project README, read 10 Nov 2026)
- https://api.github.com/repos/ccusage/ccusage (GitHub API, read 13 Nov 2026)
The summary is ours, written from the README. Spotted an error? See how we work.