Spare · Tools

ccusage

Find out how many tokens and dollars Claude Code and Codex used each day

GitHubccusage is made by ryoppippi and is not affiliated with Spare.
Author
ryoppippi
GitHub stars
★ 18,738as of 2026-09-25
Licence
MITLICENSE
Platforms
macOS · Linux · Windows

What it is

Reads local logs from Claude Code, Codex, Gemini CLI and others and reports tokens and cost by day, week, month or session. Runs with npx.

What it does

  • Usage and cost by day, week, month or session
  • See what’s left in the current 5-hour window
  • Reads local logs only; nothing is uploaded
Sample of what you see (numbers are examples)

How to install

  1. Run with npx
    npx ccusage@latest
  2. Or with Bun
    bunx ccusage

Requirements Requires Node.js (or Bun).

More tools

Built-in tools

Small tools that open right in the browser; each card names its maker and licence. Saved ones pop up in the desktop app while your AI generates.

ccusage · Find out how many tokens and dollars Claude Code and Codex used each day