We're going to need default hard budget caps on pretty much everything (simonwillison.net)

158 points by elffjs 2 hours ago

70 comments:

by joshdavham 5 minutes ago

It’s incredible that in 2026, AWS and GCP are only just now introducing this. It’s possibly one of the most obviously needed features for a cloud provider.

Also, does anyone know why it’s taken this long? I suspect it’s a technical reason. While one could be cynical, I doubt it’s an intentional business/product decision. Hard spending caps are both excellent product differentiators and could possibly save these providers money as they don’t have to forgive their users when they accidentally over-use a service.

by modeless an hour ago

Wait, Google Cloud finally added hard caps on spending per service? I've been wanting that for so many years! They sure took their sweet time.

https://cloud.google.com/blog/topics/cost-management/new-ear...

Edit: Ugh it's fake. Literally only works for four random services, unsupported for all the rest. Completely useless for all of my projects. Also dumb that the only supported term is "monthly" considering that months are different lengths, and that they don't bother to account for credits or discounts. Maybe next decade they'll get around to implementing something useful.

by there_is_try 5 minutes ago

The hard caps work on projects created in AI studio

by kingcauchy an hour ago

What that's awesome? Yeah they definitely waited until the competitors did it first...

by genxy an hour ago

It was fucking on purpose, if we had a functioning government, this is one of things they would have nailed them on.

by jMyles 11 minutes ago

As awful a practice as it is, I'd _much_ rather have an internet where its reform is prompted by competition than by the cops.

by hyperhello an hour ago

These shouldn't even exist without a negotiated contract.

I can subscribe to your service for a specific fee on a monthly basis ($20/month say), and take the risk of losing that month's fee if your service or I make mistakes, or I can choose to drop another $20 mid-month, or anything for convenience.

Saying that the computer will "control" the billing and can run haywire tells me that I don't want to be anywhere near your pile of bad incentives.

by Retric 10 minutes ago

Monthly electricity bills are based on usage. The difference is the relative orders of magnitude you can be charged for these services you can go from 20$/month to 200k/month without warning.

by akd 19 minutes ago

Hard caps are rare because companies find it more profitable to forgive sympathetic individuals' bills while raking in profits from corporations whose services have gone awry

by gausswho an hour ago

I wonder if BigCorp adding spending caps is due to them getting sick of customers solving it for themselves with virtual cards.

by LoganDark 24 minutes ago

Virtual cards don't solve anything. They just send you an invoice instead.

It works for some non-B2Bs.

by karmelapple an hour ago

Having a monthly summary or estimate of how your spending is going would be really useful, too.

Even if we have a negotiated yearly contract for $X spend per year, maybe we’ll hit that spend in 6 months instead of 12. Having some kind of automated telemetry saying how we’re trending would be so useful.

I’ve gotten vague warnings from customer success people saying vaguely that, but without any warning of what’s truly happening. The more we abstract away from money (tokens, credits, etc), the more we need a way to translate right back to money, to see how close we’re getting to any limits over time.

I don’t want to find out in month 5 that the contract which was expected to cover a year is now going to run out in 14 days.

by tkgally 19 minutes ago

> In an ideal world, our agents could help with this.

Not exactly the sort of case Simon has in mind, but I tell Claude to keep to hard daily limits on OpenRouter spending for two long-running projects [1, 2].

A Routine for each project fires ever few hours, and Claude decides itself what to do in each session. It does tasks that require calls to other models through OpenRouter only when it is still within its daily budget for that project; after it reaches that cap, it does other tasks that don’t require extra spending.

[1] https://github.com/tkgally/je-dict-1

[2] https://github.com/tkgally/eex-dict

by jherdman 24 minutes ago

"Oh hai. I'm hooked on the drugs. Please stop me from taking more. kthnxbai."

Seriously. You all asked for this.

by jimbokun 19 minutes ago

Who asked for what, specifically?

I can’t think of anyone saying they would hate for AWS to support hard spending caps.

by drivingmenuts 21 minutes ago

That's going to be a hard sell to service providers who rely on people basically ignoring overspend.

by altcognito an hour ago

So weird, cause it seems a lot of services are suddenly adding them. Huh, wonder what changed?

by biophysboy an hour ago

My org has a leaderboard for AI spending each month, and I have found it interesting how fast the distribution decays, just within the top 10 users. I often think “what did these people do with all those tokens?” It’s interesting to think the answer to that question is “maybe not a lot?”

by garciasn 42 minutes ago

I am far and away the biggest consumer of tokens but I’m building meaningful stuff requested by others at the org.

That said, the limits are accurate with Claude to a handful of cents over the last few months. I just don’t see it as a big deal.

Our Gemini API usage is also similarly accurate.

The LLM costs are way more accurate than the limits on our GCP env as a whole.

by trial3 an hour ago

the answer is almost definitely "get on the leaderboard"

by seattle_spring 9 minutes ago

Right? If spending the most is lauded, why wouldn't I use the most expensive model, automate things that don't need automating, build things I don't need to build etc just to jack the spend up?

by bl4kers an hour ago

It should be illegal to not have them

by kingcauchy an hour ago

Probably should also have spend controls for gambling too but seems like we're a long ways off from good legislation there.

by notatoad an hour ago

Agreed. Or at least, customers should only be liable for expenses they incur up to the hard caps they set.

If you don’t have a mechanism for enforcing hard caps, you don’t get to send customers a bill for unlimited amounts.

by genxy an hour ago

Everyone in this thread should be vibe coding legislation with lean 4. We can at least have utopia for a couple months.

by slopinthebag an hour ago

we should make it illegal to be unhappy too, that way we can solve depression!

by SV_BubbleTime an hour ago

Anytime someone says “there sight to be a law that…” there almost always shouldn’t be.

by smashburger an hour ago

Haha what

by anigbrowl an hour ago

Counterpoint: if you can automate API calls on the client side, why can't you automate billing caps? If you want a machine that can run 24-7 and make money for you while you sleep (which let's face it is the motivation for a lot of AI takeup), isn't the onus on you to install cicuit-breakers?

by zanecodes an hour ago

Because many cloud services have incredibly complex or opaque pricing structures that make it difficult to impossible to determine how much something is going to cost you ahead of time, especially if it's usage-based a la network egress (and the usage statistics don't update frequently enough to make such circuit breakers possible to implement client-side).

by benoau an hour ago

They might not be able to predict your bill but how much time do they need to add up what you already spent to minimize your overage? And TBH how much time should be acceptable to exceed your cap before it's their fault for the lag in their software.

by anigbrowl an hour ago

I would just not sign up for a service without price transparency, or pre-calculate my liability based on available information before pushing the (metaphorical) Deliver Now button.

by jimbokun 13 minutes ago

Sometimes the invisible hand of the market needs to be paired with a good swift legislative kick in the ass to speed things up a little.

by binoct an hour ago

Making incredibly complex and opaque pricing structures is not necessary for the providers to charge for and make a profit on their service. And being technically difficult is a lazy excuse. Cloud platforms have to solve many, much more difficult challenges to offer their services at all, they just don’t want to invest the time in more customer friendly billing because they expect it will result in reduced revenues.

I know your post isn’t explicitly defending the platforms, but the arguments they use feel transparently flimsy.

by genxy 44 minutes ago

Stop making excuses for the cloud providers. They build these on purpose, for that purpose, working as intended.

by zanecodes 33 minutes ago

I'm not sure where you got the impression that I'm making excuses for cloud providers. I'm just stating the way things are, not the way I think they should be.

by matkoniecz 19 minutes ago

Last time I checked it was impossible to get relevant info from API, for example for AWS.

Or if there was info that was after potentially horrible expensive operation.

That was blocking automated checking.

by w29UiIm2Xz 30 minutes ago

You could probably make a business out of putting proxies in front of non-budgeted SaaS services to enforce caps.

Then the irony of whether or not your capped SaaS proxy SaaS product itself has hard caps.

by genxy an hour ago

We always did, the clouds convinced us that overages were the norm. You can blame credit ratings as another vector for big business to screw everyone over. Everything should have been pay in advance with an alternate billing method for overages if you want it.

by neom 43 minutes ago

I had an api key set to read only that somehow ran up a $400 bill, I contacted openai about it and never heard back. Not quite the same thing, but still, I find this very annoying.

by kingcauchy an hour ago

It'd be nice if more than AI spend worked this way, autoscaling is almost a mixed blessing because unpredictable pricing can be worse than the cost savings...

by Arcuru an hour ago

Ubicloud does not have hard budget caps, which I only realized this morning after moving all my CI over to them over the past few months. Fortunately I didn't learn the hard way.

by dpedu an hour ago

I'm surprised this isn't law. Should it be?

by dboreham an hour ago

So if you use more electricity next month the CEO of the electric company should be put in jail?

by dpedu 39 minutes ago

I understand this is snark, but if you think about it, this is already implemented in electrical infrastructure. If I use too much power, the circuit breaker trips to protect me and protect the electrical grid. OP is about a billing breaker, but the parallels should be obvious.

If the CEO of the electric company didn't mandate circuit breakers, he should go to jail.

by lorecoeur 9 minutes ago

The breaker in this analogy is equivalent to rate quota limits, it limits peak throughput.

You can rack up an outrageous monthly electricity bill without tripping a breaker.

by genxy 43 minutes ago

Analogies are not the core of your cognition.

by popalchemist 33 minutes ago

Utilities required for basic survival are expected to remain on for obvious reasons. Like not letting people die.

by seattle_spring 5 minutes ago

I wouldn't be surprised if some people here will genuinely argue that AI access is just as important. I've already seen Altman and the nVidia guy pontificate on providing AI as a public utility.

by tjwebbnorfolk an hour ago

Why do people think new laws are needed to solve every last problem in the world?

Google implemented caps because their competitors offered them. Before that, customers could choose one of several competitors, rent the GPUs at a fixed rate, or buy the GPUs and install them on-premises.

At no point was any law needed to solve any of this.

by Synthetic7346 an hour ago

Yes and no. I suspect many of the hard limits were set arbitrarily, and we'll see a relaxation of limits as people get frustrated with the limited use they get out of them. And some services will genuinely need to be re written to support higher rps or risk losing customers

by gman83 an hour ago

Cloudflare also doesn't have any hard budget caps.

by dboreham an hour ago

I'd support this provided we have the converse as well: if the customer doesn't pay their bill on time, the service gets shut down immediately. (Disclosure: I sell SaaS services to people who don't pay their bills on time).

by robertclaus an hour ago

This is how most services work...

by TZubiri an hour ago

These already exist, it's the most standard contract imaginable.

by kadhirvelm an hour ago

What do people think of apps switching to a lower tier of model if your $$ threshold was exceeded?

by zer00eyz 42 minutes ago

You mean you want to curb business Gacha?

AWS, is a loot box... Tokens are just in game currency, and that sales person is just metrics that have identified your spending as making you a whale.

Your average CTO from the last decade turned a fixed cost into variable spending that looks like a mobile game.

by chaostheory an hour ago

That feature is called a subscription. Joking aside, it is needed on the API side

by lacunary an hour ago

surprise $10k bill is getting off easy

by dwattttt an hour ago

This guy only ended up with a ~$6k bill from his agent, not too shabby: https://news.ycombinator.com/item?id=48500012

by slopinthebag an hour ago

the premise seems a bit faulty to me. why should we be giving next token predictors access to spend our money? like what great benefit do we get from this that we should allow them unfettered access, but with safeguards in the form of hard budget caps?

by strangecasts 26 minutes ago

I don't think Simon means you should hand off the spending to agents/LLM (which would also make me uneasy) but that if you're probing one for hosting/SaaS providers they should default to recommending ones with budget caps

by mitxela an hour ago

Why would your vendor want to make it harder for you to accidentally give them a million dollars?

by simonw an hour ago

Ideally because I'll pick a different vendor who protects me from such mistakes.

by wat10000 an hour ago

Because it’s unlikely they’ll actually be able to collect that million dollars from a lot of those customers. Rephrased: why would your vendor want to make it harder to accidentally give you a million dollars of services in exchange for debt of dubious quality?

by ares623 an hour ago

Because I would go to the vendor who does.

by gerdesj an hour ago

If you own a resource that is desired and paid for by usage then that's your income and the open market determines the money thing (price)

What on earth is Simon whittering on about?

by simonw 44 minutes ago

A bunch of vendors provide this exact feature already, so I'm clearly not weird in wanting it.

by matkoniecz 16 minutes ago

About desire to have hard caps, to avoid runaway costs for example due to misconfiguration.

This may happen also without vibecoding.

Article seemed clear on that?

by tjwebbnorfolk an hour ago

bro this is HN, the "open market" where willing customers can choose whether or not to buy a service is the root of all evil here.

Data from: Hacker News, provided by Hacker News (unofficial) API