You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Ollama Cloud with OpenCode - it works great, except that when new models are added to the service they don't show up in OpenCode. Is there a way to force a refresh of the available models?
OpenCode version
1.0.223
Steps to reproduce
Connect OpenCode to OllamaCloud as a provider using an API key.
Code...be happy....
Observe that OllamaCloud has released a new model.
Try to add it using /models
Observe that it isn't available in OpenCode
Be sad.
These issues address the core problem of models not showing up in OpenCode and suggest solutions including manual refresh and auto-discovery features. Feel free to ignore if your specific case is different.
u dont need a new provider u can override or add models for the existing one, the models list is here: https://models.dev/
We should use the provider /models endpoints to populate the list automatically too, but normally they dont provide enough information to populate model list correctly besides the name and id of the model
u dont need a new provider u can override or add models for the existing one, the models list is here: https://models.dev/
We should use the provider /models endpoints to populate the list automatically too, but normally they dont provide enough information to populate model list correctly besides the name and id of the model
https://models.dev/ not the latest models,justlike ollama cloud glm4.7 m2.1 isready
u dont need a new provider u can override or add models for the existing one, the models list is here: https://models.dev/
We should use the provider /models endpoints to populate the list automatically too, but normally they dont provide enough information to populate model list correctly besides the name and id of the model
This would be relatively trivial to implement, right? Just pull both lists and do a disambiguation. It's better to have a complete list of models, with some information missing, than to just omit models without complete information.
Activity
github-actions commentedon Jan 1, 2026
This issue might be a duplicate of existing issues. Please check:
These issues address the core problem of models not showing up in OpenCode and suggest solutions including manual refresh and auto-discovery features. Feel free to ignore if your specific case is different.
mdlmarkham commentedon Jan 1, 2026
I'm trying to work around this by configuring an alternative provider in opencode.json, but so far I can't get it to work:
}
rekram1-node commentedon Jan 1, 2026
u dont need a new provider u can override or add models for the existing one, the models list is here:
https://models.dev/
We should use the provider /models endpoints to populate the list automatically too, but normally they dont provide enough information to populate model list correctly besides the name and id of the model
mdlmarkham commentedon Jan 1, 2026
Thanks @rekram1-node. In this case, the models that I would like to use are being made available by OllamaCloud (https://ollama.com/library/devstral-2) but aren't visible on models.dev
What's the syntax for the override?
spiffytech commentedon Jan 4, 2026
It seems like opencode pulls the list of available models from models.dev. So as long as that's missing Minimax M2.1, GLM 4.7, etc., so will opencode.
I added these models locally, like so:
{ "$schema": "https://opencode.ai/config.json", "permission": { "edit": "ask", "bash": "ask", "skill": "ask", "webfetch": "ask", "doom_loop": "ask", "external_directory": "ask" }, "provider": { "ollama-cloud": { "name": "Ollama Cloud", "models": { "minimax-m2.1": { "name": "Minimax M2.1", "limit": { "context": 204800, "output": 0 } }, "glm-4.7": { "name": "GLM 4.7", "limit": { "context": 202752, "output": 0 } } } } } }I got the context lengths by talking to the Ollama Cloud API:
And the list of available models:
mdlmarkham commentedon Jan 7, 2026
Thanks @spiffytech - I'll give it a try!
better319 commentedon Jan 12, 2026
https://models.dev/ not the latest models,justlike ollama cloud glm4.7 m2.1 isready
better319 commentedon Jan 12, 2026
THK,URL C:\Users\Administrator.config\opencode\opencode.json

and terminal:opencode models --refresh
it's ok now!
ting-ff commentedon Jan 15, 2026
This would be relatively trivial to implement, right? Just pull both lists and do a disambiguation. It's better to have a complete list of models, with some information missing, than to just omit models without complete information.
github-actions commentedon Mar 26, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.