One home for the usage engines behind the burn tools.

Burn Blocks is shared, read-only Go libraries and a CLI for Kimi Code, OpenRouter and DeepSeek usage, credits and estimated runway. DashBurn is the terminal UI for these packages.

Install the CLI View on GitHub

Try it without credentials: burnblocks demo prints both reports on synthetic data.

Burn Blocks only reads data: no inference requests, no purchases, and it never creates, rotates, or revokes a credential.

Command line preview

Two burnblocks reports in a terminal: the Kimi Code report lists the 5-hour quota with 25% used, its reset, and a three-hour runway, and marks the 7-day, monthly total and monthly code quotas as not reported; the OpenRouter report lists $87.50 remaining of $100.00 purchased, $3.00 spent over the last 30 days, and an 875-day runway.
Captured from burnblocks demo — synthetic example data, no real account figures.

Packages

All three are libraries only. Callers supply credentials, HTTP clients, clocks, and any prior state explicitly. The packages never read the environment, keyring, or a cache implicitly, and never write to stdout or stderr.

The burnblocks CLI

Each subcommand performs one read-only check and prints a concise text report:

burnblocks kimi
burnblocks openrouter
burnblocks demo       # both reports on synthetic data

--json prints the provider's own versioned document instead: schema 1 for Kimi, schema 2 for OpenRouter. Neither form starts a terminal UI; JSON goes to stdout and diagnostics go to stderr.

burnblocks kimi --json
burnblocks openrouter --json
burnblocks kimi --no-cache    # run without reading or writing the local cache

Each provider keeps its own schema and its own unit. Kimi reports ratios and OpenRouter reports US dollars, so the two are never totalled together.

DeepSeek is a library without a subcommand yet.

Where the runway comes from

Runway answers "at the current burn rate, when does this run out?" It is calculated on your machine from the readings the provider returned, not supplied by the provider, and it is an estimate, not a guarantee. A provider that reports no absolute amounts can only support a ratio-based estimate, and a missing value is labelled rather than invented.

Installation

Homebrew (macOS and Linux)

brew tap acevedomiguel/burnblocks
brew install --cask burnblocks
burnblocks --version

The cask installs a prebuilt binary. The tap is a third-party tap, so Homebrew asks you to trust it once with brew trust --tap acevedomiguel/burnblocks.

Go, for the command

go install github.com/acevedomiguel/burnblocks/cmd/burnblocks@latest

Go, for the libraries

go get github.com/acevedomiguel/burnblocks/kimi
go get github.com/acevedomiguel/burnblocks/openrouter
go get github.com/acevedomiguel/burnblocks/deepseek

Prebuilt binaries

Every release publishes Linux, macOS, and Windows archives plus a checksums.txt on the GitHub Releases page. Verify a download with sha256sum -c checksums.txt --ignore-missing.

From source

git clone https://github.com/acevedomiguel/burnblocks.git
cd burnblocks
make build
./burnblocks --version

Security and privacy

FAQ

Is Burn Blocks an application?

No. It is a Go module: three provider packages plus a small CLI. For a terminal UI, use DashBurn, which is built on it.

Why are the Kimi and OpenRouter numbers never added together?

They are different units. Kimi reports ratios of a quota; OpenRouter reports US dollars of a credit balance. Combining them would produce a number that means nothing.

Does DeepSeek have a CLI subcommand?

Not yet. The deepseek package exposes the read-only balance boundary and its own schema-1 JSON, and a subcommand is a separate follow-up.

Does DeepSeek have a runway?

No. Only the account balance, per currency. Runway needs a spend history the balance alone does not provide.

Can I embed the libraries?

Yes. That is the point. Supply your own credentials, HTTP client, clock, and prior state, and the package handles the provider protocol, the snapshot, and the JSON schema.

Open source and contributing

Burn Blocks is open source under the MIT license. Read CONTRIBUTING.md before opening a pull request, and browse the issue tracker. Release notes live on the releases page.