Know the cost first.

TokenOtter pauses your AI agent before it overspends, shows how far along it is and what finishing will likely cost, then lets you continue or stop without losing work.

~/code/checkout-servicezsh
$0.00 / $100/8 stepson track

AI gains, until the bill lands.

NET GAIN FROM AI · sample company · daily, in thousands of dollars
$0.0knet gain +$0.000 (+0.00%)
AI spend today$0.0k
Agents running0
Statusgrowing

Your agents ship work. The gains add up.

AI gains Without TokenOtter With TokenOtter

How a run goes

One command in front of the agent you already use.

run 1124-2050
agentclaude
repocheckout-service
budget$10.00
started

First, it meters every call.

run 1124-2050
steps3 of 8
spent$3.40
likely more$5.10 – $10.20
on track

Then it reads the plan.

run 1124-2050
steps5 of 8
spent$7.10
likely more$4.20 – $8.40
needs you

It pauses when it won't fit.

run 1124-2050
outcomefinished
total$13.30
forecastright
saved to wip branch

You choose. Nothing is lost.

45models priced from the providers' own pricing pages
$0.000001the smallest amount the meter counts
5repeats of the same call, and the loop is stopped
9 minwithout an answer, the run stops. It never continues on its own.
0prompts, code or keys written to disk

What TokenOtter never keeps

It sits between your agent and the provider, so it sees every call. It keeps only what it needs to count money.

  • Your API key passes through to the provider and is never written down.
  • Prompts and code are forwarded, not stored. The ledger holds model, tokens, cost, time and tool names.
  • It listens on 127.0.0.1 only, and its control API refuses requests from web pages.
  • An Anthropic key only ever goes to Anthropic, and an OpenAI key only to OpenAI.
  • Every release ships with SHA-256 checksums, and the installer refuses a file that doesn't match.
Request from claude
x-api-keysk-ant-••••••••••••
modelclaude-sonnet-4-5
messages42 turns, 61,204 tokens
forwarded to api.anthropic.com
Row written to ledger.db
run1124-2050
modelclaude-sonnet-4-5
tokens61,204 in · 812 out
cost$0.195792
promptnot stored
keynot stored

Built around the pause

Everything else is the base that makes the pause trustworthy.

Exact cost meterInput, output, cache read and cache write tokens, priced from a versioned table in integer micro-dollars.
Hard capsPer run, day and month. Each call reserves its worst case first, so parallel runs can't overshoot.
Loop detectorSame call 5 times: stopped.
Reads the planTodoWrite or report_progress.
Stop without losing workYour working tree is committed to a WIP branch. Your own branch, index and files stay untouched.
Public accuracyForecasts scored on your runs.
Nothing leavesKeys pass through, never stored.

Now your agent can talk to TokenOtter.

TokenOtter is also an MCP server. Link it once, and Claude Code or any MCP client gets three tools. The agent tells TokenOtter how far it has got, and can check its own spend before it starts something big.

claude mcp add tokenotter -- tokenotter mcp

There is no tool to approve a pause or raise a budget. An agent never approves its own spending.

  1. report_progress"3 of 8 steps done." Feeds the cost-to-finish forecast and the pause, even for agents that keep no to-do list.{"done": 3, "total": 8}
  2. run_statusSpend, budget, progress and the likely cost to finish, for the run the agent is in.run 1124-2050: $3.40 / $10.00 · 3/8 steps · on track
  3. list_runsRecent runs with their agent, repo, branch, loop alerts and cost.1124-2050 agent=claude repo=checkout-service cost=$3.40

Tested, not promised.

Hundreds of simulated runs through the real proxy, with a fake provider on the other side. These numbers are re-checked on every push, in CI.

400/400calls billed exactly, to the micro-dollar, across 5 models, both API formats, streaming and not, with cache tokens
$0overshoot when 20 runs share one $2 daily cap, 600 calls in parallel
150/150loops caught, and 0 of 150 healthy runs stopped by mistake
98%of runs finished inside the forecast range when context grows each call. 99% with flat costs, 83% when cost compounds.

The tests also caught a weak forecast: its first version hit the range on only 59% of runs, so we rebuilt it. These are simulated runs, not real provider traffic. One known gap: tokens a provider adds outside your request, such as web-search results, aren't reserved, so a call like that can pass a cap by its extra cost. Your own accuracy shows in tokenotter accuracy after 5 finished runs.

What one stuck loop costs

Set it to your agent and see what a loop costs when nobody is watching, and what it costs when TokenOtter stops it at the fifth repeat.

$0without TokenOtter, over 0 calls
$0with TokenOtter: 4 calls, then stopped at the fifth repeat

Prices per million input / output tokens, from the providers' pages on 24 Nov 2026. Assumes every call re-sends the full context at the normal input price and writes 1,000 output tokens. Prompt caching would lower both numbers.

A cap stops. TokenOtter asks.

Provider spend limitA plain budget capTokenOtter
Limit per taskNo, per workspace or monthYesYes, plus day and month
Checks before the call is sentNoDepends on the toolYes, worst case reserved first
Knows how far the task gotNoNoYes, from the agent's plan
Says what finishing will costNoNoYes, a likely range
Lets you continue on the spotNoNoYes, one click
Keeps the work when it stopsNoNoYes, on a WIP branch
Catches loopsNoNoYes, at five repeats

Two plans. Start free.

Free$0for one person, forever
  • Exact cost meter on every call
  • Per-run budget with the pause card
  • Loop stops and checkpoint to a WIP branch
  • Forecast, accuracy score and the MCP server
  • Answer in the terminal, desktop popup or dashboard

Limits: one run at a time, 30 days of history in reports, per-run budgets only.

Start free
Max$4a month, no limits
  • Everything in Free
  • As many agents in parallel as you run
  • Daily and monthly caps, on top of per-run budgets
  • Full history, kept as long as you like
  • Phone and Slack approvals as they ship

Billed monthly in rupees (₹349, about $4) through Razorpay. Cancel any time. 7-day refund.

By paying you agree to the Terms, Privacy policy and Refund policy.

Get Max

Fair questions

Which agents does it work with?

Anything that takes a base URL for Anthropic or OpenAI-style APIs: Claude Code with an API key, Codex CLI, Aider, Cline and your own SDK agents. Start them with tokenotter run -- <command>.

What is the difference between Free and Max?

Free is the full product for one person: one run at a time, 30 days of history in reports, and per-run budgets. Max, at $4 (₹349) a month through Razorpay, removes those limits: parallel runs, daily and monthly caps, and full history.

What does the MCP server add?

Run claude mcp add tokenotter -- tokenotter mcp once. Your agent can then report its progress and read its own spend. The proxy still does the metering and the pausing; the MCP tools make the forecast work for agents without a to-do list.

Does it see my code or keys?

Keys pass through to the provider and are never written to disk. Prompts and code are never stored. The ledger keeps metadata only: tokens, cost, model, time and tool names.

What if nobody answers the card?

After 9 minutes the run stops and your work is saved to a WIP branch. TokenOtter never continues on its own.

How good is the forecast?

It fits a trend line to the cost of each call so far, since context grows as a task goes on, and projects the calls still to come. It is labelled low confidence until 3 steps are done. In simulated runs the final cost landed inside its range 98% of the time, and every forecast on your own runs is scored against what really happened.

Is it for ChatGPT or Claude.ai plans?

No. Flat monthly plans have no per-call bill to protect, and a local proxy can't sit inside those apps. The same goes for Claude Code on a Pro or Max subscription.

What is TokenOtter, and what does it not do?

TokenOtter is a spend limit for AI coding agents. It meters the API calls your agent makes, forecasts what finishing will cost, and pauses the run before it goes over your budget. It does not generate images, video or any other content, and it does not create or edit pictures of people.

Why sign in with Google, and what do you get?

An account is optional and only needed for the online usage dashboard and a Max plan. Sign in with Google is used only to create your account and sign you in. We receive your name, email address and profile picture, and nothing else from your Google account. We don't sell it or use it for ads or AI training. Details are in the privacy policy.

What happens if the proxy crashes?

Agent calls fail rather than slip past your budget. Restart it with tokenotter serve and carry on with tokenotter resume.

What does an unknown model cost?

TokenOtter blocks the call with a clear message until the model is in the price table. A wrong price would be a bug in the one thing you trust it for.

Set your first budget.

Pick an agent and a budget. Copy the two commands, and your next run pauses before it costs more than you agreed to.

New run budget