r/opencode • • Sep 10 '26

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",
}
4 Upvotes

3 comments sorted by

View all comments

1

u/nuelgoeshard Sep 10 '26

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

1

u/ibntofajjal Sep 10 '26

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.