I configured my opencode.json file to add Ollama as a provider. However, it only worked if I:
- ran
opencode auth login
- chose "Other"
- Added an API key like
"abc" (providing an empty string was forbidden)
This should probably be fixed -- I imagine a lot of people will set up Ollama to work on localhost or LAN without requiring an API key.
I configured my
opencode.jsonfile to add Ollama as a provider. However, it only worked if I:opencode auth login"abc"(providing an empty string was forbidden)This should probably be fixed -- I imagine a lot of people will set up Ollama to work on localhost or LAN without requiring an API key.