Skip to main content

Burnie

Some agents just want to watch your tokens burn.


burnie is a local cost analytics tool for Claude Code. It reads the session transcripts Claude Code stores on disk and tells you not just how much your sessions cost, but whether a given session was abnormally expensive, and what you can say about why.

burnie report

Features

  • Report: a visual HTML breakdown of token costs across all your Claude Code sessions, covering total spend, daily average, cache savings, and cost by model and by project.
  • Inspect: drill into any session to see what drove the cost, including context growth over time, tool call patterns, agent spawns, repeated operations, and how it compares to similar sessions.
  • Analyze: the /burnie skill runs a condensed report through Claude for a written, reasoned take on where your cost is coming from and what (if anything) is actually worth changing.
  • Statusline: shows the active session's running cost live in Claude Code's terminal UI, escalating 🔥 as it gets pricey.

Install

# run without installing
uvx burnie

# or install as a persistent command
uv tool install burnie

No uv? pip install burnie works too.

Then get the /burnie skill into Claude Code:

burnie --install-skill

Usage

# Generate HTML report
burnie

# Highlight a specific session in the report
burnie --session <session-id>

# Markdown report instead of HTML
burnie --markdown

# Condensed, LLM-readable report printed to stdout (what the `/burnie` skill uses)
burnie --raw --session <session-id>

The report is written to burnie-report.html in the current directory and opened in your browser. --markdown writes burnie-report.md instead. --raw prints straight to stdout with no file.

Live cost in your statusline

burnie --install-statusline

Configures Claude Code's statusLine to show the active session's running cost, refreshed every second, e.g. 💰 $12.40 🔥🔥. This only works in Claude Code's terminal UI, not the VS Code extension (it has no equivalent status surface for this).

burnie statusline showing 💰 $12.40 with two flame emoji

Cost & privacy

  • The dollar figures are API-equivalent costs, from Anthropic's published API rates. They are not necessarily what a Pro or Max plan bills you. Read them as "what this usage would cost at API prices," good for comparing sessions, not an invoice.
  • The report is generated entirely on your machine. No API key, no account access, no data leaves your computer. burnie only reads the JSONL files Claude Code already wrote to disk.
  • The optional /burnie skill passes the condensed report to your own running Claude Code session for analysis. That stays local to your session, not a call to any burnie backend (there isn't one).

How it works

Claude Code writes every session to a JSONL file at:

~/.claude/projects/<encoded-project-path>/<session-id>.jsonl

Each assistant turn includes token usage. burnie reads those files, applies current model pricing (bundled with the package and updated periodically as Anthropic changes its rates), and surfaces the data.

Metadata

Release files for burnie 0.1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for burnie 0.1.11
File Size Uploaded
burnie-0.1.11.tar.gz 1.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for burnie 0.1.11
File Interpreter ABI Platform
burnie-0.1.11-py3-none-any.whl Python 3 none any Details

Total release size: 1.9 MB

Release files / burnie-0.1.11.tar.gz

Download URL burnie-0.1.11.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
f13545fbf2772ce1276276e813ab942507709c415d537a778cacdbb4b4749399
BLAKE2b-256 checksum
How to use checksums
a49e67f75768e7fd87ad8897cec6df107e464d00a3656cfa75237ae51fa900ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / burnie-0.1.11-py3-none-any.whl

Download URL burnie-0.1.11-py3-none-any.whl
Size 137.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57b348c23be18e22ac1cca7ed25b0961bd55cf9fb1c3b3eef0b1e13c2e1bcae5
BLAKE2b-256 checksum
How to use checksums
38600de067038bcf7153f5a113f63ac6fa32226e0060142e78b5526ce1140829
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.1.11 This release

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page