LM Studio Missing as Provider, custom provider for LM Studio non-functional.
Ubuntu 25 Wayland Kernel 6.14.0-27-generic Opencode version 0.3.113 LM Studio API is:
- Responding to HTTP requests
- Accepting the API key "lm-studio"
- Serving the OpenAI-compatible endpoints (/v1/models tested)
Expected behavior: LM Studio is available as a provider and may be selected when running opencode auth.
Actual behavior: LM Studio is not listed as an option in the provider selection dialogs.
Given that LM Studio is not an option, I then configured LM Studio using the "Other" option with opencode auth. No other providers are configured. auth.json appears valid and ~/.opencode/opencode.json meets the spec for opencode.json per docs (both files contents shared below).
Expected behavior: opencode uses the new "lmstudio" custom provider. Actual behavior: opencode will not load any dialogs except for the auth dialog, meaning that just launching opencode as normal always takes me to an auth dialog.
If opencode.json is placed in the project folder, it works fine, but docs say I can have a global opencode.json
Contents of ~/.local/share/opencode/auth.json
{
"lmstudio": {
"type": "api",
"key": "lm-studio"
}
}
Contents of ~/.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": {
"qwen/qwen3-coder-30b": {
"name": "Qwen 3 Coder 30B"
}
}
}
}
}