Neon integration

Neon cost alerts with reversible brakes

Costbrake watches Neon through an organization API key: it reads Neon's hourly usage history for compute, storage, transfer and branches, which Neon updates about every 15 minutes, and prices it at your plan's list rates, such as $0.106 per CU-hour on Launch.

Free checks hourly and sends email. Pro at $12 a month and Team at $39 a month check every 15 minutes, the shortest gap Neon recommends, and add 2 brakes an admin confirms by hand: disable a compute or cap it at 0.25 CU. Every brake has an Undo.

Neon at a glance

Reads
Neon's hourly usage history for compute, storage, transfer and branches, priced at your plan's list rates
Key
Organization API key (Neon has no read-only keys); usage history needs a paid Neon plan
Setup
Your AI agent creates the key with the Neon CLI, or you create it under Settings > API keys and paste it
Free plan
Hourly checks, email alerts
Pro and Team
Every 15 minutes
Spike checks
No speed-up; stays at every 15 minutes
Brakes
2: disable a compute, cap compute size at 0.25 CU

Brakes

2 brakes for Neon

An admin picks a brake, confirms it, and can undo it later. Brakes come with Pro and Team.

  • Admin confirms

    Disable compute

    Suspends one compute endpoint and blocks new connections to it, so it stops using compute hours; data and branches stay intact.

    UndoRe-enables the compute, which starts again on the next connection.

    Apps can't reach that compute until you undo it, because Neon won't let a connection or a console action re-enable it, and storage is still billed.

  • Admin confirms

    Cap compute size

    Pins one compute endpoint to the smallest size, 0.25 CU, which cuts its cost per hour.

    UndoRestores the compute's previous autoscaling range.

    Queries keep working but slower, and the compute still bills at 0.25 CU for every hour it runs.

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.

ControlWhat it doesThe gap
Spending notificationsEmail at a dollar threshold, Launch and Scale onlyDoesn't stop usage
Consumption quotas (API)Suspends a project's computes at a usage quotaSet per metric through the API, not in dollars
Scale to zeroIdles a compute after 5 minutes without activityA busy compute keeps running and billing
CostbrakeDollar estimates every 15 minutes, spike alerts, 2 brakes per computeAn 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

Start with 14 days of Pro, free

Catch the next Neon spike before the invoice.

14 days of Pro, then Free for 2 accounts. No card needed.