GeezerVison is showing github.com — OpenCode displays models which aren't configured & don't exist in LM Studio · Issue #4232 · anomalyco/opencode
OpenCode displays models which aren't configured & don't exist in LM Studio #4232DescriptionDescription
I configured the opencode.json to work with LM Studio. And made sure to delete all opencode files under .local beforehand to have a clean init and config.
I used the config example provided https://opencode.ai/docs/providers/#lm-studio
When I added my custom model, launched LM Studio and ran OpenCode in Terminal, the model list shows additional models which aren't configured in my opencode.json. The other configured models show up with the right name (as defined in the .json) and can be loaded successfully. See screenshots & steps to reproduce or further details.
Where do the other model
OpenCode version
1.0.58 (brew, macOS)
Steps to reproduce
- Copied config example from https://opencode.ai/docs/providers/#lm-studio
- Added a custom model from LM Studio (gpt-oss-20b) in
opencode.json
- Run
opencode in Terminal
- Ctrl+x > m to list models
- Model list shows additional models: Qwen3 Coder 30B & Qwen3 30B A3B 2507 - the latter isn't even installed in LM Studio) (Screenshot Nr. 1)
opencode.json doesn't contain neither Qwen3 Coder 30B or Qwen3 30B A3B 2507 (Screenshot Nr. 2)
Screenshot and/or share link
Screenshot Nr. 1 – Select Model in OpenCode 1.0.58

Screenshot Nr. 2 – Custom Models added in opencode.json

Operating System
macOS Tahoe 26.1
Terminal
iTerm 3.5.6 / Visual Studio Code 1.106.0-insider Reacted by Igor, Kelvin, lst, Praise Dare, 0nde, StephaneTaz, Smotrov Oleksii, Varun B Patil, Ondřej Súkup and Ahmad Alismail Activitygithub-actions commented on Nov 12, 2025 This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case. rekram1-node commented on Nov 12, 2025 This is because models.dev the api we own that we keep track of models with, has some models listed for the lm studio provider so they are auto populated for you jschmdt commented on Nov 12, 2025 Could we have an option to disable auto-populate, or have it disabled by default? It would be clearer for me as a user if only the models defined in the opencode.json file were listed. For example, I’d prefer not to have models like “Qwen3 30B A3B 2507” automatically added to keep it in sync with my own config.
On the other hand: I actually like the idea of an auto-populate feature (using GETv1/models). But if it’s enabled, it should at least list all models I have installed in LM Studio, rather than models that appear based on unclear criteria. I can imagine a group of users who would enjoy experimenting with or benchmarking multiple code models side by side. So having both modes available would cover both use cases 😎✨ Reacted by Zach Silveira, Antonio Dias, Sören Maschmann, dbul, StephaneTaz, Dan, Ahmad Alismail and Irakli Tchitadze rekram1-node commented on Nov 12, 2025 yeah we could prolly do sometbing better for ollama and lmstudio users Reacted by Jonas Schmidt, David Dean, Radek Šenfeld and Andrew Christianson agustif commented on Dec 18, 2025
yeah we could prolly do sometbing better for ollama and lmstudio users
my lmstudio plugin auto-discovers models could maybe add this to core for lmstudio provider and add them to config at runtime
https://github.com/agustif/opencode-lmstudio
and make a similar opencode-ollama plugin
also another idea (not implemented yet)
is to be able to download reusing lms sdk or cli if you have a model configured in config but not downloaded, ask you if you want to download it and do so. Reacted by Alessandro Bologna, pwhack, lst, Adrien Pellegrini, miabchdave, Vishnu Prasanth, dbul, Daniel Lim and Irakli Tchitadze StephaneTaz commented on May 10, 2026 Hi. This issue has been closed on March 25, but we are in May 26 and i still get this error.
I am using Linux Mint 22.3 and using the latest Opencode version (1.14.46).
This is my configuration at ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"lmstudio": {
"npm": "@ai-sdk/openai-compatible",
"name": "LM studio (local)",
"options": {
"baseURL": "http://127.0.0.1:1234/v1"
},
"models": {
"google/gemma-4-26b-a4b": {
"name": "emma-4-26b-a4b"
},
"qwen/qwen3.6-35b-a3b": {
"name": "qwen3.6-35b-a3b"
},
"google/gemma-4-e4b": {
"name": "gemma-4-e4b"
}
}
}
}
}
But when i open the list, this is what i get:
I was soooo confused.
If this issue is closed, why i am still having this problem today? Am i doing something wrong?
Note: When using Ollama instead LMstudio, i don´t have this problem.
Reacted by Jonas Schmidt, Smotrov Oleksii, Scott Engert, Harsh Patel, Kieren McDevitt, Dan, vahe-ecovium, Vu Minh Triet, Sylvain Laporte, Varun B Patil and 3 more 25green28 commented on May 25, 2026 I spent some time trying to filter out models I don’t use. The solution that worked for me was setting the disabled_providers parameter, even for a provider I actively use (LM Studio), in order to disable the three default providers. I hope this works for you as well.
{
"$schema": "https://opencode.ai/config.json",
"disabled_providers": ["openai", "opencode", "lmstudio"],
"provider": {
"localLMStudio": {
"npm": "@ai-sdk/openai-compatible",
"name": "LM Studio",
"options": {
"baseURL": "http://127.0.0.1:1234/v1"
},
"models": {
"qwen": {
"name": "lmstudio/qwen2.5-coder-7b-instruct"
}
}
}
},
"model": "localLMStudio/qwen"
}
When selecting a model:
 jschmdt commented on May 25, 2026 @25green28 thanks for the workaround. Will try out asap 😎🙏 StephaneTaz commented on May 26, 2026
I spent some time trying to filter out models I don’t use. The solution that worked for me was setting the disabled_providers parameter, even for a provider I actively use (LM Studio), in order to disable the three default providers. I hope this works for you as well.
{
"$schema": "https://opencode.ai/config.json",
"disabled_providers": ["openai", "opencode", "lmstudio"],
"provider": {
"localLMStudio": {
"npm": "@ai-sdk/openai-compatible",
"name": "LM Studio",
"options": {
"baseURL": "http://127.0.0.1:1234/v1"
},
"models": {
"qwen": {
"name": "lmstudio/qwen2.5-coder-7b-instruct"
}
}
}
},
"model": "localLMStudio/qwen"
}
When selecting a model:
Hey, thanks but that is not a good solution for people that use multiple accounts ( LM studio for simple queries and OPEN AI or Claude for complex queries). But thanks konflic commented on Aug 4, 2026 Vibe coding does not allow to fix such weired bug, that probably means something. Still exist in 1.18.13 very annoying.
Sound like nothing easiar as toggle "use config only" crxtixxx commented on Aug 29, 2026 opencode-cli 1.18.25 and Opencode Desktop, LMStudio models fail to be automatically recognized, current workaround is to create a custom OpenAI provider and input each downloaded LLM into the json file or into the GUI (for opencode-desktop) arvindvenkataramani commented on Sep 11, 2026 running into this same issue, it immediately broke onboarding for me, and is a completely unforced error. other coding harnesses don't struggle with this basic step. crxtixxx commented on Sep 11, 2026 My current workaround is to set the model-id to “defaultmodel” and the name “Loaded Model”, this way opencode uses the current loaded model and I don’t have to do anything in opencode. I think you can use anything, not just default model.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|