Vercel integration

Vercel cost alerts with reversible brakes

Costbrake watches a Vercel Pro or Enterprise team through a team-scoped access token: it reads the on-demand total that Spend Management tracks, which Vercel refreshes every few minutes, and the daily bill for seats, add-ons and Marketplace items.

Free checks hourly and sends email. Pro at $12 a month and Team at $39 a month check every 5 minutes, every 2 minutes during a spike, and add 2 brakes an admin confirms by hand: pause one project's production deployment or turn on Attack Challenge Mode for it. Every brake has an Undo.

Vercel at a glance

Reads
Spend Management's on-demand total every few minutes, plus the daily bill from Vercel's billing charges
Key
Team-scoped access token: Owner or Billing role for the live figure, Owner or Member for brakes
Setup
Create a token under Account Settings > Tokens, scoped to the team, and paste it
Free plan
Hourly checks, email alerts
Pro and Team
Every 5 minutes
Spike checks
Every 2 minutes for 2 hours after a spike
Brakes
2: pause a project, turn on Attack Challenge Mode

Brakes

2 brakes for Vercel

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

  • Admin confirms

    Turn on Attack Challenge Mode

    Makes every visitor to one project pass a browser challenge first, which stops most bot and scraper traffic.

    UndoRestores Attack Challenge Mode to what it was before the brake: off, or its previous end time.

    Verified bots, webhook providers and your own functions and cron jobs still get through, and real visitors who pass the challenge still cost what they normally do.

  • Admin confirms

    Pause project

    Takes one project's production deployment offline: visitors get a 503 DEPLOYMENT_PAUSED page and its functions stop running.

    UndoUnpauses the project if Costbrake was the one that paused it, so production serves traffic again.

    Preview deployments stay up, stored resources keep billing, and pausing doesn't stop AI Gateway API key usage or v0 usage.

Can you set a hard spending limit on Vercel?

Yes, on Pro and on Enterprise with the Flexible Commitment plan. Spend Management lets you set a spend amount, and Vercel sends web and email notifications at 50, 75 and 100 percent of it. A spend amount doesn't stop usage on its own: you also need to turn on Pause Production Deployments, and then Vercel pauses production for every project on the team once the amount is reached.

Vercel checks your spend every few minutes, so projects keep serving traffic for several minutes past the amount. Projects don't unpause when you raise the amount; you resume each one by hand. Hobby is a free tier with no billing cycles: go over a limit and you wait 30 days to use that feature again. More in Vercel Spend Management and Vercel pricing.

ControlWhat it doesThe gap
Spend amountNotifications at 50, 75 and 100 percent, plus an optional webhookDoesn't stop usage on its own
Pause Production DeploymentsPauses production for every project when the amount is reachedAll projects at once; you unpause each by hand
Attack Challenge Mode by handChallenges every visitor to one projectYou have to notice the attack first
CostbrakeSpike alerts every 5 minutes, pause or challenge one projectAn admin confirms every brake

What Costbrake reads from Vercel

The live figure is Spend Management's on-demand total for the current period. It leaves out seats, integrations such as Marketplace, and add-ons, which Vercel charges monthly; Costbrake picks those up from the daily bill. Hobby teams have no usage billing, so there is nothing to watch.

The live figure needs a token from a user with the Owner or Billing role. A Member, Developer or Viewer token still gets the daily bill, and Costbrake retries the live figure every hour. If one bot-driven project is behind your bill, see Vercel bill too high.

The Vercel token

Create the token under Account Settings > Tokens, name it Costbrake, set its scope to the team you want to watch and pick an expiry date. Vercel has no read-only scope: a team-scoped token can read and write that team's resources across all of its projects. Costbrake only reads with it, except for brakes an admin starts.

Brakes use the same token, so they need a user with the Owner or Member role. A Billing-role token can watch spend but can't brake.

How a Vercel brake works

Costbrake never brakes on its own. On Pro and Team, an admin turns the killswitch on for the connection, picks a project, types the connection name and clicks Brake now. Both brakes act on one project, so the rest of the team keeps serving traffic.

  • Attack Challenge Mode is free on every Vercel plan, and requests it blocks don't count toward your usage.
  • Costbrake turns Attack Challenge Mode on with no end time; Undo puts back what was there before.
  • Pausing is the stronger brake: it takes production offline until you undo it.
  • For how Attack Challenge Mode treats bots and crawlers, see Vercel Attack Challenge Mode.

What triggers a Vercel 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 Vercel 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.

Does pausing a Vercel project stop all charges?

No. Pausing takes the production deployment offline, but preview deployments stay up, stored resources such as deployment storage and Blob keep billing, and AI Gateway API key usage and v0 usage continue.

Which Vercel role does the Costbrake token need?

Owner or Billing for the live on-demand figure. Member, Developer and Viewer tokens only get the daily bill. Brakes need an Owner or Member token; a Billing-role token can watch spend but can't brake.

Can Costbrake watch a Vercel Hobby account?

No. Hobby is a free tier with no billing cycles and no usage billing, so there is no spend to watch. Vercel pauses a Hobby feature for 30 days once you go over its limit.

How fast does Costbrake see a Vercel spend spike?

Vercel updates the on-demand total every few minutes. Pro and Team check it every 5 minutes, and every 2 minutes for the 2 hours after a spike alert. Free checks hourly.

Sources

Updated

Start with 14 days of Pro, free

Catch the next Vercel spike before the invoice.

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