ccusage

by ryoppippi

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

18,738macOSLinuxWindowsMIT
npx ccusage@latest

About

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.

Features

  1. 01Usage and cost by day, week, month or session
  2. 02See what’s left in the current 5-hour window
  3. 03Reads local logs only; nothing is uploaded

Install

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

RequirementsRequires Node.js (or Bun).

ccusage is made by ryoppippi and is not affiliated with Spare.

Other open-source tools4

Built-in tools3

Made by the Spare team. Open them on the web or in the desktop app.