# 使用 npm 安装 ccusage

查看 ccusage 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### 便携式和语言管理器

- npm (100%):

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

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:ccusage
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/ccusage>
- **版本:** 20.0.19
- **来源摘要:** Analyze coding (agent) CLI token usage and costs from local data
- **主页:** <https://github.com/ccusage/ccusage#readme>
- **仓库:** <https://github.com/ccusage/ccusage>
- **上游文档:** <https://github.com/ccusage/ccusage#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/ccusage/-/ccusage-20.0.19.tgz>
- **问题跟踪器:** <https://github.com/ccusage/ccusage/issues>
- **发布时间:** 2026-07-27T22:56:30.791Z
- **最后更新:** 2026-07-27T22:56:30.791Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ccusage (cli)

## 构建依赖

- @types/node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 20.0.19
- 管理器更新时间: 2026-07-27
- 本地数据: OK
- 上游仓库: https://github.com/ccusage/ccusage
- 信息: No cached GitHub release or tag data was available.

## 安全说明

没有找到 ccusage 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **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

## 其他软件包管理器记录

- 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


## 相关链接

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

## 来源

- 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
