Claude Code usage

ccusage

CLI that analyses Claude Code's local JSONL logs to report token usage and cost by day, month and session.

19,315 stars 907 forksUsage & cost trackers Source

Install

Install
npx ccusage@latest
From source
git clone https://github.com/ccusage/ccusage.git

From the README

./apps/ccusage/README.md
Read the full README on GitHub

Details

Language
Rust
Last updated
3 November 2026

FAQ

What is ccusage?

CLI that analyses Claude Code's local JSONL logs to report token usage and cost by day, month and session. It is a usage for Claude Code, from ccusage/ccusage on GitHub.

How do I install ccusage?

Run npx ccusage@latest, then follow the setup in the README.

Is ccusage popular?

ccusage/ccusage has 19,315 GitHub stars and 907 forks, and is included in 1 curated Claude Code list. It was last updated on 3 November 2026.

More usage & cost trackers

Browse the most popular Claude Code mods, all usage & cost trackers, or the skills and MCP server directories.