ccost

module
v0.8.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2026 License: MIT

README

ccost

CI codecov Go Go Report Card Go Reference Release

A CLI tool to analyze Claude Code token usage, costs, and session time.

Reads local JSONL session logs. No network access. Alternative to ccusage.

demo

Installation

Homebrew

brew install zulerne/tap/ccost

Go install

go install github.com/zulerne/ccost/cmd/ccost@latest

Build from source

git clone https://github.com/zulerne/ccost.git
cd ccost
task build

Usage

ccost                                           # last 7 days (default)
ccost --since 2026-02-01 --until 2026-02-07     # custom date range
ccost --project myapp                           # filter by project
ccost --by-project                              # group by project
ccost --models                                  # per-model breakdown
ccost --by-project --models --since 2026-02-01  # combine flags
ccost --json                                    # JSON output
ccost --exact                                   # exact token counts (no K/M)

Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

MIT

Directories

Path Synopsis
cmd
ccost command
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL