Context
Cloudflare now documents a model page for Claude Opus 4.8 under the AI models catalog:
- Docs: https://developers.cloudflare.com/ai/models/anthropic/claude-opus-4.8/
- Model ID:
anthropic/claude-opus-4.8
- Worker binding example:
await env.AI.run("anthropic/claude-opus-4.8", { max_tokens, messages })
- REST example:
POST /client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/messages with a Cloudflare API token
- Documented context window: 1,000,000 tokens
- Example response includes
gatewayMetadata.keySource = "Unified", which indicates Cloudflare-managed/unified provider access rather than direct Anthropic API-key usage.
This is relevant to the StackBilt Cloudflare-credit routing policy because it gives us a Cloudflare-native frontier Claude lane alongside Workers AI open models.
Current repo state
@stackbilt/llm-providers@1.14.2 includes Cloudflare catalog entries for:
@cf/moonshotai/kimi-k2.6
@cf/zai-org/glm-4.7-flash
deepseek/deepseek-v4-pro
It does not appear to include Cloudflare provider support/catalog metadata for:
anthropic/claude-opus-4.8
The direct Anthropic provider has older direct Anthropic model IDs such as claude-opus-4-6-20250618, but this new route is materially different because billing/auth/transport is Cloudflare-managed.
Desired behavior
Add a Cloudflare provider/catalog entry for the Cloudflare-managed Anthropic route, exposed downstream as a gateway-selectable alias such as:
cloudflare/anthropic/claude-opus-4.8
Provider-native model string should remain:
anthropic/claude-opus-4.8
Suggested catalog metadata
Initial conservative metadata, subject to live smoke and pricing review:
- provider:
cloudflare
- model:
anthropic/claude-opus-4.8
- lifecycle:
active
- use cases:
HIGH_PERFORMANCE, LONG_CONTEXT, TOOL_CALLING, possibly BALANCED only if pricing/routing policy allows
- max context:
1_000_000
- streaming: likely true, but verify through Cloudflare endpoint/binding
- tool calling: likely true given Anthropic message semantics, but verify before marking Codex/Claude tool-safe
- vision: unknown from the Cloudflare page; do not mark unless documented or verified
- cost: do not hardcode zero; Cloudflare docs link pricing to dashboard, so either leave unknown/placeholder or add explicit Cloudflare-dashboard-derived rates when available
- description: Cloudflare-managed Anthropic Claude Opus 4.8 frontier model with 1M context
Implementation notes
This may need more than adding a string to the existing Workers AI model list:
- The model ID is not an
@cf/... Workers model; it is a provider-managed Cloudflare AI model.
- Cloudflare documents both
env.AI.run("anthropic/claude-opus-4.8", ...) and the /ai/v1/messages REST endpoint.
- The current Cloudflare provider should be checked for whether it correctly handles Anthropic-style message responses for this route, including
content[], stop_reason, usage, and gatewayMetadata.
- If AI Gateway metadata/cache headers differ for
/ai/v1/messages vs /ai/run/@cf/..., keep that difference visible in route-plan/cache metadata.
Acceptance criteria
Source
Cloudflare docs verified 2026-06-10: https://developers.cloudflare.com/ai/models/anthropic/claude-opus-4.8/
Context
Cloudflare now documents a model page for Claude Opus 4.8 under the AI models catalog:
anthropic/claude-opus-4.8await env.AI.run("anthropic/claude-opus-4.8", { max_tokens, messages })POST /client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/messageswith a Cloudflare API tokengatewayMetadata.keySource = "Unified", which indicates Cloudflare-managed/unified provider access rather than direct Anthropic API-key usage.This is relevant to the StackBilt Cloudflare-credit routing policy because it gives us a Cloudflare-native frontier Claude lane alongside Workers AI open models.
Current repo state
@stackbilt/llm-providers@1.14.2includes Cloudflare catalog entries for:@cf/moonshotai/kimi-k2.6@cf/zai-org/glm-4.7-flashdeepseek/deepseek-v4-proIt does not appear to include Cloudflare provider support/catalog metadata for:
anthropic/claude-opus-4.8The direct Anthropic provider has older direct Anthropic model IDs such as
claude-opus-4-6-20250618, but this new route is materially different because billing/auth/transport is Cloudflare-managed.Desired behavior
Add a Cloudflare provider/catalog entry for the Cloudflare-managed Anthropic route, exposed downstream as a gateway-selectable alias such as:
Provider-native model string should remain:
Suggested catalog metadata
Initial conservative metadata, subject to live smoke and pricing review:
cloudflareanthropic/claude-opus-4.8activeHIGH_PERFORMANCE,LONG_CONTEXT,TOOL_CALLING, possiblyBALANCEDonly if pricing/routing policy allows1_000_000Implementation notes
This may need more than adding a string to the existing Workers AI model list:
@cf/...Workers model; it is a provider-managed Cloudflare AI model.env.AI.run("anthropic/claude-opus-4.8", ...)and the/ai/v1/messagesREST endpoint.content[],stop_reason,usage, andgatewayMetadata./ai/v1/messagesvs/ai/run/@cf/..., keep that difference visible in route-plan/cache metadata.Acceptance criteria
CloudflareProvider.getModels()includesanthropic/claude-opus-4.8./modelsexposescloudflare/anthropic/claude-opus-4.8after consuming the release.llm-gateway.Source
Cloudflare docs verified 2026-06-10: https://developers.cloudflare.com/ai/models/anthropic/claude-opus-4.8/