Find tools › Open-source projects › Spend less on AI

ccusage

Open-source project · by ccusage

A small tool that shows how much text and how many dollars your AI coding tools have used.

No codingPopular1,073,892 installs a month

What it costs

Free and open source; you may pay for the AI model it uses.

Use it to

  • See what your Claude Code usage would cost this month
  • Compare token use across days, weeks or sessions
  • Check which coding agent uses the most tokens

How to start

  1. Install Node.js so the npx command works.

  2. In a terminal, run npx ccusage@latest.

  3. Read the daily totals, treating dollar amounts as estimates rather than your real bill.

Good to know. Costs are estimates calculated from local logs and published prices, not your actual bill; on flat-rate subscriptions the dollar figure is what the usage would have cost at API prices.

Before you install

  • Checked by a personWe read what it does before listing it.
  • Last updated 2026-11-18

More detail

ccusage is a command-line tool that reads the usage logs that coding agents store on your computer (Claude Code, Codex, Gemini CLI, OpenCode, Copilot CLI and others) and shows tokens and estimated cost by day, week, month or session.

It answers 'how much am I actually using and what would it cost?' without sending anything to a service. It also shows Claude Code's 5-hour usage windows and can feed a status line.

Similar tools

Descriptions are written in plain English from each project's own documentation and refreshed by our agent; this one was last checked 2026-09-29. Spotted a mistake? · Open in Find tools · © 2026 Which AI Map