# ccusage

> Open-source CLI that analyzes token usage and costs of Claude Code and other coding-agent CLIs.

- Website: https://ccusage.com
- Category: Coding & Development
- Source page: https://opendirs.com/en/tools/ccusage
- Pricing: Open source
- Starting price: $0
- Public API: No
- Open source: Yes
- Chinese language: No
- Accessible from mainland China: Unknown
- Platforms: Web
- Country: Unknown
- Last verified: Nov 29, 2026

## Overview

ccusage reads the local logs of Claude Code and other coding-agent CLIs and turns them into clear daily, monthly, session and billing-block reports of tokens and estimated cost. It runs instantly via npx without setup and has become a staple for developers on subscription plans who want to know how much they really use. It also offers live monitoring and statusline integration.

**Best for:** Claude Code and coding-agent users who want visibility into their token usage and cost.

## Key features

- Daily, monthly and per-session usage reports
- Estimated costs by model
- Live monitoring and 5-hour billing-block view
- Runs locally via npx with JSON output

## Use cases

- Checking whether a subscription plan pays off
- Spotting expensive sessions or models
- Feeding usage data into a dashboard

## Pros

- Free, open source and local-only
- Zero configuration
- Very popular and actively maintained

## Cons

- Costs are estimates based on public pricing
- Depends on local log formats that may change

## Alternatives

- [DeepEval](https://opendirs.com/en/tools/deepeval.md)
- [Laminar](https://opendirs.com/en/tools/laminar.md)
- [Repomix](https://opendirs.com/en/tools/repomix.md)
- [Quilter](https://opendirs.com/en/tools/quilter.md)
- [OpenCode](https://opendirs.com/en/tools/opencode.md)

## FAQ

### What is ccusage?

ccusage reads the local logs of Claude Code and other coding-agent CLIs and turns them into clear daily, monthly, session and billing-block reports of tokens and estimated cost. It runs instantly via npx without setup and has become a staple for developers on subscription plans who want to know how much they really use. It also offers live monitoring and statusline integration.

### Is ccusage free?

ccusage uses a Open source pricing model (verified Nov 29, 2026).

### Does ccusage have an API?

As of Nov 29, 2026, ccusage does not offer a public developer API.

### Does ccusage support Chinese, and is it available in China?

ccusage does not support Chinese, and it has unverified availability in mainland China.

### What are the best alternatives to ccusage?

Popular alternatives to ccusage include DeepEval, Laminar, Repomix, Quilter.

_Last verified: Nov 29, 2026_