providers: add Cloudflare AI Gateway
This PR:
- [x] Adds Cloudflare's AI Gateway (https://developers.cloudflare.com/ai-gateway/) as a provider to opencode
- [x] Updates the Providers (https://opencode.ai/docs/providers/) docs
- [x] Links to the corresponding models.dev
cloudflare-ai-gatewayprovider to autoload models - PR is here: https://github.com/sst/models.dev/pull/476 - [ ] Validate model selection works
Let me see what’s up with the format failure when I’m back tomorrow.
@elithrar You can ignore the ci failure, it'll autoformat anything not formatted after being merged anyways
This looks good to me, models.dev has been updated and given it seems this works for you, it's safe to merge but I'll hold off till you are ready
Thanks! I’m seeing a few issues with some Workers AI models - want to debug that before this goes live. Suspect the model naming format isn’t working.
On Sat, Dec 6, 2025 at 15:24 Aiden Cline @.***> wrote:
rekram1-node left a comment (sst/opencode#5174) https://github.com/sst/opencode/pull/5174#issuecomment-3621082933
This looks good to me, models.dev has been updated and given it seems this works for you, it's safe to merge but I'll hold off till you are ready
— Reply to this email directly, view it on GitHub https://github.com/sst/opencode/pull/5174#issuecomment-3621082933, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAEQ4BYNAA4C72PN2BBVNL4AM3QHAVCNFSM6AAAAACOH6K3SGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMMRRGA4DEOJTGM . You are receiving this because you were mentioned.Message ID: @.***>
Fixed the merge conflict. Waiting on https://github.com/sst/models.dev/pull/514 to be merged in.
@elithrar merged