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 26 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 interface tool for tracking token usage and estimated costs across multiple coding and agent CLI tools. It analyzes local log files from various platforms including Claude Code, Codex, OpenCode, Cline, GitHub Copilot CLI, Gemini CLI, DeepSeek and others, without uploading data to external services. The tool provides cost analysis based on token counts and model pricing, with support for cache token accounting where available. It displays usage information in responsive terminal tables and can export data in JSON format for programmatic use.
Developed by ccusage and written in Rust, the tool is released under the MIT license. It offers focused views to examine usage from individual sources or view all detected coding tools at once. ccusage supports offline mode using pre-cached pricing data and includes features specific to Claude Code, such as tracking five-hour billing windows from local session data.
Checked 21 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.