AcademyResourcesOperations

ccusage

Teams and individuals who want to see how much Claude Code they use and what it costs.

  • Recommendedour rating
  • 18,946gitHub stars
  • Not statedlicence
  • todaylast update
git clone https://github.com/ccusage/ccusage.git

What it does

A command-line tool that reads the local JSONL logs of Claude Code and reports token usage and cost. It shows daily, monthly, per-session and 5-hour-block breakdowns, a live monitoring mode and per-model cost estimates. Everything runs locally, and JSON output is available for scripts.

Use cases

  1. 01See daily and monthly Claude Code usage
  2. 02Compare cost per session or per model
  3. 03Export usage as JSON for a report

Questions about
ccusage.

What is ccusage used for?

Teams and individuals who want to see how much Claude Code they use and what it costs. A command-line tool that reads the local JSONL logs of Claude Code and reports token usage and cost. It shows daily, monthly, per-session and 5-hour-block breakdowns, a live monitoring mode and per-model cost estimates. Everything runs locally, and JSON output is available for scripts.

How do I install ccusage?

Run this in your terminal: git clone https://github.com/ccusage/ccusage.git

Is ccusage open source?

The code is on GitHub (ccusage/ccusage). Check the licence in the repository before using it at work.

Is ccusage safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.