ghostcorpnet

Home · Free tools

Free tool · 2 minutes

AI Agent Token & Cost Overrun Calculator

By ghostcorpnet Studio · Runs 100% in your browser — no signup, nothing sent anywhere

Agentic loops don't overspend gradually — they spike. Enter your model prices and loop shape below: you'll get your expected spend, what a runaway loop day costs, and the hard circuit-breaker thresholds to set per task, per agent, and per day.

From your model provider's pricing page.
Output tokens usually cost several times input.
Prompt + context + tool results fed back in.
Tool calls / reasoning steps before the task ends.
Failed calls, retries and re-prompts still bill.
A stuck loop repeating until a human notices.
Cost per task
$0.00
One task, all loop iterations, incl. retry overhead
Expected daily spend
$0.00
All agents, normal operation
Expected monthly spend
$0.00
30 days at the expected daily rate
One runaway-agent day
$0.00
A single agent stuck at the spike multiplier for a day
Breaker: max cost per task
$0.00
Kill a task that passes 2× its expected cost
Breaker: daily fleet ceiling
$0.00
Hard-stop all agents at 1.5× expected daily spend

How the math works

Cost per loop iteration = (input tokens × input price + output tokens × output price) ÷ 1,000,000. Multiply by iterations per task, add retry overhead, and you have a task. Tasks × agents is your day; a runaway loop multiplies one agent's day by the spike factor — which is why per-task and per-day circuit breakers, not monthly budget alerts, are what actually stop an overrun. A monthly alert fires after the money is gone; a per-task breaker fires while it is still cheap.

What to do with the breaker numbers

Put spend governance into practice

The Governed Agent Mesh Playbook — Studio Edition ($29) gives you the full system: spend controls, approval gates, audit trails, and incident response for agents in production.

Get the Studio Edition — $29

Or browse the full catalog →

Estimates only — actual billing depends on your provider's pricing, caching, and batching. This tool stores nothing and sends nothing.