Cloudflare has introduced Spend Management in beta, letting pay-as-you-go customers set spending limits that automatically pause Workers and Durable Objects once reached. Cloudflare says the feature answers a long-running developer request, since earlier usage notifications and budget alerts only informed customers and did not control spending.
Customers enable the controls per product in the dashboard under Billing, or through the cf command-line tool or a REST API. Each control takes a spending limit, a notification email, and one or more alert thresholds. Cloudflare emails the recipient when spend reaches a threshold or the limit. At the limit, a blocking policy pauses the product.
Once a cap is enforced, new invocations that incur costs are rejected. In Workers, Cron Triggers and Queue consumer invocations are paused, but static assets continue to be served. Service resumes if the limit is raised above the cycle's accumulated spend or the blocking policy is disabled or deleted.
The dashboard shows current billing cycle costs in near real time, under 10 minutes, plus an audit log of limit changes and reached caps. The billing cycle follows the paid subscription start date, not the calendar month. AI Gateway already offers per-user and per-model budgets for AI requests.
Source: Introducing Spend Management: Spending limits and alerts for Cloudflare | Cloudflare Blog.