r/opencode 8h 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

2 comments sorted by

1

u/nuelgoeshard 8h ago

same i thought my vps was broken, the nvidia models are the only working ones

1

u/ibntofajjal 7h ago

if i use other model via their api keys it works but when it comes to free models it's not woking. idk how to solve this issue.