Skip to content

bug? Ollama does not work as a provider unless configured with an API key #227

@johnsaigle

Description

@johnsaigle

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions