Technology1 min read

Introducing Spend Management: Spending limits and alerts for Cloudflare

By · Published by Everything Blog

In short

Pay-as-you-go users on Cloudflare can now configure spending limits, warning notifications, and automated service pauses to control costs for Workers and Durable Objects. Setup is available through the company dashboard, the cf CLI, or the REST API, with billing metrics updating in under 10 minutes alongside audit logs. When a predefined limit is hit, the platform blocks cost-generating code executions, such as Queue consumers and Cron Triggers, while leaving static assets accessible. Services automatically resume at the start of the next cycle or immediately if administrators raise or disable the policy.

Key points

  • Initial spend management controls protect Workers and Durable Objects, with expanded prod…: Initial spend management controls protect Workers and Durable Objects, with expanded product coverage planned for the future.
  • Administrators can set thresholds, track audit logs, and manage alerts using the Cloudfla…: Administrators can set thresholds, track audit logs, and manage alerts using the Cloudflare dashboard, the cf CLI, or the REST API.
  • Paused services can be restarted immediately by elevating the budget limit, removing the…: Paused services can be restarted immediately by elevating the budget limit, removing the policy, or waiting for the next billing cycle.

Sources checked by our analysis pipeline: 1

Spend controls have been at the top of the list of most requested features from developers building on our developer platform for quite some time now. With more than 10 million developers now building on Cloudflare, this matters more than ever.

Although we’ve had usage notifications and budget alerts available to paid plans for a while, this doesn’t solve the problem completely; informing is not the same as controlling.

You can now set spending thresholds and choose to have Cloudflare pause activity when those limits are reached, thus avoiding unexpected bills from unplanned usage. Today, we're introducing Spend Management in Beta, for any pay-as-you-go (PayGo) customer, starting with Workers and Durable Objects.

Use Spend Management alongside AI Gateway spend limits to manage compute and AI inference costs across your application. AI Gateway already supports per-user and per-model budgets for Workers AI and other AI providers, applied to requests routed through your gateway.

How it works

You can start using Spend Management using the dashboard, cf CLI, or REST API.

In the dashboard, head over to Manage Account > Billing >…

Technology