dev-util/ccusage-bin
ccusage, a token usage and cost analyser for Claude Code and other agents
ChangeLog
commit 060b99e1aa2c86e15a0bd3a9d01acc3bb06dd3a3
Author: lucascouts <lucascs@protonmail.com>
Date: Thu Sep 10 23:07:09 2026 -0300
add(dev-util/ccusage-bin-20.0.20), add(metadata/md5-cache/dev-util/ccusage-bin-20.0.20), mod(.autoupdate/packages.toml)
ccusage reports token usage and spend for Claude Code and other agents. Not in
::gentoo, and GitHub publishes no Linux asset for it.
This is the third distinct shape an npm "CLI" can take, and the three are not
interchangeable. cline and kilocode wrap a per-platform binary; gemini-cli is
a self-contained JavaScript bundle; ccusage is a wrapper that REFUSES to run
without its native dependency, printing "ccusage native binary is not
available for linux-x64" and exiting 1. So the 20 KB "ccusage" package is not
the thing to package -- @ccusage/ccusage-linux-{x64,arm64} is, and the
autoupdate record probes that per-platform package so a version can never be
claimed unless the distfile the ebuild fetches exists at it.
The binary turns out to be static-pie and fully self-contained: no Node, no
JavaScript wrapper, nothing to launch it through. It therefore installs
straight to /usr/bin instead of the /opt-plus-symlink layout the other
prebuilt packages here need. npm ships it mode 0644, so doexe restores the
executable bit -- dobin would have installed it unusable.
Verified, not assumed: pkgcheck reports 0 findings; the package completed
`ebuild ... clean install` without root; and the installed /usr/bin/ccusage is
mode 0755 and executes, printing "ccusage 20.0.20".
Not verified: no merge onto the live system, so ownership is untested.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Author: lucascouts <lucascs@protonmail.com>
Date: Thu Sep 10 23:07:09 2026 -0300
add(dev-util/ccusage-bin-20.0.20), add(metadata/md5-cache/dev-util/ccusage-bin-20.0.20), mod(.autoupdate/packages.toml)
ccusage reports token usage and spend for Claude Code and other agents. Not in
::gentoo, and GitHub publishes no Linux asset for it.
This is the third distinct shape an npm "CLI" can take, and the three are not
interchangeable. cline and kilocode wrap a per-platform binary; gemini-cli is
a self-contained JavaScript bundle; ccusage is a wrapper that REFUSES to run
without its native dependency, printing "ccusage native binary is not
available for linux-x64" and exiting 1. So the 20 KB "ccusage" package is not
the thing to package -- @ccusage/ccusage-linux-{x64,arm64} is, and the
autoupdate record probes that per-platform package so a version can never be
claimed unless the distfile the ebuild fetches exists at it.
The binary turns out to be static-pie and fully self-contained: no Node, no
JavaScript wrapper, nothing to launch it through. It therefore installs
straight to /usr/bin instead of the /opt-plus-symlink layout the other
prebuilt packages here need. npm ships it mode 0644, so doexe restores the
executable bit -- dobin would have installed it unusable.
Verified, not assumed: pkgcheck reports 0 findings; the package completed
`ebuild ... clean install` without root; and the installed /usr/bin/ccusage is
mode 0755 and executes, printing "ccusage 20.0.20".
Not verified: no merge onto the live system, so ownership is untested.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>


View
Download
Browse