anywhere in the page." }, { "@type": "HowToStep", "name": "Publish", "text": "The widget renders on load with a vendor picker, a calls-per-minute slider, and live blowout vs. capped figures. No configuration required." } ] }, { "@type": "FAQPage", "mainEntity": [ { "@type": "Question", "name": "What does the calculator actually compute?", "acceptedAnswer": { "@type": "Answer", "text": "Given a vendor and a calls-per-minute rate, it multiplies to a 24-hour call volume, applies the vendor's per-call USD cost, and shows the total dollar blowout. It then applies the suggested Keybrake daily cap and reports the capped figure plus the savings. It also shows the time-to-$100 at the current rate." } }, { "@type": "Question", "name": "Where do the per-call costs come from?", "acceptedAnswer": { "@type": "Answer", "text": "Stripe uses $15 per charge as a mid-market SaaS product price; Twilio uses $0.0079 per US-domestic SMS; Resend uses $0.0004 per email at the 50k-tier rate; OpenAI uses $0.01 per request as a typical GPT-4o call. These are conservative mid-market assumptions — real blowouts skew higher on Stripe when the merchant is a high-ticket product." } }, { "@type": "Question", "name": "Can I embed this on a commercial blog?", "acceptedAnswer": { "@type": "Answer", "text": "Yes. The widget is licensed for paste-anywhere use on personal or commercial sites, editorial or promotional, as long as the 'Powered by Keybrake' attribution link is preserved. No API key needed. No analytics beacon. Pure client-side." } }, { "@type": "Question", "name": "Does Keybrake actually enforce these caps?", "acceptedAnswer": { "@type": "Answer", "text": "Yes. The calculator's math is the same math Keybrake's proxy runs — Stripe charges parsed from response body, Twilio price from response header, Resend fixed per-email rate — rejecting the next call if it would push the running daily total over the configured cap. The calculator is a visualization of that same policy loop." } }, { "@type": "Question", "name": "Does it work on static sites / Next.js / Astro / Webflow?", "acceptedAnswer": { "@type": "Answer", "text": "Yes — the widget is a single async script that hydrates into a div. No framework integration needed. Works on any page that can run JavaScript. Gracefully no-ops if the mount div is missing." } } ] } ] }

Free tool · embeddable

Agent blowout calculator

Pick a vendor, set the stuck-loop rate, see what 24 hours of a runaway AI agent costs — and what a per-vendor daily cap would stop it at. Same math Keybrake runs in its proxy.

Runs client-side No API key Paste-anywhere license ~8 KB

Embed it on your site

Two lines. No framework integration, no build step, no API key. Drop the mount div where you want the widget, then load the script once anywhere on the page:

<div id="agent-13-embed"></div>
<script async src="https://keybrake.com/embed.js"></script>

The widget is vanilla JavaScript with inline styles — it doesn't pull a stylesheet, doesn't read cookies, doesn't set any, and doesn't fire an analytics beacon. It ships a "Powered by Keybrake" attribution link; keeping that link is the license.

Works on

How the math works

The calculator does one thing: multiply a stuck-loop rate by a per-call cost, then compare against a daily cap. The numbers you can tune are the calls-per-minute slider (1 to 600) and the vendor; the per-call cost comes from a short table baked into the widget:

Vendor Per-call cost Suggested daily cap 24h at 60 rpm, no cap
stripe — charges$15.00 / charge$50 / day$1,296,000
twilio — SMS (US)$0.0079 / SMS$10 / day$682.56
resend — email$0.0004 / email$5 / day$34.56
openai — GPT-4o$0.01 / request$20 / day$864.00

The Stripe number looks absurd, and it is — that's the point. A stuck agent hitting Stripe at one charge per second with a mid-market average ticket would burn $1.3M before the day is out. Real-world incidents top out lower because agents don't sustain that rate for 24 hours, but a single bad retry loop at $15 / charge for five minutes is $4,500 of charges you have to reverse. Per-vendor caps don't eliminate the risk; they bound it.

For the "time to burn $100" readout: we invert the rate. At 60 Stripe charges per minute (one per second, $15 each), $100 takes 6.7 seconds. At 60 Twilio SMS per minute that's 3.5 hours. At 60 Resend emails per minute, almost three days. Cheap calls are not the blowout surface — cost-per-call × rate is.

What the calculator is not

It's not a real-time burn monitor. It doesn't know your actual rate or actual vendor spend; it shows what could happen given the inputs. For real enforcement you need a proxy between your agent and the vendor — one that parses the cost out of each response and blocks the next call when the cumulative total crosses your cap. That's what Keybrake does. The calculator is the visualization of that policy loop; the proxy is the loop itself.

It's also not prescriptive about what your cap should be. $50 / day on Stripe is a starter default for an agent that processes a handful of real charges per day. If your agent does one charge per week with an average ticket of $2,000, your cap might be $2,500 / day (one-and-change charges) and an alert at $5,000. The calculator nudges you to think about the ceiling explicitly; picking the ceiling is your call.

Background reading

Pair the calculator with a real cap

Join the Keybrake waitlist — we'll email you a vault key when v1 ships, with the Stripe / Twilio / Resend proxy already configured against your suggested caps.