- 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.
Recommended:
For apps built with Cursor, Lovable, Bolt and v0
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.
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>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.
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.
A real one, live
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.
| Button and page | Endpoint | Calls | Most in one session | Cost |
|---|---|---|---|---|
| Total | - | - | ||
- of the day's spend sits on flagged lines. Fixes are ready for each one.
Auditor's note
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.
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.
hey team, the launch moves to thursday because payments aren't done, budget stays the same, dont panic
| Time | Line | Status | Cost |
|---|---|---|---|
| No lines yet. Press Regenerate. | |||
Didn't press? Somebody did, on our demo app
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.
Nothing written yet. Press Regenerate a few times above, then ask for the memo.
Recommended:
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.
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.
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.
| Pattern | What LeakyButton sees | Why it costs you |
|---|---|---|
| Uncapped button | The same button pressed again and again, the endpoint never refusing | Every press is a paid call |
| Key in the page | The browser calling OpenAI, Anthropic, Gemini or similar directly | Anyone can copy the key and spend on your account |
| Retry loop | A failure, then the same call within seconds, over and over | Each retry pays for a full answer |
| Calls nobody clicked for | Requests with no press before them, at a steady rhythm | Polling or a render loop bills you around the clock |
| Paid twice | The same request body answered again | A cache would have been free |
| Double send | One press, two identical requests within half a second | Twice the cost for one answer |
| Abandoned streams | Streamed answers cut off by Stop or Regenerate | The model usually finishes, and bills, anyway |
| Automation | Headless browsers, scripted clicks, machine-regular timing | Someone is using your AI as a free API |
| Spend spike | This hour's spend against your usual week | Something changed, and it's costing money now |
| Heavy sessions | A few sessions carrying most of the cost | One user or script can be your whole margin |
| Never refuses | Hundreds of calls a day, not one 429 | There is no limit to hit |
| Failing paid calls | Model calls that time out or error | Timeouts are often still billed |
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.
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.
Email, Slack, Discord, Telegram or any webhook, when something new is flagged or spend jumps, plus a daily or weekly memo in plain words.
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>
Start free. Pay when it's saving you money.
| Free$0 | Pro$19 / month | Team$49 / month | |
|---|---|---|---|
| Sites | 1 | 5 | 20 |
| Events a month | 25,000 | 500,000 | 3,000,000 |
| History | 3 days | 30 days | 90 days |
| Leak detection | Every minute | Every minute | Every minute |
| Memos | Weekly | Daily or weekly | Daily or weekly |
| Button scans a month | 2 | 30 | 150 |
| Guards per site | 1 | 25 | 200 |
| Alerts | Email, webhook | Plus Slack, Discord, Telegram | Plus Slack, Discord, Telegram |
| API and MCP | - | Included | Included |
| Start free | Start with Pro | Start with Team |
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.
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.
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.
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.
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.
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.
Two minutes to install. The first flags usually show up within the hour.