[KongchangAI]
Product

ccusage

ccusage is a command-line interface (CLI) tool developed in Rust, designed to track and analyze token consumption and associated costs incurred when using AI coding assistants such as Claude. Its main features include parsing local session logs, aggregating usage data by time period or project, and displaying consumption details in a human-readable format, helping developers monitor the actual usage costs of AI tools.

Timeline (last 90 days)

Oct 27

The poster's usage comparison, tallied with the ccusage tool, is: total tokens about 8.1×, output tokens about 26.3×, and API-equivalent cost about 12×.

Unverified50%
Oct 27

ccusage is an open-source command-line tool that parses Claude Code's local session logs (usually located in a hidden folder under the user directory) to aggregate daily/monthly token consumption, request counts, and equivalent cost calculated at Anthropic's public API prices.

Unverified50%
Oct 27

ccusage's statistics do not rely on server-side billing and cannot distinguish successful requests from requests retried due to errors.

Unverified50%
Oct 27

The developer's suggestions include: continuously recording local usage with ccusage to establish a baseline, splitting long sessions to avoid cascading consumption, and keeping screenshots and customer service communication records for appeals.

Unverified50%
Oct 15

ccusage (`npx ccusage`) is a command-line tool that requires Node.js and can read Claude Code's `.jsonl` logs and generate daily/monthly/session usage reports in the terminal.

Unverified50%
Oct 15

When self-written scripts count token usage, if deduplication is not performed, the results are usually higher than the values reported by ccusage or CodeBurn.

Unverified50%

All Facts (9)

Unverified

ccusage是一个用Rust编写的开源CLI工具,专门用来分析AI编程助手的Token消耗和成本

95%
Unverified

ccusage支持日报、周报、月报、绘图报告等多维度报告功能

90%
Unverified

ccusage的数据完全在本地处理,不上传至第三方服务器

90%
Unverified

The developer's suggestions include: continuously recording local usage with ccusage to establish a baseline, splitting long sessions to avoid cascading consumption, and keeping screenshots and customer service communication records for appeals.

50%
Unverified

ccusage is an open-source command-line tool that parses Claude Code's local session logs (usually located in a hidden folder under the user directory) to aggregate daily/monthly token consumption, request counts, and equivalent cost calculated at Anthropic's public API prices.

50%
Unverified

ccusage's statistics do not rely on server-side billing and cannot distinguish successful requests from requests retried due to errors.

50%
Unverified

The poster's usage comparison, tallied with the ccusage tool, is: total tokens about 8.1×, output tokens about 26.3×, and API-equivalent cost about 12×.

50%
Unverified

When self-written scripts count token usage, if deduplication is not performed, the results are usually higher than the values reported by ccusage or CodeBurn.

50%
Unverified

ccusage (`npx ccusage`) is a command-line tool that requires Node.js and can read Claude Code's `.jsonl` logs and generate daily/monthly/session usage reports in the terminal.

50%

Source Articles