opencode icon indicating copy to clipboard operation
opencode copied to clipboard

providers: add Cloudflare AI Gateway

Open elithrar opened this issue 1 month ago • 6 comments

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-gateway provider to autoload models - PR is here: https://github.com/sst/models.dev/pull/476
  • [ ] Validate model selection works

elithrar avatar Dec 06 '25 17:12 elithrar

Let me see what’s up with the format failure when I’m back tomorrow.

elithrar avatar Dec 06 '25 19:12 elithrar

@elithrar You can ignore the ci failure, it'll autoformat anything not formatted after being merged anyways

rekram1-node avatar Dec 06 '25 20:12 rekram1-node

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

rekram1-node avatar Dec 06 '25 20:12 rekram1-node

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: @.***>

elithrar avatar Dec 06 '25 21:12 elithrar

Fixed the merge conflict. Waiting on https://github.com/sst/models.dev/pull/514 to be merged in.

elithrar avatar Dec 13 '25 13:12 elithrar

@elithrar merged

rekram1-node avatar Dec 13 '25 16:12 rekram1-node