What is ccusage?
TL;DR: Open-source CLI that analyzes token usage and costs of Claude Code and other coding-agent CLIs.
ccusage reads the local logs of Claude Code and other coding-agent CLIs and turns them into clear daily, monthly, session and billing-block reports of tokens and estimated cost. It runs instantly via npx without setup and has become a staple for developers on subscription plans who want to know how much they really use. It also offers live monitoring and statusline integration.
Best for: Claude Code and coding-agent users who want visibility into their token usage and cost.
ccusage key features
- Daily, monthly and per-session usage reports
- Estimated costs by model
- Live monitoring and 5-hour billing-block view
- Runs locally via npx with JSON output
Use cases
- Checking whether a subscription plan pays off
- Spotting expensive sessions or models
- Feeding usage data into a dashboard
👍 Pros
- Free, open source and local-only
- Zero configuration
- Very popular and actively maintained
👎 Cons
- Costs are estimates based on public pricing
- Depends on local log formats that may change
ccusage FAQ
- What is ccusage?
- ccusage reads the local logs of Claude Code and other coding-agent CLIs and turns them into clear daily, monthly, session and billing-block reports of tokens and estimated cost. It runs instantly via npx without setup and has become a staple for developers on subscription plans who want to know how much they really use. It also offers live monitoring and statusline integration.
- Is ccusage free?
- ccusage uses a Open source pricing model (verified Nov 29, 2026).
- Does ccusage have an API?
- As of Nov 29, 2026, ccusage does not offer a public developer API.
- Does ccusage support Chinese, and is it available in China?
- ccusage does not support Chinese, and it has unverified availability in mainland China.
- What are the best alternatives to ccusage?
- Popular alternatives to ccusage include Laminar, DeepEval, Dyad, Repomix.
Reviews
No reviews yet. Be the first to share your experience.