# ccusage (npm package)

> Analyze coding (agent) CLI token usage and costs from local data

- Version: 20.0.48
- Released: 2026-11-02
- License: MIT License
- Monthly downloads: 928,525
- Source repository: https://github.com/ccusage/ccusage ([in the GitHits index](https://index.githits.dev/repositories/github.com/ccusage/ccusage/))

## Pages

- [ccusage on GitHits](https://index.githits.dev/packages/npm/ccusage/)
- [Direct dependencies of ccusage 20.0.48](https://index.githits.dev/packages/npm/ccusage/20.0.48/dependencies/)
- [Security advisories of ccusage 20.0.48](https://index.githits.dev/packages/npm/ccusage/20.0.48/security/)
- [Documentation of ccusage 20.0.48](https://index.githits.dev/packages/npm/ccusage/20.0.48/docs/)

## Use it from a coding agent

GitHits gives coding agents version-aware access to ccusage: they can search, grep and read its source and documentation, and check its dependencies and security advisories, through MCP or the CLI instead of guessing from training data.

Connect an agent with one command, which detects installed agents, configures them and signs in:

```sh
npx githits@latest init
```

- [Remote MCP server](https://mcp.githits.com) (Streamable HTTP)
- [Agent documentation index](https://docs.githits.com/llms.txt)
- [API overview](https://docs.githits.com/api/overview)
- [Explore the GitHits index](https://index.githits.dev/)
