ccusage/ccusage
npx ccusage observed · 2026-08-28
Health v2 · maintenance only
81/100
- Activity 99
- Release rhythm 86
- Longevity 32
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 461
- days_rel: 18
- days_push: 7
- n_releases_24m: 134
Adoption not part of the score
18176 stars · 808 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
ccusage is a fast local CLI that analyzes token usage and estimated costs from coding agent CLIs such as Claude Code, Codex, OpenCode, Gemini CLI, and many others by reading their local JSONL logs. It produces daily, weekly, monthly, and session-level reports with USD cost estimates, cache token accounting, JSON export, and offline pricing support.
Use cases
- track how much I spend on Claude Code tokens per day
- estimate monthly cost of my coding agent usage
- analyze token usage across multiple AI coding CLIs
- export my LLM usage data as JSON
- view Claude Code usage without uploading logs
- check cache token costs for AI coding sessions
- monitor AI coding spend offline
When to choose
- you use Claude Code, Codex, or similar coding agent CLIs and want local, private usage and cost analysis
- you need aggregated daily/weekly/monthly/session reports of token consumption
- you want JSON output for programmatic processing of usage data
- you need offline cost estimation with pre-cached model pricing
When to avoid
- you need real-time usage dashboards or team-level spend management rather than local CLI reports
- your AI tool is not among the supported coding agent CLIs
- you need exact billing data from your provider rather than estimates from token counts and pricing
Facets
cli-tool · maturity active
cli analytics developer-tools developer-tools analytics large-language-models cli cross-platform windows claude-code token-usage cost-tracking llm-usage-analysis coding-agents l-logs command-line macos linux
5 sources
- readme: https://github.com/ccusage/ccusage · fetched 2026-08-28 · 44565c25ed84
- homepage: https://ccusage.com/ · fetched 2026-08-29 · 2750537b6626
- site_page: https://ccusage.com/guide/getting-started · fetched 2026-08-29 · e206e0ebc3fc
- site_page: https://ccusage.com/guide/cost-modes · fetched 2026-08-29 · e99fb6b5353e
- site_page: https://ccusage.com/guide/claude · fetched 2026-08-29 · ba68b3e0cc84
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ccusage/ccusage | main | 81 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem