ccusage
CLI that reports Claude Code token usage and cost from local logs.
0 members list ccusage, unchanged over the last 12 weeks, data as of 16 November 2026
Members who list ccusage in their Stack, by week.
Members who list ccusage
Be the first to add ccusage
Nobody on Stackness runs ccusage yet. Add it to your stack and you're the first member running it.
Homebrew analytics installs: 1,062 installs (2026) to 2,957 installs (2026)
Imported from Homebrew analytics, last reading Oct 2026
About ccusage
ccusage is a command-line tool that analyzes token usage and estimates costs from local logs generated by coding agents and AI-powered development tools. It tracks usage across multiple platforms including Claude Code, GitHub Copilot CLI, Gemini CLI, and several others, reading data directly from local files without uploading information to external servers. The tool provides cost analysis by estimating USD spending based on token counts and model pricing, with support for tracking cached tokens separately.
Developed by ccusage and written in Rust, the tool offers various output formats including responsive terminal tables and structured JSON for programmatic access. It operates in offline mode using pre-cached pricing data and includes features specific to Claude Code such as block and statusline tracking. The software is released under the MIT License.
Checked 13 November 2026.
Nobody on Stackness runs ccusage yet.
Sign up and add itPosts about ccusage
- Claude Code status line token usage: the status line is free, agent_summary and startup context are not
Claude Code's status line uses 0 tokens. agent_summary took 2% to 24% of spend where measured. My startup context was 43,394 tokens.
- Run your own LLM proxy to track token usage: LiteLLM in front of Claude Code and Codex
A local LiteLLM proxy logs one row per agent request with tokens, cost, key and session. Setup in about 15 minutes, tested on LiteLLM 1.106.0, October 2026.
- Coding agent prompt cache miss cost: what breaks the prefix and how to find it
A prompt cache miss costs 25x a hit on Sonnet 5.5 and Opus 5.5, October 2026. The six causes, how to tell which one hit you, and the fix for each.