---
title: "Introducing Spend Management: Spending limits and alerts for Cloudflare"
description: "Cloudflare introduces Spend Management in Beta for pay-as-you-go customers, starting with Workers and Durable Objects, to set spending limits and automatically pause activity when those limits are reached. The system uses a two-stage metering pipeline that aggregates usage measurements close to the source into one-minute and five-minute windows before processing. An account-partitioned Usage Engine translates aggregated measurements into usage records and maintains accumulated spend per account without cross-partition coordination. The Rating Engine converts usage into monetary value and enforces caps by blocking new invocations of the product, while static assets continue to serve. Users can configure limits, alert thresholds, and notification emails via the dashboard, cf CLI, or REST API, with near-real-time cost visibility and an audit log."
---

# Introducing Spend Management: Spending limits and alerts for Cloudflare

[Cloudflare](https://yomu.fyi/company/cloudflare) · André Cruz · Nov 13, 2026

**Type:** Announcement

## Summary

Cloudflare introduces Spend Management in Beta for pay-as-you-go customers, starting with Workers and Durable Objects, to set spending limits and automatically pause activity when those limits are reached. The system uses a two-stage metering pipeline that aggregates usage measurements close to the source into one-minute and five-minute windows before processing. An account-partitioned Usage Engine translates aggregated measurements into usage records and maintains accumulated spend per account without cross-partition coordination. The Rating Engine converts usage into monetary value and enforces caps by blocking new invocations of the product, while static assets continue to serve. Users can configure limits, alert thresholds, and notification emails via the dashboard, cf CLI, or REST API, with near-real-time cost visibility and an audit log.

## Context

Cloudflare introduces Spend Management in Beta for pay-as-you-go customers, starting with Workers and Durable Objects, to address the most requested feature of spending controls. The system allows users to set spending thresholds and alert thresholds, and automatically pauses activity when limits are reached, avoiding unexpected bills. It is available via the dashboard, cf CLI, or REST API, and includes near-real-time cost visibility and an audit log.

## Approach / What changed

Spend Management uses a two-stage metering pipeline that aggregates usage measurements close to the source into one-minute and then five-minute windows, an account-partitioned Usage Engine that translates aggregated measurements into usage records and maintains accumulated spend per account, and a Rating Engine that converts usage into monetary value and enforces spending limits by pausing product invocations when a cap is reached.

## Takeaways

- Spend Management allows pay-as-you-go customers to set spending limits and alert thresholds for Workers and Durable Objects, with automatic pausing of cost-incurring invocations when the limit is reached.
- The system uses a two-stage metering pipeline that aggregates usage measurements into one-minute and then five-minute windows close to the source, reducing raw event volume before processing by the Usage Engine.
- The Usage Engine partitions processing by account, keeping each account’s usage and subscription state together, enabling parallel processing and consistent pricing without cross-partition coordination.

## FAQ

### What happens when a spending cap is enforced?

When a spending limit is reached, Cloudflare pauses customer-code invocations that incur costs, such as Cron Triggers and Queue consumer invocations for Workers, but static assets continue to be served. To resume service, you can raise the limit above current spend, disable or delete the blocking policy, or wait until the next billing cycle.

### How is the billing cycle defined?

The billing cycle starts when the paid subscription begins, not when you deploy a Worker or create a spending cap. For example, a subscription starting October 10 has a cycle of October 10 to November 10, not a calendar month.

### How can I configure Spend Management?

Spend Management is available via the dashboard under Manage Account > Billing > Spend limits, the cf CLI with commands like \`cf billing spend-policies create\`, and the REST API with endpoints such as POST to \`/billing/spend-policies\`.

**Tags:** [Billing](https://yomu.fyi/topic/billing), [Cloudflare](https://yomu.fyi/topic/cloudflare), [Durable Objects](https://yomu.fyi/topic/durable-objects), [Spend Management](https://yomu.fyi/topic/spend-management), [Workers](https://yomu.fyi/topic/workers)

- Source: [Cloudflare](https://blog.cloudflare.com/spend-management)
- Source URL: https://blog.cloudflare.com/spend-management
- Ingested by Yomu: 2026-11-13T15:00:12.675Z

[Read original post](https://blog.cloudflare.com/spend-management)
