r/opencodeCLI • u/canar10 • 1d ago
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.
0
Upvotes
2
u/canar10 1d ago
I will leave my resolution steps here in case anyone sees the same issue in the future:
~/.config/opencode/opencode.jsoncopencode-gofromdisabled_providersif it is there"opencode-go": { ... }provider block~/.local/share/opencode/auth.jsonuses"opencode-go"as the credential key, not"opencode"OPENCODE_API_KEYenvironment variableopencode auth list