LIFEHUBBER
Theme

AI Resources

ccusage

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. Use this as a first read, not a recommendation. Open the original project before trusting details like terms, limits, privacy, cost, setup, or safety.

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, 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.

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

LifeHubber lists ccusage because it turns scattered coding-agent logs into one readable usage history. That helps readers 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

Before relying on this entry

LifeHubber lists entries to help readers inspect AI projects, not to endorse them or prove they are safe, suitable, accurate, maintained, or right for a specific use. We do not verify every entry in depth. Before relying on anything listed, review the original materials, terms, privacy practices, limits, and risks that matter for your situation.

Advertisements

Advertisements

See what’s moving