
ccusage
AI Code Writers & Generator Tools
ccusage is a fast local CLI that tracks token usage and estimates USD cost across popular coding (agent) command-line tools.
- Category
- Code
- Listed
- Nov 28, 2026
- Updated
- Nov 28, 2026
Promoted
AI Checker PlusAI detector that highlights which passages AI wrote. Free check, no sign-up. Plagiarism too.
Pixmax.aiPixmax.ai is an all-in-one AI workspace for videos, visual stories, and marketing content.
SEOify - Improve your SEO & rankingsBuild links to rank in Google. Improve your DR with links you can start building now.Advertise here330,000+ people visit Dang.ai every month.
What does ccusage do?
ccusage is a fast local command-line utility for coding (agent) usage analysis. It tracks how many tokens your supported CLIs consume, then converts those token counts into an estimated USD spend using model pricing.
You can start by viewing “all sources” at once to understand your overall activity, then switch to focused views to narrow the same dashboards to a single CLI. It reads local usage logs from multiple tools, including Claude Code, Codex, OpenCode, Amp, Droid, Codebuff, Cline, Hermes Agent, pi-agent, Goose, OpenClaw, Kilo, Kimi, Qwen, GitHub Copilot CLI, Gemini CLI, Antigravity, Grok Build CLI, ZCode, and DeepSeek Harness—without uploading your data.
For cost analysis, ccusage estimates USD spend from token counts and model pricing, with cache token accounting where available. It can also export results in structured JSON format for programmatic use. Display is handled via responsive terminal tables so the results remain readable across different terminal widths.
Special support includes Claude Code features like tracking five-hour billing windows from local session data, statusline-style summaries, and separate accounting for cache creation vs. cache read tokens. You can also run in offline mode using pre-cached pricing data without network connectivity. Released under the MIT License.
What does ccusage measure?
It measures token usage from your local coding (agent) CLI usage logs, then estimates the corresponding USD spend using model pricing.
Does ccusage upload my usage data?
No—ccusage reads local usage logs from supported tools and processes them locally.
Can I focus on one tool instead of all supported CLIs?
Yes. You can start with all detected sources and then switch to a focused view for a single CLI to isolate its token and cost impact.
How does ccusage handle caching in its cost estimates?
Where available, it tracks cache creation and cache read tokens separately and includes cache token accounting in the USD spend estimate.
What Claude Code-specific features are supported?
It can track Claude Code’s five-hour billing windows from local session data, provide statusline-style summaries, and handle cache creation vs. cache read token accounting.
Can I run ccusage without internet access?
Yes. Offline mode uses pre-cached pricing data so you can estimate costs without network connectivity.
Is this your tool?
Claim ccusage to manage this listing, or upgrade to Pro for featured-first placement and a newsletter feature.