◎ Obol
Measure, diagnose, and cut your Claude Code token spend — deterministic, local, free.

An obol was the smallest coin of the ancient Greek world — the single tiny unit of
currency you actually spent. A token is an obol. Obol watches where yours go, tells you
why they're wasted, fixes what's safe to fix, and proves your answers didn't get worse.
No API key. No account. No model in the loop. It reads the logs Claude Code already keeps
on your machine and does the rest with math.
See it in 10 seconds
No logs yet? Run the built-in demo — one command, the whole UI, zero setup:
git clone https://github.com/Qwinahh/Obol.git
cd Obol && npm install && npm run build
npm start -- --demo
◎ obol v0.0.1
measure · diagnose · cut your token spend — local, deterministic, free
╭──────────────────────────────────────────────────────────╮
│ $96.95 spent · 22.1M tokens · 6 sessions │
╰──────────────────────────────────────────────────────────╯
fingerprint Opus-heavy · Verbose-output · Cache-leaky efficiency 56/100 D
████████████████░░░░░░░░░░░░ share me ↑
✓ RECEIPT measured from your logs — not an estimate
$34.98 70% off your reused context (caching already saved this)
Estimated savings up to $33.56 (~35% of $96.95)
▲ Prompt caching A1 Only 52% of your input is cached $16.47
▲ Model tiering D1 80% of spend is on Opus $9.35
▲ Output discipline C1 Output is 47% of spend (~5x input) $6.79
▲ Bloated context B1 4 of 6 MCP servers never called $0.83
Do this next — biggest, easiest wins first
1. Output discipline 1 min · safe + reversible up to $6.79
2. Prompt caching review first up to $16.47
Quality Guard — prove a fix didn't make answers worse
✓ Prompt caching proven safe · $0
○ Model tiering needs a canary check · est <$0.01
(Then point it at your real usage: just npm start.)
Obol as you work (Claude Code)
Obol's optimiser runs during your session, not after it. Install the plugin:
/plugin marketplace add Qwinahh/Obol
/plugin install obol@obol
Restart Claude Code, and from then on every prompt you send goes through Obol
first. It reads the prompt locally (no LLM, no tokens), decides how much
firepower the task actually needs, and steers the turn accordingly.
Three modes. Pick one in the widget, or leave it on auto and Obol chooses
per prompt:
| Mode | What it does | Good for |
|---|
| Careful | Squeeze every token: smallest capable model, terse output, reuse loaded context, no speculative exploration | Small edits, questions, cleanups |
| Balanced | Right-sized effort — capable but not extravagant | Everyday work |
| Aggressive | Full capability, room to reason and write completely | Refactors, debugging, building from scratch |
Obol also tells you which one it would have picked and why ("involves deep
reasoning · touches 3 files"), so the choice is yours.
Live savings. After each turn Obol measures what prompt caching actually
saved on that session and publishes it to the desktop widget, so the number
rises while you work. Everything is local, in ~/.obol/.
Staying out of the way. Prefix any prompt with ~ and Obol skips that turn
entirely. It never posts messages into your session — the only visible output is
the widget beside it.
Why it's different
Most tools either just show you a number (ccusage, the usage monitors) or are
engineering infrastructure you wire into application code (LiteLLM, Langfuse). Obol
owns the middle, and goes the whole way:
measure → diagnose why it was wasteful → explain it plainly → apply the fix → prove the answer didn't get worse.
It's free, instant, private, and repeatable for one reason: the analysis is math over a
maintained technique catalog — no model is ever in the loop. That single constraint is
the moat. It's what lets Obol run with zero tokens, no key, and no data leaving your machine.
The one feature that ever spends a token is the opt-in Quality Guard — and even that is
off by default, uses your own key, and runs tiny prompts. Everything else is $0, always.
What it does