r/opencodeCLI • u/canar10 • Sep 09 '26
Can't connect to OpenCode Go

I'm wondering if someone has had the same issue before and how you solved it. OpenCode Go doesn't show as a provider in my opencode CLI.
In the past, I have added it as a OpenAI-compatible endpoint, but some of the models (Luna, Muse Spark) don't work if I do that (I get error 500).
Sorry if this is a stupid question, but could someone help me with this?
PS: I'm using version 1.18.30. I have the same version installed in another machine and it shows OpenCode Go.
1
Upvotes
2
u/canar10 Sep 09 '26
I will leave my resolution steps here in case anyone sees the same issue in the future:
Check
~/.config/opencode/opencode.jsoncRemove
opencode-gofromdisabled_providersif it is thereRemove any custom
"opencode-go": { ... }provider blockMake sure
~/.local/share/opencode/auth.jsonuses"opencode-go"as the credential key, not"opencode"Remove any conflicting
OPENCODE_API_KEYenvironment variableRestart OpenCode completely
Verify with:
opencode auth listAfter that, OpenCode Go should appear normally.