@wiktorekdev/gburn
v2.0.0
Published
Grok Build session token burn at public API list prices. Native Rust TUI.
Maintainers
Readme
gburn
Native Rust TUI (v2). npm/npx/bunx still work — they download the platform binary from GitHub Releases.
Install
npx @wiktorekdev/gburn
bunx @wiktorekdev/gburn
npm i -g @wiktorekdev/gburn
# or cargo / from source
cargo install --git https://github.com/wiktorekdev/gburn --tag v2.0.0
cargo install --path .Binaries also on Releases.
Usage
gburn # TUI
gburn --summary
gburn --json
gburn --csv
gburn --cwd ideas
gburn --home ~/.grok
gburn --demo # sample data
gburn --debug 13000 10 # fake $13k / 10 grok-4.5 sessionsKeys and mouse
| Input | Action |
|-------|--------|
| ↑ ↓ / j k | Move |
| click | Select row / tab / chip |
| double-click / Enter | Open detail |
| right-click / Esc | Back |
| scroll wheel | Move / scroll |
| / | Search |
| s | Sort |
| t | Time range |
| a | Toggle subagents |
| 1–6 / Tab | Pages |
| r | Rescan |
| q | Quit |
Pages
- overall — burn intro (rocket / casino / inferno) + totals
- sessions — list + session detail
- projects — by cwd + project detail
- models — by model + model detail
- pricing — list rates
- help — shortcuts
Pricing
Costs are public API list rates (xAI / Cursor), not subscription invoices.
| Model | $/1M in | $/1M out | |-------|---------|----------| | Grok 4.5 | $2 | $6 | | Composer 2.5 Fast | $3 | $15 | | grok-build | $1 | $2 |
AI labs often subsidize inference (sell below true compute cost) to win users and lock in ecosystems. gburn shows what the same token volume would cost at list price, so you can see the scale of that burn even when your plan hides it behind a flat fee.
Data source: local ~/.grok/sessions.
Dev
git clone https://github.com/wiktorekdev/gburn.git
cd gburn
cargo run
cargo run -- --debug 13000 10
cargo build --releaseTUI: Rust + ratatui + crossterm.
Release
- Bump
versioninCargo.toml+package.json - Push to
main - Create a GitHub Release (
v2.0.0etc.)
CI builds platform binaries, attaches them to the release, then publishes @wiktorekdev/gburn to npm (OIDC trusted publish). The npm package is a thin installer: postinstall fetches the matching binary.
License
MIT © wiktorekdev
