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
Local LLM Support on MAC with LM Studio - Without an API Provider Setup #1480
Did it work if you don't have that opencode.json file in your project directory, as in the opencode.json only loaded into ~/.config/opencode/opencode.json & with no API provider configured?
I got it working by copying this file to the local project directory but based on the documentation ~/.config/opencode/opencode.json should be the global setting.
omg thanks, I was faffing around for 20 minutes trying to get it to connect to my local ik_llama.cpp llama-server with no idea what was happening...
turns out i had to put the opencode.json in the same directory where i was calling opencode binary. I does not work putting opencode.json into ~/.local/share/opencode/ which is where it was putting the auth.json file on my arch linux box.
Activity
thdxr commentedon Aug 1, 2025
are you on latest?
EvolvingSoftware commentedon Aug 1, 2025
Yes, just brew upgrade 'ed and retested.
Divkix commentedon Aug 2, 2025
I can confirm this issue, using the latest version and not able to use lm-studio as provider.
unluckyjori commentedon Aug 2, 2025
I got it working on my mac with lm studio
EvolvingSoftware commentedon Aug 2, 2025
Did it work if you don't have that opencode.json file in your project directory, as in the opencode.json only loaded into ~/.config/opencode/opencode.json & with no API provider configured?
I got it working by copying this file to the local project directory but based on the documentation ~/.config/opencode/opencode.json should be the global setting.
unluckyjori commentedon Aug 2, 2025
I put it in .config/opencode
ubergarm commentedon Sep 8, 2025
omg thanks, I was faffing around for 20 minutes trying to get it to connect to my local ik_llama.cpp llama-server with no idea what was happening...
turns out i had to put the
opencode.jsonin the same directory where i was callingopencodebinary. I does not work puttingopencode.jsoninto~/.local/share/opencode/which is where it was putting the auth.json file on my arch linux box.Installed with
yay -Sy opencode-bin.rubnogueira commentedon Oct 1, 2025
I was having the same issue, and the problem is that I was putting the configs on auth.json based on this link:
https://opencode.ai/docs/providers/#credentials
It's clear now that auth.json is for API keys, so I think it's a good idea to add an extra section mentioning the opencode.json file.
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.
security: harden release workflows against secret leakage (anomalyco#…
Revert "security: harden release workflows against secret leakage (an…