Skip to content

Add Cloudflare-managed Anthropic Claude Opus 4.8 catalog lane #90

Description

@stackbilt-admin

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

  • CloudflareProvider.getModels() includes anthropic/claude-opus-4.8.
  • Public model catalog exposes the Cloudflare-managed Anthropic lane with accurate context/capability metadata.
  • Downstream gateway /models exposes cloudflare/anthropic/claude-opus-4.8 after consuming the release.
  • Unit tests cover model lookup, capabilities, route planning, and response normalization for an Anthropic-shaped Cloudflare response.
  • Live smoke, if account access is available, proves a minimal Cloudflare REST or binding call returns successfully without an Anthropic API key.
  • Do not mark this route Codex/Claude tool-loop safe until tool-call behavior is verified through llm-gateway.

Source

Cloudflare docs verified 2026-06-10: https://developers.cloudflare.com/ai/models/anthropic/claude-opus-4.8/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions