# ccusage

> Analyze coding (agent) CLI token usage and costs from local data.

Source: https://talira.ai/catalog/ccusage-pzbfq0en
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / ai coding / usage tracking](https://talira.ai/categories/developer-tools/ai-coding/usage-tracking)
- Platforms: macos, linux, windows, cli
- Licence: MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Creator: ryoppippi
- Sponsors: CodeRabbit, Blacksmith

ccusage reads the local usage logs that coding-agent CLIs write and turns them into daily, weekly, monthly and per-session token and cost reports. It started as a [Claude Code](https://talira.ai/catalog/claude-code-jqv5000a.md) tool and now covers [Codex](https://talira.ai/catalog/codex-8m7d8cdk.md), [OpenCode](https://talira.ai/catalog/opencode-fn6hh4gp.md), Amp, [Gemini CLI](https://talira.ai/catalog/gemini-cli-xq86svf2.md), Copilot CLI, Goose and many others. Run it with `npx ccusage@latest`; no API key or account needed.

## Links

- Website: https://ccusage.com/
- GitHub: https://github.com/ccusage/ccusage
- Docs: https://ccusage.com/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/ccusage>[^1]

## Problems it solves

- how much would my Claude Code usage have cost on the API this month
- see my token usage per day from Claude Code
- which session burned through all my tokens
- is my Max subscription worth it compared to paying per token
- track Codex and Claude Code usage in one report
- monthly breakdown of AI coding agent costs by model
- check usage without logging in to any dashboard
- report on usage from the local logs my agent CLI already writes

## Features

- daily, weekly, monthly and session reports
- per-model cost
- supports Claude Code, Codex, OpenCode, Amp, Gemini CLI, Copilot CLI and more
- reads local data only
- JSON output

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.76 out of 1.
Signals: maintenance 1.00, adoption 0.86, momentum 0.92, community 0.77, backing 0.35, extensibility 0.20.

- last commit 9 days ago
- 1402 commits in the last 90 days
- latest release v20.0.51 9 days ago
- 19.4k GitHub stars
- 83 contributors
- accepts sponsorship (Github)
- created by ryoppippi
- sponsored by CodeRabbit, Blacksmith

## Alternatives

- [Claude Code Usage Monitor](https://talira.ai/catalog/claude-code-usage-monitor-swdktg95.md): Real-time Claude Code usage monitor with predictions and warnings
- [Ponytail](https://talira.ai/catalog/ponytail-0msm2rd5.md): Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
- [CodexBar](https://talira.ai/catalog/codexbar-sqs1z29j.md): Every AI coding limit, in your menu bar.
- [clauth](https://talira.ai/catalog/clauth-7t9x9vy6.md): Claude Code multi-account manager, usage monitor (CLI, TUI & cross-account delegation via MCP)

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
