# Install ccusage with npm

Analyze coding (agent) CLI token usage and costs from local data. Version 20.0.19 via npm; verified 2026-07-27. Also installable with nix: nix profile install nixpkgs#ccusage.

## Install

```sh
sudo av install npm:ccusage
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g ccusage
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:ccusage
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/ccusage>
- **Version:** 20.0.19
- **Source summary:** Analyze coding (agent) CLI token usage and costs from local data
- **Homepage:** <https://github.com/ccusage/ccusage#readme>
- **Repository:** <https://github.com/ccusage/ccusage>
- **Upstream docs:** <https://github.com/ccusage/ccusage#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/ccusage/-/ccusage-20.0.19.tgz>
- **Issue tracker:** <https://github.com/ccusage/ccusage/issues>
- **Published:** 2026-07-27T22:56:30.791Z
- **Last updated:** 2026-07-27T22:56:30.791Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- ccusage (cli)

## Build dependencies

- @types/node

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 20.0.19
- Package-manager updated: 2026-07-27
- Local data: ok
- Upstream repository: https://github.com/ccusage/ccusage
- info: No cached GitHub release or tag data was available.

## Security Notes

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


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 20.0.19
- **Version Count:** 131
- **Maintainers:** ryoppippi
- **Publisher:** GitHub Actions
- **Optional Dependencies:** @ccusage/ccusage-darwin-arm64, @ccusage/ccusage-darwin-x64, @ccusage/ccusage-linux-arm64, @ccusage/ccusage-linux-x64, @ccusage/ccusage-win32-arm64, @ccusage/ccusage-win32-x64
- **Funding:** <https://github.com/sponsors/ryoppippi>
- **Integrity:** sha512-vyNIyctcvTKFbrsU/WJuWiII3CVw8WopU/0NcR+lKmRbh62wm0jccmkWrFCG6j7R8agc8mIBz5+YlmGbXH1RnQ==
- **Shasum:** 9804ef4ebe9d7d8cc3626f433f3c1f85037a1f77
- **Unpacked Size:** 451,033
- **File Count:** 0
- **Created At:** 2025-05-29T19:25:18.575Z
- **Latest Published At:** 2026-07-27T22:56:30.791Z
- **Modified At:** 2026-07-27T22:56:31.130Z

## Other Package-Manager Records

- Nix - ccusage: normalized package name match | nixpkgs package indexes: pkgs/by-name/cc/ccusage/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [AI and agent packages](https://pkg.so/ai-agent-tools/) - Matched curated package taxonomy and local package facts.
- [ccusage](https://pkg.so/brew/ccusage/) - Same normalized package name appears in another local ecosystem. Shared terms: agents, ai, ccusage, cli, coding.
- [tokscale](https://pkg.so/npm/tokscale/) - Local package facts share a topical domain. Shared terms: agent, agents, ai, cli, coding.
- [first-tree-staging](https://pkg.so/npm/first-tree-staging/) - Local package facts share a topical domain. Shared terms: agent, agents, ai, cli, coding.
- [ccusage](https://pkg.so/brew/ccusage/) - Same normalized package name exists in another local package ecosystem.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
