macOS
brew install ccusagelocal Homebrew formula metadata
brew
CLI tool for analyzing Claude Code usage from local JSONL files. Version 20.0.14 via Homebrew; verified 2026-07-04.
install
brew install ccusagelocal Homebrew formula metadata
overview
CLI tool for analyzing Claude Code usage from local JSONL files
history
ccusage is a local CLI for analyzing token usage and estimated costs from coding-agent CLIs. It began as Claude Code usage analysis and expanded into unified reports for Claude Code, Codex, OpenCode, Amp, Droid, Codebuff, Hermes Agent, pi-agent, Goose, OpenClaw, Kilo, Kimi, Qwen, GitHub Copilot CLI, and Gemini CLI.
The official guide says the original cc stood for Claude Code usage and now also fits Codex CLI usage. GitHub metadata shows the repository was created in May 2025, and the package metadata describes ccusage as analyzing coding-agent CLI token usage and costs from local data.
The project has moved quickly: official releases show the v20 series in 2026, and the docs emphasize all-local, read-only analysis with JSON and table output.
The official README highlights direct execution through npx, bunx, pnpm dlx, and Nix, plus a Homebrew package in the input facts. Its adoption is tied to the rise of agentic coding CLIs that store token and model usage locally.
Users run commands such as ccusage daily, weekly, monthly, session, or source-focused commands like ccusage codex daily. Configuration can come from CLI flags, a custom config, environment variables, .ccusage/ccusage.json, ~/.config/claude/ccusage.json, or ~/.claude/ccusage.json.
ccusage is package-nerd significant as a fast-moving observability tool for local AI coding workflows. It turns scattered JSONL and state files from multiple CLIs into a packageable, scriptable cost and token accounting surface.
security posture
No matching local secret-handling manifest was found for ccusage. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
.ccusage/ccusage.json~/.claude/ccusage.json~/.config/claude/ccusage.jsonexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
ccusage | cli | global executable | |
generate-config-schema | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/ccusage/ccusage
install metadata
| Package key | brew:ccusage |
|---|---|
| Version | 20.0.14 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/ccusage |
| Homepage | https://github.com/ccusage/ccusage |
| Repository | https://github.com/ccusage/ccusage |
| Upstream docs | https://ccusage.com/guide |
| License | MIT |
| Source archive | https://github.com/ccusage/ccusage/archive/refs/tags/v20.0.14.tar.gz |
| Last updated | 2026-07-04T16:53:42+09:00 |
| Pulse | updated |
| Build dependencies | rust |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | ccusage |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.