How Do I Stop a Surprise Bill on My Vibe-Coded App?
A bill can jump for reasons you didn't plan for: a leaked key, a bot hammering your sign-up form, or a bug that calls an API over and over all night. If you haven't set any limits, you may not find out until the invoice arrives.
Here is a short setup so a bad day costs you an amount you chose, not an open-ended one. Your Supabase and Vercel settings can't be seen from outside, so you check those yourself. The free scan in the box below can check one thing from the outside: whether a secret key shows up in your site's public files.
Check your live app for free
Paste your link. The free summary usually takes under a minute.
See an example report (for example.org) · a real free scan of a test site, so you can see what you get
1. Supabase: check the Spend Cap
Supabase has a setting called the Spend Cap. Supabase says it "is available only with the Pro Plan" (Supabase: Control your costs).
With the Spend Cap on, once you go over your plan's quota for a covered item, Supabase says "further usage of that item is disallowed until the next billing cycle" and you "don't get charged for over-usage" (same page). If you keep going over the quota, Supabase may also restrict your services under its Fair Use Policy.
With the Spend Cap off, your projects keep running and the extra usage is charged (same page).
What to do:
- Open your Supabase organization's billing page and find the Cost Control section. That is where you turn the Spend Cap on or off.
- Know what it covers. Covered items include egress, disk size, storage size, Edge Function invocations, Realtime messages and monthly active users.
- Know what it doesn't cover. Compute, read replicas, custom domains, extra disk IOPS, an IPv4 address, point-in-time recovery and phone multi-factor authentication are not covered (same page).
- Don't treat it as an alert. Supabase says the Spend Cap doesn't let you set budgets for one item or get notified when certain costs are reached. Check your organization's usage page yourself instead.
On the Free Plan, Supabase says "you will not be charged" (same page).
2. Vercel: set a spend amount, and decide about pausing
On the Pro plan, Vercel has Spend Management. You set a spend amount for each billing cycle (shown as On-Demand Budget in your billing settings). Vercel then sends web and email alerts when your spending reaches half, three quarters and all of that amount, and it can also call a webhook (Vercel: Spend Management).
Vercel is clear that "setting a spend amount does not stop usage on its own." To stop costs above your amount, the Pause Production Deployments switch has to be on (same page). Keep these points in mind:
- While your projects are paused, your websites, APIs and functions are down. Visitors see a 503 error until you resume each project yourself, one by one.
- Vercel checks your spend every few minutes, not all the time. So alerts and pausing can happen several minutes after you cross the amount. Vercel suggests setting the amount below the most you are willing to spend.
- Pausing doesn't stop AI Gateway or v0 usage billed to your team, and storage charges keep being billed.
Where to find it: open your team's Settings, then Billing, then Spend Management. You need the Owner or Billing role on the team.
3. Your AI provider: set a limit or an alert
If your app calls an AI model with your own API key, open that provider's billing or usage settings. Set the lowest spending limit or alert it offers. Each provider's settings work differently, so read the provider's own docs to see what a setting really does.
4. Make sure your secret keys aren't public
If a secret API key is leaked, someone else can use it, and you may get the bill. Paste your URL into the box at the top of this page for a free scan. It reads your public page, your site's own JavaScript and source maps, and checks whether /.env and /.git/config are open. It looks for text that matches known secret key formats.
To learn more, read Are your API keys exposed in your JavaScript? and Is your Supabase service_role key in your front-end code?.
What our scan checks (and what it doesn't)
The scan only sees what your live site shows the public. It can't see your Supabase Spend Cap, your Vercel Spend Management settings, your AI provider's limits, or your bill. It doesn't log in to your app or read your database rules. Steps 1, 2 and 3 are things you check yourself.
A monthly habit
Once a month, open each provider's usage page and compare it with your real traffic. If usage jumps but your visitors didn't, look into it. It could be a bot, a leaked key or a bug.
Related guides
rooGBotVC is not affiliated with Supabase or Vercel. Their settings and plans can change, so check their docs for the latest details. This page is general information, not financial advice or a guarantee you won't get a surprise bill. The scan is an automated, surface-level check, not a full security audit.