[FEATURE]: Add Cohere as a provider #3010

Closed
opened 2026-02-16 17:38:14 -05:00 by yindo · 5 comments
Owner

Originally created by @yharaskrik on GitHub (Nov 20, 2025).

Originally assigned to: @yharaskrik on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

I want to be able to use Cohere as a provider, I looked at the codebase but not actually exactly how to add it otherwise I would have done it myself.

The cohere models exist in: https://models.dev/api.json

Technically Cohere has an openai compatibility API so I could use it as a custom but there are caveats when using the compatibility endpoint.

The Vercel AI SDK (which I think opencode uses) has support for cohere: https://ai-sdk.dev/providers/ai-sdk-providers/cohere

Originally created by @yharaskrik on GitHub (Nov 20, 2025). Originally assigned to: @yharaskrik on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request I want to be able to use Cohere as a provider, I looked at the codebase but not actually exactly how to add it otherwise I would have done it myself. The cohere models exist in: https://models.dev/api.json Technically Cohere has an openai compatibility API so I could use it as a custom but there are caveats when using the compatibility endpoint. The Vercel AI SDK (which I think opencode uses) has support for cohere: https://ai-sdk.dev/providers/ai-sdk-providers/cohere
yindo added the discussion label 2026-02-16 17:38:14 -05:00
yindo closed this issue 2026-02-16 17:38:14 -05:00
Author
Owner

@rekram1-node commented on GitHub (Nov 21, 2025):

We need to add a cohere provider to models.dev and then it should all work

@rekram1-node commented on GitHub (Nov 21, 2025): We need to add a `cohere` provider to models.dev and then it should all work
Author
Owner

@yharaskrik commented on GitHub (Nov 21, 2025):

We need to add a cohere provider to models.dev and then it should all work

Am I able to open a PR for that? Or is that now part of the open source repo? thanks!

@yharaskrik commented on GitHub (Nov 21, 2025): > We need to add a `cohere` provider to models.dev and then it should all work Am I able to open a PR for that? Or is that now part of the open source repo? thanks!
Author
Owner

@rekram1-node commented on GitHub (Nov 21, 2025):

Yes absolutely: https://github.com/sst/models.dev?tab=readme-ov-file#contributing

@rekram1-node commented on GitHub (Nov 21, 2025): Yes absolutely: https://github.com/sst/models.dev?tab=readme-ov-file#contributing
Author
Owner

@yharaskrik commented on GitHub (Nov 21, 2025):

Yes absolutely: https://github.com/sst/models.dev?tab=readme-ov-file#contributing

Will take a stab at it! thank you!

@yharaskrik commented on GitHub (Nov 21, 2025): > Yes absolutely: https://github.com/sst/models.dev?tab=readme-ov-file#contributing Will take a stab at it! thank you!
Author
Owner

@yharaskrik commented on GitHub (Nov 21, 2025):

Done!

@yharaskrik commented on GitHub (Nov 21, 2025): Done!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3010