Skip to main content

Fast Claude Code + Codex usage and cost, from your local logs.

Project description

aiburn

Fast, fully local usage & cost reporting for Claude Code and Codex, in one table. See how much you're burning on your coding agents.

$ aiburn
aiburn · Claude Code + Codex usage

Date        Agent   Models       Input  Output  Cache    Cost
──────────  ──────  ───────────  ─────  ──────  ─────  ──────
2026-07-20  claude  opus-5       2.81K    222K  24.4M  $20.44
            codex   gpt-5.6-sol  64.0K   2.42K   500K   $0.64
2026-07-21  claude  opus-5         127   84.8K  22.3M  $17.27
──────────  ──────  ───────────  ─────  ──────  ─────  ──────
Date        Agent   Models       Input  Output  Cache    Cost
TOTAL                            66.9K    309K  47.2M  $38.35

Claude       $37.71   47.0M tokens
Codex         $0.64   567K tokens
Total        $38.35

Claude and Codex each get their own row so their tokens and cost stay separate. Token counts are compact (K/M/B/T) and costs exact — pass --exact for full counts, or --json for raw integers.

Why aiburn

  • Fully local & private — it only reads the log files your agents already write on your machine. No network calls, no account, no config; nothing about your usage ever leaves your computer.
  • One command, no installuvx aiburn on macOS or Linux.
  • Both agents, one view — Claude Code and Codex side by side, by day, month, or session.
  • Fast at any size — scans gigabytes of history in well under a second, with near-instant startup, so it stays snappy as your logs grow.
  • Accurate cost — recomputed from token counts (including cache tiers), and kept close to ccusage's numbers.

Run it

No install needed — uv fetches a prebuilt binary and runs it:

uvx aiburn                 # macOS / Linux, any arch
uvx aiburn monthly

Keep it as a permanent command:

uv tool install aiburn     # then just `aiburn`

Or build from source with a Rust toolchain:

cargo install --git https://github.com/handasontam/aiburn

Usage

aiburn [command] [options]

Commands:
  daily      Per-day usage and cost (default)
  monthly    Per-month usage and cost
  session    Per-session usage and cost

Options:
  --since <YYYY-MM-DD>   Only include usage on/after this date
  --until <YYYY-MM-DD>   Only include usage on/before this date
  --claude               Only Claude Code
  --codex                Only Codex
  --all                  Show every session (session view; default: top 25)
  --exact                Full token counts instead of K/M/B/T
  --json                 Emit JSON instead of a table
  -h, --help             Show this help
  -v, --version          Show version

What it reads

Only your local coding-agent logs — read in place, never sent anywhere:

  • Claude Code~/.claude/projects (also ~/.config/claude and $CLAUDE_CONFIG_DIR)
  • Codex~/.codex/sessions and ~/.codex/archived_sessions (or $CODEX_HOME)

Cost accuracy

Costs are recomputed from token counts with a built-in pricing table (from LiteLLM / models.dev), including Claude's 5-minute and 1-hour cache tiers. Claude totals track ccusage within ~0.3%. Codex is approximate (~1–2%): its logs carry no authoritative cost, so standard-tier pricing is assumed.

Two details worth knowing:

  • Fast mode costs more per token, so it's priced and shown separately — look for an opus-5-fast row alongside the standard opus-5 one.
  • Launch discounts are applied by date. Sonnet 5's introductory rate runs through 2026-08-31; days before that stay priced at the discount once it expires, so your history doesn't silently get more expensive.

Acknowledgements

Inspired by ccusage by @ryoppippi and contributors — a great, broader tool that covers many more agents. aiburn is a smaller reimplementation focused on just Claude Code + Codex. ccusage is MIT licensed.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

aiburn-0.3.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (297.0 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

aiburn-0.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (282.4 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

aiburn-0.3.0-py3-none-macosx_11_0_arm64.whl (258.1 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

aiburn-0.3.0-py3-none-macosx_10_12_x86_64.whl (273.2 kB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file aiburn-0.3.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for aiburn-0.3.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fb88d3a2289be717c91c7e460850186da4f1c6e9f6db66c6e6f420fbfbc31124
MD5 e1190c47f1d77066ba9bc956489b1659
BLAKE2b-256 dbb3c6ed96a4488cb530ffb0733677ea3559136f5bcae25be008882ae707d343

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiburn-0.3.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on handasontam/aiburn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aiburn-0.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for aiburn-0.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b0d1fd983ad4267ef00474798c8fb3c7bd5dbb0375b216085c3678211877af2f
MD5 2209f517a5787eb4fceb1c2f6a27c48a
BLAKE2b-256 3f386241ffd8c7b60f3ff1a2e2b99d615cb36fef841e8b7777af13a1a0b12aa1

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiburn-0.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on handasontam/aiburn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aiburn-0.3.0-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: aiburn-0.3.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 258.1 kB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for aiburn-0.3.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f22c7139136febb7ab00194254b94495d0626fe42dbe4d34bdf0b5a936ebbe32
MD5 f4ad9dcb9ccc28e6257017520fe63920
BLAKE2b-256 77f6e05eb7d8aac45bb12b7558ee7f32fd9167e1c20d8c2b509cd0503b4e31f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiburn-0.3.0-py3-none-macosx_11_0_arm64.whl:

Publisher: release.yml on handasontam/aiburn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aiburn-0.3.0-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for aiburn-0.3.0-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ea03e09556b3d4f1cb8b587418bb17679139b471695050841b7f946135cfa17f
MD5 1ed84426c2c584f63efff8f1a5fff24a
BLAKE2b-256 7da54f7380f7f94345241a1e267873e425eea2f2c324609f0d593493cc982a14

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiburn-0.3.0-py3-none-macosx_10_12_x86_64.whl:

Publisher: release.yml on handasontam/aiburn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page