Feature hasn't been suggested before.
Describe the enhancement you want to request
Add Omniroute as a built-in provider in OpenCode.
Omniroute is an OpenAI-compatible provider/gateway. It can expose user-defined/custom models, so a static bundled model list is not enough. Users currently need to configure Omniroute manually as a custom OpenAI-compatible provider and keep model definitions in sync themselves.
I found related issues about dynamic model discovery for generic OpenAI-compatible custom providers, but this request is specifically for first-class Omniroute support:
Proposed behavior:
- Add a built-in
omniroute provider.
- Implement it as an OpenAI-compatible provider, e.g. via
@ai-sdk/openai-compatible.
- Support dynamic model discovery for Omniroute, so models added by the user in Omniroute become available in OpenCode without manually editing the OpenCode config.
- If possible, use Omniroute's OpenAI-compatible model listing endpoint, for example
/v1/models, or a provider-specific discovery endpoint if Omniroute exposes one.
Why this helps:
- Omniroute users can add their own custom models and route them through one OpenAI-compatible endpoint.
- OpenCode would show the actual available Omniroute models instead of requiring users to duplicate model metadata in config.
- This makes Omniroute consistent with the provider UX for model gateways while preserving custom model support.
Feature hasn't been suggested before.
Describe the enhancement you want to request
Add Omniroute as a built-in provider in OpenCode.
Omniroute is an OpenAI-compatible provider/gateway. It can expose user-defined/custom models, so a static bundled model list is not enough. Users currently need to configure Omniroute manually as a custom OpenAI-compatible provider and keep model definitions in sync themselves.
I found related issues about dynamic model discovery for generic OpenAI-compatible custom providers, but this request is specifically for first-class Omniroute support:
Proposed behavior:
omnirouteprovider.@ai-sdk/openai-compatible./v1/models, or a provider-specific discovery endpoint if Omniroute exposes one.Why this helps: