ccusage
ccusageA CLI tool for analyzing Claude Code usage from local JSONL files.
A CLI tool for analyzing Claude Code usage from local JSONL files.
Report Claude Code (and other coding CLI) token usage and cost by day, week, month or session. Blocks, statusline, per-agent namespaces and config-file options are left out.
reportsinceuntilbreakdowninstancesprojectorderofflinereportjsonsinceuntiltimezoneenum · positional 0dailyweeklymonthlysessionstring--sincestring--untilboolean--json-jboolean--breakdown-bboolean--no-costenum--orderdescascenum--modeautocalculatedisplayboolean--offline-Ostring--timezone-zUTClocalAmerica/New_YorkAsia/Tokyoboolean--instances-istring--project-pdocsmanual2026-10-27Before it fills your prompt, Otty checks the installed ccusage against its version. A form that does not match your version is not offered.