LifeHubber. Resources Use AI on your terms.
LifeHubber.Resource
Opening…

AI Resources

ccusage

GitHub stars: 19.6K GitHub forks: 951 Declared license: MIT: MIT Last pushed November 29, 2026: Pushed today
Stats from GitHub

ccusage is an MIT-licensed command-line tool for reading local coding-agent usage logs and turning them into reports for tokens, models, sessions, and estimated costs. It can combine supported sources in one view or focus on a single tool such as Codex or Claude Code.

The same daily, weekly, monthly, and session views work across supported coding CLIs, with date filters plus structured JSON output for spreadsheets, scripts, or dashboards. Claude Code also has billing-block views and project grouping, while individual sources can expose their own focused options.

What it is

A usage report for coding-agent CLIs

It reads supported local usage files and groups token counts, models, cache activity, and cost data by day, week, month, or session. Focused commands can narrow the same report to one source.

Why it stands out

One view across several agent tools

A unified report can place Codex, Claude Code, Gemini CLI, OpenCode, and other detected sources in the same table. That makes it easier to see where usage is happening without opening each tool separately.

Availability

Try it from a package runner or Nix

Readers can run ccusage with npx, bunx, pnpm dlx, or Nix, then use table output in a terminal or switch to JSON for further analysis. Offline mode uses cached pricing data when a network-free report is preferred.

Why it matters

What makes it useful

Coding-agent use can spread across several CLIs and local sessions. ccusage turns those separate logs into a shared timeline, so a reader can spot heavy days, compare tools, check model mixes, or export the numbers before deciding where a workflow is becoming expensive.

Notable points

What stands out

Treat the cost columns as usage estimates rather than an account bill. Pricing can come from stored cost fields or model-rate calculations, and the Codex adapter describes its support as experimental while Codex log formats continue to change. Codex cost output is an API-equivalent estimate, not a ChatGPT credit balance.

Before using

What to review

Check which local folders ccusage will read, especially when custom Claude or Codex homes include archived sessions or saved JSONL output.

Choose the cost mode deliberately when comparing periods. Auto, calculate, and display modes can use different inputs and may not produce the same totals.

Review JSON before sharing or publishing it. Reports can include dates, project or session groupings, model names, token totals, and estimated costs.

Use the source-specific documentation when a report looks incomplete. Older logs, missing model metadata, or changed formats can affect what is counted.

Use offline mode when cached pricing is sufficient and the report should avoid a pricing-data refresh.

Check the original listing's documentation for current requirements, limitations, licensing and any relevant privacy or security considerations.

Reader fit

Who may find it relevant

People switching between several coding-agent CLIs who want one usage view.

Codex or Claude Code users checking daily, monthly, session, or model patterns, with project grouping available for Claude Code.

Builders who want JSON output for their own spreadsheet, script, or dashboard.

Less useful for readers who need an official provider bill, account quota, or guaranteed historical reconstruction from incomplete logs.

Editorial note

Why LifeHubber lists it

ccusage turns scattered coding-agent logs into one readable usage history. Readers can see which tools and models account for their token use and estimated costs, while keeping the difference between a local estimate and an official account balance clear.

Source links

Source materials

Reader note

About our listings

LifeHubber’s listings help you explore what’s available in AI and are not endorsements. We don’t independently verify every detail or guarantee that each listing is accurate, safe, actively maintained, or right for your needs.

Advertisements

Advertisements

For project maintainers

Listed here? You can use the badge.

If you maintain a project with a current LifeHubber listing, you may add the optional “Listed on LifeHubber AI Resources” badge to its README, docs, or website. No introduction or permission request is needed.

MORE ON LIFEHUBBER

Use AI on your own terms.

Explore more AI projects, stories, guides, tools and community insights across LifeHubber.

See what’s moving