The caps that actually exist, provider by provider.
Anthropic has real caps. The Claude Console lets you set a
monthly spend limit for the organisation, and a lower one per workspace. A
workspace limit caps that workspace's monthly spending outright, which is exactly
what you want: put your production key in its own workspace with a limit you can
afford to lose. Note that you cannot set limits on the Default Workspace, which is
one more reason not to run production from it.
OpenAI has per-project limits. The platform supports custom rate
and spend limits per project, alongside a notification threshold that emails you
at a dollar amount you choose. Every account also starts with an approved usage
limit, from $100 per month, that rises with your usage tier. Keep production in
its own project with its own limit, and set the notification threshold well below
the number that would hurt.
Supabase has a Spend Cap. On the Pro plan it is a single toggle
in the organisation's Cost Control settings: with the cap on, once you exceed the
plan quota for a covered item, further usage of that item is disallowed until the
next billing cycle instead of being billed. It covers the abuse-shaped items,
egress, edge function invocations, active users, realtime, storage; it does not
cover things you explicitly provision, like bigger compute or point-in-time
recovery. The Free plan never charges at all, it just stops.
Google, including Gemini and Firebase, has no native cap. This is
the one to internalise, because it is where the biggest bills keep happening. A
Google Cloud budget is a monitoring tool: its own documentation states that it
does not cap usage or spending, it only alerts. The supported way to get a hard
stop is to wire the budget's Pub/Sub notification to a small Cloud Run function
that calls the Cloud Billing API and detaches billing from the project. Google
documents this pattern, with a warning worth taking seriously: disabling billing
shuts down all resources in the project and some may be irretrievably deleted.
That is the correct trade for a side project or an early-stage app, where the
worst case should be an outage, not a mortgage. Decide which one your app is
before the meter decides for you.
Prepaid platform credits are a cap of a different kind. Lovable
runs Cloud usage on workspace credits and pauses a project when the balance runs
out, which bounds the damage by construction. Replit's effort-based pricing draws
from your account in the same prepaid spirit. The residual risk on credit-metered
platforms is metering bugs, which is what the 11 July incident was; the defence
costs one minute a month: read the invoice.
If the bill has already landed: stop the burn first, rotate and restrict the key,
or take the endpoint down. Screenshot the provider's usage pages before anything
resets, so the abuse window is documented. Then contact the provider's billing
support and ask for an adjustment, in writing, with the evidence attached.
Providers have refunded abuse-driven bills, Replit refunded its own metering error
unprompted, but none of them guarantee it, and your case is strongest when you can
show the leak is closed and the usage pattern was plainly not yours.
A budget is a smoke alarm, not a sprinkler system
Every provider will happily email you while your money burns. Only some of them
will turn the gas off. Know which kind each of your providers is, set the real
caps where they exist, and build the kill switch where they do not. The time to
do it is before launch week, because the meter runs at machine speed and you read
email at human speed.