LeakyButton Your visit 0presses $0.000 Start free

For apps built with Cursor, Lovable, Bolt and v0

Find the AI buttons that are leaking money.

Your app has buttons that call a paid AI model every time someone presses them, and often nothing limits how many times. LeakyButton watches every press, flags the leaks, and gives you the fix.

  • Every press trackedwhich button sent which AI call, and what it cost
  • Leaks flagged in a minuteby email, Slack, Telegram or webhook
  • The fix includedcode, a prompt for your AI, and a one-click limit

How it works

  1. 1

    Paste one line

    Add the LeakyButton script tag to your site's footer. No backend changes, no cookies.

    <script src="https://leakybutton.com/c.js" data-site="lb_..." defer></script>
  2. 2

    It watches every press

    Each click is linked to the request it sends, so you see which button calls AI, how often, from which visitor, and what it costs.

    "Generate with AI"→ POST /api/generate$0.004
  3. 3

    You get the leak and the fix

    A detector checks every minute. When a button has no limit, loops, or leaks your API key, you're told, with the exact fix to paste into your AI coding tool.

    Leak found"Generate with AI" has no limit

A real one, live

Your AI bill, itemized by button.

This is the actual last 24 hours of Quill, a sample AI writing app we run with the usual mistakes in it. LeakyButton splits the spend by the button that caused it and flags the ones that leak.

Open Quill's dashboard

Quill, last 24 hours

Live from our demo app
loading
Button and pageEndpointCallsMost in one sessionCost
Total--

- of the day's spend sits on flagged lines. Fixes are ready for each one.

One impatient visitor is all it takes.

A Regenerate button with no limit sends a paid model call on every press. Most AI-built apps ship exactly that, because the code works and nobody asked for a limit.

The worksheet is arithmetic, not a statistic: presses, times price, times visitors, times thirty days. Change any number.

Worksheetuncapped button, one month
Price of one call
A day$4.80
A month$144.00

Add yourself to the statement.

This page runs LeakyButton on itself. Press Regenerate as often as you like: it's a real request to an endpoint with no limit. It doesn't call a model, so it costs nothing, but every press is priced as if it did.

yourapp.com/editorsample app

hey team, the launch moves to thursday because payments aren't done, budget stays the same, dont panic

AI suggestion appears here.

Statement for your session

session ...
TimeLineStatusCost
No lines yet. Press Regenerate.
Presses0
Seconds0
Priced as a real model$0.000
The detector flags an uncapped button at 10 presses with nothing refusing.

Then a memo says what happened, in plain words.

Every report starts from counted numbers: sessions, presses, calls, cost. A language model writes the sentences around them and is told to use nothing else. Here's the one for your visit so far.

For your own site, a memo like this arrives daily or weekly, and whenever you ask.

To
The owner of this site
From
LeakyButton
Re
Your visit

Nothing written yet. Press Regenerate a few times above, then ask for the memo.

Every flag comes with the fix.

Two of them. A guard LeakyButton switches on inside your visitors' browsers right now, with no deploy. And the real limit your server should have, written as a prompt for your coding assistant.

The guard is off. Nothing stops a press.

Prompt for Cursor, Claude Code, Copilot, Lovable or Bolt
In my web app, the "Regenerate" button on /editor calls POST /api/rewrite. One visitor pressed it 412 times in a single session and the server never refused a request, so every press costs us an AI call.

Please:
1. Disable the button while a request is in flight and add a 3 second cooldown after it completes.
2. Add a server-side rate limit on POST /api/rewrite: 20 requests per 10 minutes per signed-in user, and per IP for guests. Return HTTP 429 with a Retry-After header.
3. When the client gets a 429, show "You're going a bit fast. Try again in a moment." instead of an error.

Keep everything else the same and show me the diff.

Written from the flag's own numbers: the button, the page, the endpoint and how far it was pushed. Or connect your assistant over MCP and it reads the flags itself.

Buttons are where it starts.

The script sees every click and every request it causes, so it knows which press sent what, how often, and what came back. Every minute, a detector checks the record for these patterns.

PatternWhat LeakyButton seesWhy it costs you
Uncapped buttonThe same button pressed again and again, the endpoint never refusingEvery press is a paid call
Key in the pageThe browser calling OpenAI, Anthropic, Gemini or similar directlyAnyone can copy the key and spend on your account
Retry loopA failure, then the same call within seconds, over and overEach retry pays for a full answer
Calls nobody clicked forRequests with no press before them, at a steady rhythmPolling or a render loop bills you around the clock
Paid twiceThe same request body answered againA cache would have been free
Double sendOne press, two identical requests within half a secondTwice the cost for one answer
Abandoned streamsStreamed answers cut off by Stop or RegenerateThe model usually finishes, and bills, anyway
AutomationHeadless browsers, scripted clicks, machine-regular timingSomeone is using your AI as a free API
Spend spikeThis hour's spend against your usual weekSomething changed, and it's costing money now
Heavy sessionsA few sessions carrying most of the costOne user or script can be your whole margin
Never refusesHundreds of calls a day, not one 429There is no limit to hit
Failing paid callsModel calls that time out or errorTimeouts are often still billed

No script yet? Run a button scan.

Verify you own the site and a sandboxed browser visits it, presses each AI button like an impatient visitor, and reports which ones never push back. It skips anything that looks like pay, delete or sign out.

Let your coding assistant fix them.

Connect Claude Code, Cursor or any MCP client. It lists your flags, reads the fix for each, makes the change and marks it fixed. Your AI wrote the leak; now it can close it.

Hear about it where you work.

Email, Slack, Discord, Telegram or any webhook, when something new is flagged or spend jumps, plus a daily or weekly memo in plain words.

One line in your footer.

Paste it before </body>, or into your framework's layout. Plain HTML, Next.js, React, Vue, WordPress, Webflow and Framer all work.

<script src="https://leakybutton.com/c.js" data-site="lb_your_key" defer></script>
Size
About 5 KB gzipped, loads after your page
Privacy
No cookies; nothing anyone types is read
Bodies
Stay on the page; only an 8-character fingerprint leaves

Rate card

Start free. Pay when it's saving you money.

Free$0Pro$19 / monthTeam$49 / month
Sites1520
Events a month25,000500,0003,000,000
History3 days30 days90 days
Leak detectionEvery minuteEvery minuteEvery minute
MemosWeeklyDaily or weeklyDaily or weekly
Button scans a month230150
Guards per site125200
AlertsEmail, webhookPlus Slack, Discord, TelegramPlus Slack, Discord, Telegram
API and MCP-IncludedIncluded
Start freeStart with ProStart with Team

Short answers

Will it slow my site down?

No. The script is small, loads after your page, and sends events in batches every few seconds, or when the tab closes. It never waits on anything.

Does it see what people type?

No. It records which button was pressed (by its label), which request that sent, the status and the timing. Request bodies stay on the page; only an 8-character fingerprint leaves, so it can tell when the same prompt was sent twice. No cookies, and IP addresses only as a daily-salted hash for spotting bots.

Can it stop someone attacking my API?

Partly, and here's which part. A guard stops honest over-clicking and runaway loops on your own pages, straight away. Someone calling your API directly with a script never loads your page, so they need a real limit on your server. Every fix includes that server code, and the button scan shows which endpoints have none.

Where do the dollar amounts come from?

By default from a price per call you set, per site or per endpoint, so they're estimates. For real numbers, your server can report each model call's cost with one request, and LeakyButton ties it to the browser session that caused it.

Do I have to change my backend?

No. The script tag is enough to find leaks. Cost reporting and the server-side fixes are optional, and the fix prompts write them for you.

Is it only for AI calls?

AI is where unlimited buttons hurt most, so that's where the cost math points. It sees every request, so a hammered SMS, maps or search endpoint shows up too.

Now get the statement for your own site.

Two minutes to install. The first flags usually show up within the hour.

Statement for your visit

session ...
Pages viewed
1
Clicks
0
Presses on Regenerate
0
Stopped by the guard
0
Priced as a real model
$0.000
Charged to anyone
$0.00