Can you set a hard spending limit on Neon?
Not in dollars. Spending notifications on the Launch and Scale plans email you at a threshold, and Neon says they only send alerts and don't stop usage. Automatic project suspension at the threshold is announced as coming soon.
What does stop usage today is a consumption quota set through the Neon API, per project and per metric, such as compute time or data transfer. When a project hits one, Neon suspends all its active computes, and they don't restart on the next connection. Neon updates those metrics every 15 minutes, and they can take up to 1 hour to be reportable. Plan rates are in Neon pricing.
| Control | What it does | The gap |
|---|---|---|
| Spending notifications | Email at a dollar threshold, Launch and Scale only | Doesn't stop usage |
| Consumption quotas (API) | Suspends a project's computes at a usage quota | Set per metric through the API, not in dollars |
| Scale to zero | Idles a compute after 5 minutes without activity | A busy compute keeps running and billing |
| Costbrake | Dollar estimates every 15 minutes, spike alerts, 2 brakes per compute | An admin confirms every brake |
What Costbrake reads from Neon
Costbrake reads Neon's usage history per project, hour by hour: compute, storage, public transfer and extra branches. It prices that at the list rates for your plan, after taking off the included 500 GB of public transfer per project and the included branches. Negotiated Enterprise rates and credits aren't applied, so Neon's invoice stays the final word.
Neon only shares usage history with organizations on a paid plan: Launch, Scale, Agent, Business or Enterprise. History starts when the organization upgrades, so a Free plan organization can't be watched.
The Neon API key
Neon has no read-only key. An organization API key has admin-level access to everything in the organization, and only organization admins can create one. Costbrake only reads with it unless an admin turns on the killswitch, and brakes use the same key.
Your AI agent can create the key with the Neon CLI and hand it over without printing it, as described in agent setup. Without the CLI, open Settings > API keys in your organization, create a key for the whole organization named Costbrake, and paste it.
How a Neon brake works
Costbrake never brakes on its own. On Pro and Team, an admin turns the killswitch on for the connection, picks a compute endpoint, types the connection name and clicks Brake now.
- Cap compute size keeps the app up on the smallest compute, so try it first when a heavy job is driving the bill.
- Disable compute stops compute billing for that endpoint, but every app using it goes down until Undo.
- Neither brake deletes data, branches or settings.
- Storage keeps billing, since Neon charges it per GB-month whether or not a compute runs.
What triggers a Neon alert
A spike alert fires when an hour costs more than 3 times your 7-day hourly average and at least $5 more, once Costbrake has 24 hours of history. Budget alerts fire at 50, 80 and 100 percent by default, and Pro adds forecast alerts. Free sends email; Pro adds Slack, Discord and webhooks; Team adds PagerDuty. Compare plans on the pricing page.
Questions and answers
Does Costbrake stop Neon spend automatically?
No. Costbrake alerts you, and an admin on Pro or Team decides whether to brake. A brake needs the killswitch turned on for the connection, the connection name typed in, and a click on Brake now. Every brake has an Undo.
Can Costbrake watch a Neon Free plan organization?
No. Neon only shares usage history with organizations on a paid plan (Launch, Scale, Agent, Business or Enterprise), and the history starts when the organization upgrades.
How often does Costbrake check Neon?
Every 15 minutes on Pro and Team, which matches how often Neon updates usage and the minimum gap Neon recommends between API calls. Free checks hourly. Neon checks don't speed up during a spike.
Is the Costbrake dollar figure for Neon exact?
It's an estimate: Neon's hourly usage priced at your plan's list rates, after the included transfer and branches. Negotiated Enterprise rates and credits aren't applied, so Neon's invoice is the final figure.
Does disabling a Neon compute delete any data?
No. Data and branches stay intact. The compute is suspended and refuses new connections until an admin clicks Undo, and storage keeps billing in the meantime.
Sources
Updated