How to set hard spending limits: AWS, GCP, Vercel, Supabase and prepaid hosts
Why billing alerts do not stop runaway bills, which platforms cap spend, and the prepaid hosts that cut off at zero.
A billing alert tells you the money is gone. A hard limit stops the money leaving. Cloud providers differ a lot here, and the difference matters if a bot hits your API, a loop calls a model forever or a download goes viral. This guide sorts common platforms into alert-only, configurable-cap and prepaid, with the exact setting to change. Filter providers that stop at a limit on VPS plans with hard caps and safe egress, GPUs with prepaid wallets and AI APIs with hard caps.
| Platform | Control | Stops charges? | Catch |
|---|---|---|---|
| AWS Budgets ↗ · Audit | Budgets alerts, optional budget actions | Alert-only without extra setup | Billing data lags; actions cover some resources |
| Google Cloud Billing ↗ · Audit | Budgets and Pub/Sub notifications | Alert-only; a function can disable billing | You must write and test the function |
| Vercel Spend Management ↗ · Audit | Spend Management with a pause option | Configurable cap | Pausing takes production offline |
| Supabase Spend Cap ↗ · Audit | Spend Cap setting | Cap on by default at the plan price | Turning it off exposes overage billing |
| RunPod / Vast.ai / OpenRouter | Prepaid wallet | Prepaid hard stop | Stopped disks can still drain the balance |
Step 1: separate alerts from limits
Make a list of every service that can bill you after you stop using it: compute, bandwidth, API tokens, storage requests and add-ons. For each one, write down whether it stops at a limit, only alerts, or has no control. Anything without a stop deserves a smaller blast radius, such as a separate account or project.
Step 2: AWS
AWS Budgets can send email or SNS alerts and, with budget actions, attach restrictive policies or stop some instances. It is not a switch that stops every service, and cost data arrives with a delay. Pair budgets with service quotas, delete unused resources and consider a sandbox account for experiments. New accounts also receive free-plan credits, which lower the risk during the first months.
Step 3: Google Cloud
Google Cloud budgets send notifications to Pub/Sub. Google documents a pattern where a Cloud Function receives the notification and disables billing on the project when the budget is exceeded. It works but disables everything in that project, and it reacts after costs are recorded, so keep a lower threshold than your true limit.
Step 4: Vercel and Supabase
Vercel's Spend Management lets you set a dollar threshold with alerts and an option to pause projects. The pause option stops overage but takes your site offline, so decide in advance whether downtime or a bill is the lesser problem. Supabase Pro ships with a Spend Cap enabled at the $25 plan price; it blocks overages such as extra egress until you switch it off. Note the trade-off: with the cap on, traffic past the included quota can be throttled.
Step 5: prefer prepaid for the risky parts
Prepaid wallets turn an unbounded bill into a bounded loss. RunPod, Vast.ai and OpenRouter work that way, and OpenRouter also supports per-key dollar limits. Together AI, Fireworks and others support prepaid credit with spend limits in their consoles. Use them for experiments, agents and anything driven by user input.
Step 6: reduce the size of the surprise
- Prefer zero-egress storage for public files, and see cloud storage and egress prices.
- Cache and rate-limit user-driven LLM calls.
- Put a CDN with a hard bandwidth cap in front of downloads.
- Review monthly invoices for services you forgot, and model growth in the stack cost simulator.
A 30-minute setup checklist
- Create a separate account, project or workspace for experiments so a mistake cannot touch production.
- Set a budget at about half of what you would be comfortable losing, with email alerts to two people.
- Turn on the platform's own cap where one exists: Supabase Spend Cap, Vercel Spend Management and per-key limits on API providers.
- Replace postpaid API keys in test code with prepaid keys.
- Schedule a monthly review of invoices and delete unused disks, snapshots and IP addresses.
A worked example
Imagine a public download of a 50 GB file that goes viral and is fetched 100 times. That is 5,000 GB of traffic. At roughly $0.09 per GB on a hyperscaler the bill is about $450; on a host that includes 20 TB per month it is $0, and on a zero-egress object store it is also $0. The same file behind a CDN with a hard monthly cap simply stops serving at the cap. Pick the architecture before the post goes live, not after the invoice arrives.
Frequently asked questions
Does AWS have a hard spending limit?
Not as a single switch. Budgets alert and can run limited actions, so you add quotas and cleanup to bound spend.
Can Google Cloud stop billing automatically?
Yes with a budget notification and a function that disables billing, but it disables the whole project and reacts after costs post.
Does Supabase cap my bill?
The Pro plan has a Spend Cap on by default at the plan price; turning it off allows overages.
What is the safest way to run experiments?
Use prepaid wallets with per-key limits and a separate account or project.


