GeezerVison is showing github.com — bug? Ollama does not work as a provider unless configured with an API key · Issue #227 · anomalyco/opencode
bug? Ollama does not work as a provider unless configured with an API key #227
Description
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.
Activity
thdxr commented on Jun 20, 2025
hm i didn't need to do that let me double check
johnsaigle commented on Jun 20, 2025
Thanks, it's possible actually that the JSON was mangled (trailing comma at the end of the models entry).
That might have been failing silently. I thought it was adding the API key that fixed this but I might have forgotten the exact order of how I got things set up.
thdxr commented on Jun 20, 2025
i'll add proper config validation
Reacted by John Saigle and joe
rekram1-node commented on Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
added 2 commits that reference this issue
on Jan 1, 2026This issue will close once commit a6f5d33 is merged into the 'dev' branch.a6f5d33 This issue will close once commit 4811302 is merged into the 'dev' branch.4811302 added a commit that references this issue
on Apr 7, 2026This issue will close once commit 1f74889 is merged into the 'dev' branch.1f74889
Metadata
Metadata
Development
No branches or pull requestsIssue actions