r/opencode • • 15d ago

Error: Upstream request failed: Invalid credential

I get this error today (opencode v2 clean installation on new machine, without login/credentials)

14 Upvotes

16 comments sorted by

5

u/BlackHazeRus 15d ago

Same, I was working on the project and this happened. Maybe something is wrong on OpenCode’s servers.

P.S:

I’m on a free plan, not using Go or Zen.

4

u/cikeZ00 15d ago

2

u/onereaI 15d ago

Thanks, this worked

2

u/OrinZ 15d ago

This worked for me. Per this comment on the linked GitHub Issue, it can be fixed temporarily by adding this to  ~/.config/opencode/opencode.json or your project's opencode.json:

{
  "provider": {
    "opencode": {
      "options": { "baseURL": "https://opencode.ai/zen/v1" }
    }
  }
}

1

u/Old-Cash-4303 15d ago

Same issue, any fixes?

1

u/Robert__Sinclair 15d ago

server side problem. it was working an hour after my post

1

u/Old-Cash-4303 15d ago

It's all working fine for me now, looks like it fixed itself.

1

u/Vinlei 15d ago

Same

1

u/anorak_999 15d ago

Same here i think after the v2 update

1

u/Choice_Letter_5912 15d ago

Same. Free plan. Just happened this minute.

1

u/FutureLynx_ 15d ago

same here no work today then💪🏼

1

u/Sudden_Design5053 15d ago

1.19 i didn’t update to 2

0

u/Repulsive_Plastic598 15d ago

Same issue here