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
{{ message }}
Repository navigation
LM Studio Missing as Provider, custom provider for LM Studio non-functional. #1555
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
i'm not following - lm studio requires custom config like our docs say, is something broken?
I believe the problem/bug comes from using the global opencode.json at ~/.opencode/opencode.json as it's not working.
But the local opencode.json place in the projet folder works. I just tested and this is the behaviour, local folder works, global config file does not work
I am confused why this remotely asks for an API key for LM studio in the config menu of the terminal, there is often times no need for lm studio to require one nore is there an otpion for this to allow me to use an actual lm studio instance???
Activity
thdxr commentedon Aug 3, 2025
i'm not following - lm studio requires custom config like our docs say, is something broken?
RodriMora commentedon Aug 4, 2025
I believe the problem/bug comes from using the global opencode.json at ~/.opencode/opencode.json as it's not working.
But the local opencode.json place in the projet folder works. I just tested and this is the behaviour, local folder works, global config file does not work
Philosoph89 commentedon Aug 4, 2025
Configured LM Studio locally without problems
EDIT: global ;-)
Nindaleth commentedon Dec 25, 2025
Here's my config that I'm using without any issues:
~/.config/opencode/opencode.jsoncall
opencode auth login-> Other -> type in "llama-cpp", enter API key, everything set up correctly~/.local/share/opencode/auth.jsonThe only valid point I guess is this, llama-cpp is not suggested in "Other" provider menu despite being present in config:
thdxr commentedon Mar 25, 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.
cdvankammen commentedon Apr 29, 2026
I am confused why this remotely asks for an API key for LM studio in the config menu of the terminal, there is often times no need for lm studio to require one nore is there an otpion for this to allow me to use an actual lm studio instance???
docs(assistant): improve socat lmstudio workaround comment
docs(assistant): improve socat lmstudio workaround comment (#416)