TokenSpy
FreeIs your site leaking an AI key? Scan it in 30 seconds

The circuit breaker
for your AI bill.

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.

  • We never hold your key
  • Set up in a few minutes
  • Free for your first app
your-guard.workers.devGuard live

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

OpenAIAnthropicGoogle GeminiLovableBoltReplitCursorv0Next.jsPythonNode.jsSupabaseOpenAIAnthropicGoogle GeminiLovableBoltReplitCursorv0Next.jsPythonNode.jsSupabase

The risk

Building with AI is easy. Surprise bills are too.

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

$0$600$1.2k$1.8k$2.4k6 PM8 PM10 PM12 AM2 AM4 AM6 AM8 AM● Guard stops it at the $10 cap

A leaked key

Your key ends up in front-end code or a public repo. Someone finds it and spends thousands overnight.

A runaway loop

One bug calls the AI again and again. You find out when the bill arrives.

One greedy user

A single user, or a bot, hammers your AI feature and drains the budget meant for everyone.

No idea where it goes

The provider shows one big number. Which feature, which user, which model? No clue.

The math

$15 a month, or a $4,500 surprise.

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.

Without a guard$4,500
With TokenSpy$25

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

We never touch your API key. Ever.

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 key stays a secret in your own account
  • Prompts and AI answers are never sent to us
  • We receive only: model, token counts, cost, time and the feature tag you choose
  • If our servers go down, your guard keeps enforcing your last limits

Your app

Same code, two new settings

same request as before

Your guard

Runs in your own Cloudflare account

holds your keycounts the costenforces your caps
with your key

AI provider

OpenAI, Anthropic or Gemini. Prompts go straight here.

numbers only

TokenSpy

Cost, tokens, model and time. Nothing else.

Your API key and your prompts never touch TokenSpy's servers. If we disappeared tomorrow, your guard would keep enforcing your last limits.

What you get

Not just a report. A brake pedal.

Built for people shipping apps, not data teams. No logs to read, just dollars and limits.

Hard spending caps

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.

Today$7.40 / $10
This month$86.00 / $150

# when the cap is hit

429 budget_exceeded

"Daily AI budget of $10

reached."

source: aitokenspy-guard

Kill switch

Something looks wrong? One tap stops every AI call from your app. Try it.

AI is running

Calls pass through your guard

Per-user limits

Each of your users gets their own daily budget, so one person or bot can't drain it for everyone.

  • user 8f2a…$0.31
  • user 1c9e…$0.12
  • user 77d0…limit hit
  • user a41b…$0.07

User ids are hashed inside your guard. We never see the real id.

Cost by feature, user and model

Tag each call with the screen it comes from and see what every feature really costs, in dollars.

  • chat$41.20
  • summary$12.60
  • receipt-scan$7.90
  • image-caption$3.10

Alerts before it hurts

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

Works even if we don't

Your guard keeps enforcing the last limits it received. Our outage never becomes your bill.

Dashboard unreachable · last limits still enforced

Free key-leak scanner

Check your website or public GitHub repo for exposed AI keys in 30 seconds.

How it works

Protected in three steps

No servers to run. If you can change a setting in your app, you can do this.

  1. 1

    Deploy your guard

    Press Connect Cloudflare and the guard goes into your own free Cloudflare account. You add your AI key there. It never comes to us.

  2. 2

    Point your app at it

    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.

  3. 3

    Set your limits

    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:

ai.ts
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

If your app calls an AI model, it needs a guard

No-code and vibe coders

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.

Indie developers

Stop loops and abusive users from burning your budget while you sleep. Two settings in your app, no code changes.

Agencies and studios

A guard per client app, each with its own caps, and every project's AI spend in one place.

Pricing

Free for your first app

A flat monthly price by number of apps. We never take a cut of your AI spend; you pay your AI provider directly.

Free

Protect one app, free forever.

$0/month

1 app

  • Daily and monthly caps
  • Per-user limits
  • Kill switch
  • Email alerts (spikes, caps, silent guard)
  • Cost by model, feature and user
  • 20k AI calls tracked a month
  • This month's history
  • OpenAI, Anthropic and Gemini
  • Your key stays in your account
Most popular

Builder

For makers with a few live apps.

$15/month

Up to 3 apps

  • Everything in Free
  • 150k AI calls tracked a month
  • 3 months of history
  • CSV export

Studio

For busy builders and small teams.

$25/month

Up to 6 apps

  • Everything in Builder
  • 500k AI calls tracked a month
  • 12 months of history

Agency

For agencies running client apps.

$39/month

Up to 15 apps

  • Everything in Studio
  • 1.5M AI calls tracked a month
  • 12 months of history
  • Priority support

FAQ

Questions, answered

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.

Put a brake on your AI bill before you need one.

Free for your first app. Builder is $15 a month, less than one hour of a leaked key. Your key stays yours.