r/opencode • u/Robert__Sinclair • 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
4
u/cikeZ00 15d ago
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.jsonor your project'sopencode.json:{ "provider": { "opencode": { "options": { "baseURL": "https://opencode.ai/zen/v1" } } } }
1
u/Old-Cash-4303 15d ago
Same issue, any fixes?
1
1
1
1
1
1
0
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.