Token Damage

role
Design, implementation, testing, release
stack
TypeScript, Node.js
status
npm 0.6.0 · public repository

TOKENDAMAGE.COM ↗ NPM ↗ GITHUB ↗

AI coding agents spend tokens without showing a bill. Token Damage reads the local logs of six coding CLIs and prints one receipt.

Sample receipt: 14,690 words typed, 7,480 model calls, 1,178,700,000 tokens read by agents, list-price value $809.65, electricity 26 to 120 kWh, damage class Act of God, and a satirical note from the adjuster.

customer copy · a sample month from the README, not real usage

Local only.

It runs on your machine, with no network calls, no telemetry, and no accounts. It reads the usage logs your agents already keep, read-only; prompts are counted and never stored.

One receipt for six agents.

One adapter per agent (Claude Code, Codex, Antigravity, Grok Build, OpenCode, and Gemini CLI for API-key users) feeds a single itemized receipt: words typed, tokens read, what the same tokens would cost at API list prices, and an electricity estimate shown as a range. The adjuster’s note, a joke from a tired insurance adjuster, is printed in red, marked as satire, and never carries a real number.

Checked against an independent tool.

Every counted line is checked against hand-derived fixture totals, per day. Before each release, real logs are cross-checked against ccusage: 83 of 83 real days matched before 0.6.0.

Published from CI.

Version 0.6.0 is on npm, published from GitHub Actions through npm trusted publishing with provenance. The repository is public and MIT-licensed.

A boring number beats a wrong one.

Dollar figures are list-price equivalents, not what you paid; on a subscription you pay the plan. Claude Code deletes transcripts older than 30 days by default, so a receipt covers what survived and says so.

SIGNAL CALIBRATION

Signal lock
0%SEARCHING

SIGNAL LOCKED

CALIBRATION COMPLETE

OPERATOR CONTROL
GRANTED

OPERATOR CONTROL

Phosphor
Signal
Tuning

DIAGNOSTICS

    System log

      Symptom

      Signals
      Evidence
        Diagnostic confidence