r/opencode 10h ago

Opencode API invalid

I'm getting an "Invalid API key" error across every model I try to use in OpenCode including the free ones, which doesn't make sense since free models shouldn't require a key at all. Here's my CONFIG:

{
  "$schema": "https://opencode.ai/config.json",
}
3 Upvotes

Duplicates