Skip to content

docs: add Cloudflare Workers AI provider#18322

Open
mchenco wants to merge 3 commits intoanomalyco:devfrom
mchenco:mchen/add-workers-ai-provider
Open

docs: add Cloudflare Workers AI provider#18322
mchenco wants to merge 3 commits intoanomalyco:devfrom
mchenco:mchen/add-workers-ai-provider

Conversation

@mchenco
Copy link

@mchenco mchenco commented Mar 20, 2026

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds a Cloudflare Workers AI entry to the providers directory, placed right after Cloudflare AI Gateway. The backend support (cloudflare-workers-ai) already exists in the codebase — this just adds the missing docs so users can find and set it up.

Setup requires CLOUDFLARE_ACCOUNT_ID and a Workers AI API token (CLOUDFLARE_API_KEY), both obtainable from the Workers AI dashboard. Models are sourced from models.dev (42 models via @ai-sdk/openai-compatible against the Workers AI OpenAI-compatible endpoint).

How did you verify your code works?

Checked that cloudflare-workers-ai is already a registered custom loader in provider.ts with the correct env var names, and confirmed models.dev returns the provider with the right api URL, npm package, and model list.

Screenshots / recordings

N/A — docs-only change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants