---
title: "AI Gateway - Control spend and model access with AI Gateway policies — Cloud Changelog"
description: "You can now control who can use which models and providers on your gateway, and how much each user or team can spend, with AI Gateway policies. Policies u…"
url: "https://cloudchangelog.com/cloudflare/2026-12-04-policies"
updated: "2026-12-05"
---

[Back to feed](https://cloudchangelog.com/feed/2026-W49)

December 4, 2026 · Cloudflare

Action needed

# AI Gateway - Control spend and model access with AI Gateway policies

- [AI Gateway](https://cloudchangelog.com/products/cloudflare/ai-gateway)
- [AI and machine learning](https://cloudchangelog.com/search?q=ai-ml)

## What changed

**AI Gateway policies:** Control model access and per-user or team spend using Cloudflare Access identity; replaces spend limits.

You can now control who can use which models and providers on your gateway, and how much each user or team can spend, with AI Gateway [policies](https://developers.cloudflare.com/ai-gateway/features/policies/). Policies use the verified identity of the caller from [Cloudflare Access](https://developers.cloudflare.com/ai-gateway/configuration/cloudflare-access/), such as the user's email or identity provider (IdP) groups, or values you pass in [custom metadata](https://developers.cloudflare.com/ai-gateway/observability/custom-metadata/).

With policies, you can:

- Give a team or an email domain a shared monthly budget.
- Cap spend for each individual user, including inside a shared team budget.
- Block an IdP group from expensive models, or allow it to use only specific models.

Each policy targets an identity and a set of models or providers, then allows, blocks, or caps matching requests. Spend caps reset hourly, daily, weekly, or monthly on UTC boundaries. Use **Test policies** in the dashboard to check how your policies handle a request before it reaches real traffic.

The following policy blocks members of the `contractors` IdP group from all Claude Opus models:

```
{
	"name": "Block contractors from Claude Opus",
	"actor": "company:all",
	"resource": { "models": ["anthropic/claude-opus-*"] },
	"condition": "\"contractors\" in cf.user.groups",
	"action": { "type": "block" }
}
```

Policies replace [spend limits](https://developers.cloudflare.com/ai-gateway/features/spend-limits/), which are now deprecated. Existing spend limit rules continue to work. To move them to policies, refer to [Migrate from spend limits](https://developers.cloudflare.com/ai-gateway/features/policies/#migrate-from-spend-limits).

For more details, refer to the [Policies documentation](https://developers.cloudflare.com/ai-gateway/features/policies/).

Get the week’s Cloudflare changes in one email

Your email address

Free, every Monday: only what changed in Cloudflare that week. We email you a link to confirm.

[See last week’s digest](https://cloudchangelog.com/digests/weekly-2026-W48#provider-cloudflare)

Free. Unsubscribe any time.

[Read on developers.cloudflare.com](https://developers.cloudflare.com/changelog/post/2026-12-04-policies/)

## Related updates

- Jun 5, 2026

  [AI Gateway - Control AI costs with spend limits](https://cloudchangelog.com/cloudflare/2026-06-05-spend-limits)
- Aug 5, 2026

  [AI Gateway, Access - Identity-aware controls are now available in AI Gateway](https://cloudchangelog.com/cloudflare/2026-08-05-access-user-id-metadata)
- Aug 5, 2026

  [AI Gateway - Track AI spend and catch anomalous usage with User Insights](https://cloudchangelog.com/cloudflare/2026-08-05-user-insights)
- Dec 1, 2026

  [Amazon Bedrock Gateway and smart routing are now available in gated preview](https://cloudchangelog.com/a/2026-12-amazon-bedrock-gateway-smart-routing-gated-preview) · AWS
- Nov 17, 2026

  [Generally Available: Azure AI Gateway](https://cloudchangelog.com/azure/580080) · Azure

[All AI Gateway changes](https://cloudchangelog.com/products/cloudflare/ai-gateway)

## Contact

- [YouTube](https://www.youtube.com/@cloudchangelog)
