pkg.soopen package index

brew / rank 1405

Install ccusage with Homebrew, Nix

CLI tool for analyzing Claude Code usage from local JSONL files. Version 20.0.19 via Homebrew; verified 2026-07-28. Also installable with nix: nix profile install nixpkgs#ccusage.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install ccusage

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#ccusage

nixpkgs package indexes · pkgs/by-name/cc/ccusage/package.nix · source: api.github.com

overview

Package summary

CLI tool for analyzing Claude Code usage from local JSONL files

Commands and aliases

  • ccusage

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2025: Official GitHub repository created.
  • 2026: v20 series releases published.
  • 2026: Official docs describe unified reports across many coding-agent CLI data sources.

Related projects

  • Claude Code and Codex are core data sources described in the official guide.
  • The README also lists OpenCode, Amp, Droid, Codebuff, Hermes Agent, pi-agent, Goose, OpenClaw, Kilo, Kimi, Qwen, GitHub Copilot CLI, and Gemini CLI as supported sources.

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for ccusage. Package metadata is still published here so future coverage has a stable package URL.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
.ccusage/ccusage.json~/.claude/ccusage.json~/.config/claude/ccusage.json

executables

Installed executables

CommandKindExposureNote
ccusagecliglobal executable

freshness

Version and 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.

page generated2026-08-04
manager version20.0.19
manager updated2026-07-28
local dataok
upstreamcurrent
latest detectedv20.0.19

https://github.com/ccusage/ccusage

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:ccusage
Version20.0.19
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/ccusage
Homepagehttps://github.com/ccusage/ccusage
Repositoryhttps://github.com/ccusage/ccusage
LicenseMIT
Source archivehttps://github.com/ccusage/ccusage/archive/refs/tags/v20.0.19.tar.gz
Last updated2026-07-28T03:45:56Z
Pulseupdated
Build dependenciesrust
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameccusage
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

ccusage

nix profile install nixpkgs#ccusage
  • normalized package name match
  • Matched by: Ccusage
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/cc/ccusage/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation