Hard spending caps, per-user limits and a one-tap kill switch for apps that use OpenAI, Anthropic or Gemini. Your API key never leaves your own account.
Spent today · runaway loop
$0.00 / $10.00 cap
Unguarded, this loop costs
+$1,800/hour
0
Calls allowed
0
Calls blocked
$0
Money saved
waiting for your app…
Live simulation with sample numbers. Press the kill switch.
Works with
The risk
Every app that calls an AI model shares the same four ways to lose money, whether it has 10 users or 10,000.
One bad night
A leaked key, 6 PM to 8 AM. Sample numbers.
Without a guard
$2,400
With TokenSpy
$10
Your key ends up in front-end code or a public repo. Someone finds it and spends thousands overnight.
One bug calls the AI again and again. You find out when the bill arrives.
A single user, or a bot, hammers your AI feature and drains the budget meant for everyone.
The provider shows one big number. Which feature, which user, which model? No clue.
The math
Most people only find out what an unprotected AI key costs after it happens. Pick an incident and compare.
A bot finds your key in your app's code and runs it day and night. You notice three days later.
Stopped at your $25 daily cap
How we got this number: Bots run many requests in parallel on the most expensive model: about $1,500 a day, for 3 days.
Builder plan
$15 / month
$180 a year, for up to 3 apps.
This one incident would cost you
$4,475 more
That's 24 years of Builder, gone in one incident.
Your AI provider still sends you the bill, even when someone else ran it up.
Example figures based on published model prices. Real costs depend on your model, your provider's rate limits and how quickly you notice. TokenSpy limits how much an incident can cost you. It can't stop a key from being stolen, so keep keys on a server and replace any that leak. See our terms.
The big difference
Most cost tools ask for your key so their servers can make calls for you. We don't. Your guard runs in your own Cloudflare account and sends us only the numbers.
Your app
Same code, two new settings
Your guard
Runs in your own Cloudflare account
AI provider
OpenAI, Anthropic or Gemini. Prompts go straight here.
TokenSpy
Cost, tokens, model and time. Nothing else.
What you get
Built for people shipping apps, not data teams. No logs to read, just dollars and limits.
A daily and a monthly limit per app. When it's reached, the guard refuses new AI calls. A real stop, not just an email after the damage.
# when the cap is hit
429 budget_exceeded
"Daily AI budget of $10
reached."
source: aitokenspy-guard
Something looks wrong? One tap stops every AI call from your app. Try it.
AI is running
Calls pass through your guard
Each of your users gets their own daily budget, so one person or bot can't drain it for everyone.
User ids are hashed inside your guard. We never see the real id.
Tag each call with the screen it comes from and see what every feature really costs, in dollars.
Email the moment spend spikes, nears a cap, or your guard goes quiet.
Spend spike today · My chat app
$9.80 is 3.2x your usual day
Your guard keeps enforcing the last limits it received. Our outage never becomes your bill.
Check your website or public GitHub repo for exposed AI keys in 30 seconds.
How it works
No servers to run. If you can change a setting in your app, you can do this.
Press Connect Cloudflare and the guard goes into your own free Cloudflare account. You add your AI key there. It never comes to us.
Change two settings: the guard address and your guard password. Vercel can do it for you, or paste our prompt into Lovable, Bolt, Cursor or Replit.
Pick daily, monthly and per-user caps in the dashboard. The guard counts every call and blocks anything over budget.
The only change to your code:
import OpenAI from "openai";const openai = new OpenAI({− apiKey: process.env.OPENAI_API_KEY,+ baseURL: "https://your-guard.workers.dev/openai/v1",+ apiKey: process.env.OPENAI_API_KEY,});
0
API keys we hold
Your key lives in your own Cloudflare account
0
Prompts we store
Requests stream straight to the AI provider
Minutes
To set up
One click, two app settings
$0
For your first app
Free forever, no card needed
Who it's for
Shipped an app with Lovable, Bolt or Replit? Add a guard before you share the link, so a viral moment doesn't become a viral bill.
Stop loops and abusive users from burning your budget while you sleep. Two settings in your app, no code changes.
A guard per client app, each with its own caps, and every project's AI spend in one place.
Pricing
A flat monthly price by number of apps. We never take a cut of your AI spend; you pay your AI provider directly.
Protect one app, free forever.
1 app
For makers with a few live apps.
Up to 3 apps
FAQ
No. Your guard runs in your own Cloudflare account and keeps your key there as a secret. It talks to OpenAI, Anthropic or Gemini directly. TokenSpy only receives usage numbers: model, token counts, cost, time, and any feature tag you add.