Skip to main content
toolsSource-backed
ccusage logo

ccusage

Local CLI for analyzing Claude Code and other coding-agent token usage, costs, sessions, and billing-window activity from local usage data.

by ryoppippi·added 2026-06-02·
HarnessCLI
Review first review before installing

Open the source and read safety notes before installing.

Citation facts

Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.

Source URLs
https://ccusage.com/guide/getting-started, https://github.com/ccusage/ccusage, https://ccusage.com
Brand
ccusage
Brand domain
ccusage.com
Brand asset source
brandfetch
Safety notes
Run from a trusted package source and review repository/package provenance before using in sensitive workspaces., Cost estimates depend on local usage data and pricing metadata; treat them as operational estimates, not billing authority.
Privacy notes
Reads local coding-agent usage files from the developer machine to calculate token and cost reports., JSON export can include project or session metadata, so review output before sharing logs or reports publicly.
Author
ryoppippi
Claim status
unclaimed
Last verified
2026-06-02

Decision playbook

Review trust signals before you adopt

Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.

Compare context
Selected

0

Current score

78

Baseline

Delta

No baseline selected

No major trust-signal divergence detected in the current selection.

Source and provenance checks

Complete

Confirm ownership and provenance before trusting install instructions.

  • Source link availableRequired

    Open the canonical repository and verify ownership.

    Done
  • Source provenance statusRequired

    Marked as source-backed.

    Done
  • Metadata reviewed

    Registry metadata indicates a reviewed listing.

    Done

Safety and privacy checks

Complete

Validate risk disclosures before installation or API wiring.

  • Safety notes presentRequired

    Review the listed safety guidance before running commands.

    Done
  • Privacy notes presentRequired

    Review data handling notes before connecting accounts or secrets.

    Done
  • Trust level risk gateRequired

    Trust level does not block evaluation.

    Done

Package and install checks

Needs review

Check package metadata and artifact integrity signals.

  • Install payload available

    Install or copy payload is available for review.

    Done
  • Package verification flag

    No package verification flag provided.

    Pending
  • Checksum metadata

    No checksum provided for downloaded artifact.

    Pending

Compare-driven decision checks

Needs review

Use compare context to validate trade-offs before adoption.

  • Compare tray has multiple entries

    Add at least one more entry to compare trust differences.

    Pending
  • Baseline comparison available

    No baseline peer selected yet.

    Pending
  • Diverging trust signals identified

    No major trust-signal divergence found.

    Pending

Setup at a glance

CLI install

Copy-ready — paste the snippet to get started.

Adoption plan

Balanced adoption plan

Current risk score 16/100. Use staged verification before broader rollout.

Risk 16

Pre-adoption checks

Validate source and review signals before any execution.

  • Confirm source provenanceRequired

    Source URL/provenance metadata is present.

    Done
  • Confirm metadata review state

    Listing has review metadata.

    Done
  • Verify install payload

    Install/config payload exists and can be inspected.

    Done

Security checks

Confirm safety, privacy, and package integrity signals.

  • Review safety notesRequired

    Safety notes are present.

    Done
  • Review privacy notesRequired

    Privacy notes are present.

    Done
  • Verify package integrity metadata

    No package verification/checksum metadata.

    Pending

Rollout

Adopt in controlled steps based on the selected plan.

  • Run in isolated sandbox firstRequired

    Use a constrained sandbox and observe behavior across multiple tasks.

    Pending
  • Roll out graduallyRequired

    Roll out to a small cohort before wider usage.

    Pending
  • Set monitoring and fallback

    Define rollback path and monitor errors after adoption.

    Pending

Evidence readiness

Evidence readiness matrix · balanced

Required evidence gates are covered (5/6 signals complete).

Risk 15

Source provenance

Present

Source repository/provenance is listed.

Required in this preset

Metadata review

Present

Review metadata is present.

Required in this preset

Safety notes

Present

Safety notes are present.

Required in this preset

Privacy notes

Present

Privacy notes are present.

Optional in this preset

Package integrity

Missing

Package integrity metadata is missing.

Optional in this preset

Install payload

Present

Install payload is available.

Required in this preset

Required evidence gates are covered for this preset.

Decision timeline

Decision timeline · balanced

5/6 steps complete with no blocking gaps for this preset.

Risk 14

triage

Confirm source provenanceRequired

Source/provenance metadata is available.

Done

triage

Check metadata review statusRequired

Review metadata is available.

Done

verify

Review safety notesRequired

Safety notes are available.

Done

verify

Review privacy notes

Privacy notes are available.

Done

verify

Validate package integrity metadata

Package integrity metadata is missing.

Pending

rollout

Verify install payload and commandsRequired

Install payload is available.

Done

No required blockers for this timeline preset.

Safety & privacy surface

Safety & privacy surface

2 safety and 2 privacy notes across 3 risk areas. Review closely: credentials & tokens.

3 areas
  • SafetyExecution & processesRun from a trusted package source and review repository/package provenance before using in sensitive workspaces.
  • SafetyTelemetryCost estimates depend on local usage data and pricing metadata; treat them as operational estimates, not billing authority.
  • PrivacyCredentials & tokensReads local coding-agent usage files from the developer machine to calculate token and cost reports.
  • PrivacyCredentials & tokensJSON export can include project or session metadata, so review output before sharing logs or reports publicly.

Disclosure: editorial

Safety notes

  • Run from a trusted package source and review repository/package provenance before using in sensitive workspaces.
  • Cost estimates depend on local usage data and pricing metadata; treat them as operational estimates, not billing authority.

Privacy notes

  • Reads local coding-agent usage files from the developer machine to calculate token and cost reports.
  • JSON export can include project or session metadata, so review output before sharing logs or reports publicly.

Schema details

Install type
cli
Troubleshooting
No
Source repository stats
Scope
Source repo
Tool listing metadata
Pricing
open-source
Disclosure
editorial
Application category
DeveloperApplication
Operating system
macOS, Windows, Linux
Full copyable content
bunx ccusage

About this resource

Editorial notes

ccusage is useful for developers who need local visibility into Claude Code and other coding-agent usage without building custom log parsers. It can summarize daily, weekly, monthly, and per-session usage, show Claude Code five-hour billing windows, export JSON, and provide a compact statusline-oriented view.

The fit for HeyClaude is strongest for teams that already use Claude Code heavily and want a fast way to understand token volume, cost trends, session shape, and project-level usage from local data.

Disclosure

Editorial listing. No paid placement or affiliate link is used.

Source citations

Add this badge to your README

Show that ccusage is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.

Listed on HeyClaude
[![Listed on HeyClaude](https://heyclau.de/badge/tools/ccusage.svg)](https://heyclau.de/entry/tools/ccusage)

How it compares

ccusage side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.

1 trust signal differ across this comparison (Submitter).

Next steps differ across entries — use the actions in the table below to copy install commands and source links per resource.

Field

Local CLI for analyzing Claude Code and other coding-agent token usage, costs, sessions, and billing-window activity from local usage data.

Open dossier

Open-source status companion for Claude Code and Codex with live local session state, your-turn alerts, usage views, and native macOS and Windows applications.

Open dossier

Open-source LLM observability platform for logging, metrics, cost tracking, feedback, and gateway workflows.

Open dossier

Open-source project behind CodeLayer, an IDE for orchestrating AI coding agents built on Claude Code, with keyboard-first workflows, team context engineering, and parallel Claude Code sessions across worktrees and cloud workers.

Open dossier
Next stepsDiffers
Trust
Review statusReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewed
Package trustPackage not verifiedPackage not verifiedPackage not verifiedPackage not verified
Source provenanceSource-backedSource-backedSource-backedSource-backed
SubmitterDifferstristan666666JPette1783
Install riskReview firstReview firstReview firstReview first
Notes Safety ✓ Privacy ✓ Safety ✓ Privacy ✓ Safety · Privacy ✓ Safety ✓ Privacy ✓
Brandccusage logoccusageAgent Island logoAgent IslandHelicone logoHeliconeHumanLayer logoHumanLayer
Categorytoolstoolstoolstools
SourceSource-backedSource-backedSource-backedSource-backed
AuthorryoppippiTristan TangHeliconeHumanLayer
Added2026-06-022026-07-152026-04-272026-06-05
Platforms
Harness
Source repo
Safety notesRun from a trusted package source and review repository/package provenance before using in sensitive workspaces. Cost estimates depend on local usage data and pricing metadata; treat them as operational estimates, not billing authority.Agent Island reads local Claude Code and Codex session files to determine session state; review the requested filesystem access before use. The macOS release is ad-hoc signed rather than Apple-notarized, so first launch requires right-clicking the app and choosing Open. Windows packages are distributed through GitHub Releases, Scoop, and winget; verify the release source before installation.— missingCodeLayer orchestrates AI coding agents that edit files and run commands in your repositories, so it inherits the execution risks of the underlying Claude Code agent. MultiClaude runs multiple Claude Code sessions in parallel across git worktrees; review changes per worktree before merging to avoid conflicting or unreviewed edits. Remote cloud workers can run agent sessions on external infrastructure; understand where code executes before enabling them. Scaling agent workflows to a whole team increases the blast radius of automated edits, so keep human review and branch protections in place.
Privacy notesReads local coding-agent usage files from the developer machine to calculate token and cost reports. JSON export can include project or session metadata, so review output before sharing logs or reports publicly.Session monitoring is local and the project states that the app has no Agent Island account and no product telemetry. Usage views may call provider usage APIs with existing local credentials; those requests remain subject to the provider's privacy terms. Local transcript files and provider credentials can contain sensitive data and should not be included in public screenshots, issues, or logs.When used as a proxy, Helicone sits in the request path and logs your LLM prompts, responses, and metadata (Helicone cloud or your self-hosted instance); review what request data is captured, keep secrets out of logged payloads, or use the self-hosted/async logging options.Because it builds on Claude Code, repository code and context are sent to Anthropic's API to power the agent. Remote cloud workers process your code and context on external infrastructure; review the provider's terms before sending private code. Any API keys or credentials used by Claude Code and CodeLayer should be stored as secrets, not committed to source control. Team and context-engineering features can share prompts, context, and workflow data across collaborators, so avoid placing secrets in shared context.
Prerequisites— none listed
  • macOS 13 or later, or Windows 10 or later.
  • A local Claude Code or Codex installation with session data available to the current user.
— none listed
  • Claude Code, since CodeLayer is built on top of it and orchestrates Claude Code sessions.
  • An Anthropic account or API access for the underlying Claude Code agent.
  • A recent CodeLayer build from the project's GitHub releases or the waitlist for early access.
  • Git, since parallel-session workflows rely on worktrees.
Install
bunx ccusage
brew install tristan666666/tap/agentisland
Config
Citations
ClaimUnclaimedUnclaimedUnclaimedUnclaimed
Open 4 picks in the interactive comparison tool

Related guides

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.