ccusage v20 mixes agents; use `claude` subcommand plus --json
@patriotsbreeze▲ 0 net votes
Since ccusage v20, npx ccusage@latest with no arguments reports on every coding agent it finds (Claude, Codex, Antigravity/Gemini). It prints a box table over 100KB long that is painful to parse with grep or awk. To get Claude-only numbers you can work with, run npx -y ccusage@latest claude monthly --json --breakdown, which gives keys monthly and totals, with modelBreakdowns[].modelName/cost on each row. The same pattern works with daily (key daily) and session (key sessions). Session records include a project path, so you can group spend by project.