On the Workers Paid plan, go to Billing → Spend Management in the Cloudflare dashboard, select Edit the spending limit in the Workers row, enter a monthly amount in USD and save (or run cf billing spend-policies create --product-id workers --action usage_block --threshold-cents 5000 … for $50). When usage charges for requests and CPU time, after the included 10 million requests and 30 million CPU ms, reach that amount, Cloudflare rejects new Worker invocations across your whole account: visitors get error 1103, while static assets keep loading. Durable Objects need their own limit; KV, R2 and Workers AI aren't covered. The $5 subscription is always charged, the reset follows your billing date, not the 1st of the month, and metering delays mean you can still go somewhat over. If you'd rather stay online, use an email alert (--action notification) instead of a limit. A limit set in the dashboard sends no email until you add an address.
What Cloudflare launched
Cloudflare announced Spend Management on 13 November 2026 as a beta for any pay-as-you-go (PayGo) customer, starting with Workers and Durable Objects; Cloudflare says more products are coming. Before this, paid plans had usage notifications and account-wide budget alerts, which email you but never stop anything.
- Spending limit (
usage_block): when a product's usage charges for the current billing period reach your amount, Cloudflare blocks that product's supported operations. - Email alert (
notification): Cloudflare emails one address at 80% and 100% of the amount; nothing stops. - One limit per product per account: one for Workers, one for Durable Objects. You can't scope a limit to a single Worker, a single Durable Object namespace or a single billing metric.
- Set it in the dashboard, with the
cfCLI or with the REST API. Changes and threshold events are recorded in an audit log. - Per-user and per-model budgets for AI calls are a separate feature: AI Gateway spend limits, which apply only to AI requests routed through your gateway.
Set a spending limit in 2 minutes
You need permission to edit billing settings on the account. Cloudflare's steps:
- In the Cloudflare dashboard, open Billing for your account and select Spend Management.
- In the Workers row (or Durable Objects), select Edit the spending limit.
- Enter an amount greater than zero, with up to two decimal places, in Monthly limit (USD), and select Save limit.
- Check that the limit shows On. Saving a new limit turns it on.
- Add an email address: Cloudflare's docs say limits created in the dashboard don't automatically have a recipient, so you won't be told when it trips. Add
notification_emailby updating the policy (CLI example below). - Do the same for Durable Objects if your app uses them; a Workers limit doesn't cover them.
# $50 limit for Workers, with email at $40 (80%) and $50 (100%)
cf billing spend-policies create \
--name 'Workers $50 spending limit' \
--product-id workers \
--enabled true \
--threshold-cents 5000 \
--action usage_block \
--notification-email [email protected]
# Preview without creating anything: add --dry-run
# Email-only alert that never blocks: --action notification
# Durable Objects: --product-id durable_objects
cf billing spend-policies list If you use an API token, Cloudflare says it needs Account → Billing → Read to inspect policies, or Edit to change them. Use your account ID, not a zone ID.
The limit counts usage already recorded this period: saving a $50 limit when Workers has already accrued $60 can pause your app as soon as Cloudflare evaluates the policy. Check current spend on the Spend Management page first.
Asking an AI coding agent to set this up for you is fine (Cloudflare even offers a prompt for it), but read the command before it runs: a too-low --threshold-cents takes production offline.
What counts and what stops
| Workers limit | Durable Objects limit | |
|---|---|---|
| Counts toward the limit | Request and CPU-time charges after included usage (Workers Paid includes 10M requests and 30M CPU ms per month) | Requests, duration, SQLite rows read/written, key-value storage reads/writes/deletes |
| Not counted | The $5/month Workers Paid fee; KV, R2, Workers AI, Durable Objects and other products | Stored data; the Workers Paid fee |
| Blocked at the limit | New invocations: HTTP requests, Cron Triggers, Queue consumers, Email Workers, calls from other Workers or Durable Objects | New requests through a stub, SQL reads and writes, SQLite storage growth, new alarms |
| Keeps working | Static assets served without running your Worker | Already-running requests, messages on already-open WebSockets, legacy key-value-backed objects; pending alarms are held |
| What users or code see | HTTP visitors get error 1103 (it has other causes too, so check Spend Management first); rejected requests aren't billed | Exceeded the account's spending cap for Durable Objects. |
| Data | Workers and assets are not deleted | Objects and stored data are not deleted; storage keeps being charged |
Static assets keep loading, but anything that needs Worker code fails, including routes you send through run_worker_first. For a typical vibe-coded app, that means the page shell loads while logins, API calls and form submits break.
The limit is account-wide. Cloudflare's own example: a test Worker can use up the shared limit and take down a production Worker on the same account. Keep experiments and agent sandboxes on a separate account if that matters to you.
It's not an exact maximum bill
- Cloudflare says usage reporting and blocking take time, so recorded spend can exceed the limit; operations already in progress, metering delays and enforcement failures can all let spend go past it. Your invoice is the final record.
- The dashboard shows current-cycle cost per product in near real time (under 10 minutes, per Cloudflare's blog). Limit reached in the dashboard records the threshold event; it doesn't confirm that blocking has finished propagating, and On only means the policy is enabled.
- If spend jumps past 80% and 100% between two evaluations, you may only get the 100% email.
- The period follows your subscription: if Workers Paid renews on the 15th, the limit resets on the 15th, not on the 1st of the month.
- Practical rule: set the limit below the amount you truly can't afford, and add a lower email alert so you hear about a spike before anything goes offline.
Back online after hitting the limit
- Raise the limit above the product's current spend, turn the limit Off, or select Remove limit. Each restores the blocked operations; Cloudflare says changes can take a few minutes.
- Turning the limit off and on again doesn't reset this period's spend, and lowering it below current spend can pause you again.
- Otherwise the block expires when the next subscription billing period starts, and an enabled limit stays in place for the new period.
- If a Durable Object calls a Worker that is blocked, restore the Worker first: Durable Objects can fail because of the Workers limit even when their own limit is fine.
Do you need it? Free plan, Pages and Pages Functions
- Workers Free: you aren't billed for usage. Cloudflare's Free plan has hard caps instead (100,000 Worker and Pages Functions requests per day, 10 ms CPU per invocation). Spend Management is for pay-as-you-go accounts.
- Static site on Cloudflare Pages, no Functions: static asset requests are free and unlimited, so there's nothing for a spending limit to cap.
- Pages Functions on Workers Paid: Cloudflare says Pages Functions are billed as Workers requests. The spend-management docs don't mention Pages Functions by name, so we treat it as likely, not confirmed, that the Workers limit blocks them too. Check the Spend Management page after enabling it, or test on a separate account.
- Worker with AI calls: the Workers limit doesn't cover Workers AI or third-party model bills. Put AI traffic through AI Gateway with its own spend limits, and set a cap in each AI provider's own dashboard.
How it compares to Vercel and Railway
| Host | Hard cap? | What happens at the cap | Scope |
|---|---|---|---|
| Cloudflare (Workers, Durable Objects) | Yes, opt-in, beta since 13 Nov 2026, PayGo accounts | New Worker / Durable Object operations blocked; static assets keep serving | One limit per product per account |
| Vercel | Yes on Pro and Enterprise (Flexible Commitment), via Spend Management budgets | Only if you turn on Pause production deployments: production deployments stop serving traffic until you resume each project. A budget without pause only notifies | Team or project budget (product and organization budgets can't pause) |
| Railway | Yes, Usage Limits with a hard limit | All workloads taken offline; emails at 75%, 90% and 100% | Workspace; Compute and Agent usage limited separately |
Vercel Hobby has no Spend Management: Vercel's changelog says Hobby projects are paused automatically when they reach the included free limits. For Replit's publishing costs and usage limits, see our Replit deployment costs guide.
Common questions
Can I set a spending limit on Cloudflare Workers?
Yes, since 13 November 2026 (beta, pay-as-you-go accounts). In the dashboard go to Billing → Spend Management, edit the Workers spending limit, enter a monthly amount in USD and save. With the cf CLI: cf billing spend-policies create with --product-id workers and --action usage_block.
What happens to my site when the Cloudflare spending limit is reached?
Cloudflare rejects new Worker invocations across your account: HTTP visitors get error 1103, and Cron Triggers, Queue consumers and Email Workers stop. Static assets that don't run your Worker keep loading. Your Workers and data are not deleted.
Does the Cloudflare spending limit guarantee my bill won't go over?
No. Cloudflare says reporting and blocking take time, so spend can exceed the limit, and the $5 Workers Paid fee is always charged. Set the limit below what you can't afford and add an earlier email alert.
Does a Workers spending limit cover R2, KV, D1 or Workers AI?
No. It covers Workers request and CPU charges only. Durable Objects have their own limit; Cloudflare says a Workers limit doesn't include Durable Objects, Workers AI, Workers KV, R2 or other products.
When does the Cloudflare spending limit reset?
At the start of your next subscription billing period, which follows the date your paid subscription started, not the 1st of the month. You can also lift it early by raising the limit above current spend, turning it off or removing it.
I'm on the Workers Free plan. Do I need this?
No. The Free plan isn't billed for usage; it has hard caps instead (100,000 requests per day across Workers and Pages Functions). Spend Management is for pay-as-you-go accounts on paid usage.
Can I get an email without my app going offline?
Yes. Create an email alert (--action notification in the cf CLI). Cloudflare emails you at 80% and 100% of the amount and the product keeps running.
Related on VibeLiftoff
- Cloudflare Pages: free tier, limits and pricing
- Replit deployment costs and usage limits
- Vercel Hobby: Data Cache moves to Runtime Cache
- Can you use Vercel Hobby for a commercial app?
- Railway: pricing and limits
- Fix: env vars missing after deploy
- Custom domain cost & setup by builder
- Supabase vs Neon vs Firebase vs Turso
- Supabase 42501 on new tables (Oct 30 change)
- Cursor Live Apps: built-in hosting explained
- Netlify Server: Express and WebSockets on Netlify
- Supabase CLI v3: --remote, --yes and the new errors
- Vercel Security Review: setup and cost
- Vercel build minutes: Standard builds now billed
- vercel.toml: convert vercel.json
- Vercel 413 FUNCTION_PAYLOAD_TOO_LARGE: 4.5 MB vs 20 MiB
- Lovable Google Maps credits (15 Dec 2026)
- Cloudflare Email Sending on the free plan
- Cloudflare Search for Agents
- Claude Sonnet 4.5 retirement (30 Nov 2026)