You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an active OpenCode Go subscription, but all API requests to /chat/completions are being rejected with:
{"type":"error","error":{"type":"AuthError","message":"Request blocked by upstream provider."}}
` HTTP Status: 401
This affects all models (DeepSeek, GLM, Qwen, Kimi) on both the Go (/zen/go/v1) and Zen (/zen/v1) endpoints. The issue has persisted for multiple days.
Environment
OS: macOS
App: OpenCode Desktop (/Applications/OpenCode.app) — Electron
N/A — Error is in API response, not UI. Full log excerpt:
timestamp=2026-07-27T23:28:08.897Z level=ERROR providerID=opencode-go modelID=deepseek-v4-flash error.error="AI_APICallError: Request blocked by upstream provider."
Operating System
macOS 26.5.2 (Build 25F84)
Terminal
zsh (default macOS terminal)
Description
I have an active OpenCode Go subscription, but all API requests to
/chat/completionsare being rejected with:{"type":"error","error":{"type":"AuthError","message":"Request blocked by upstream provider."}}
`
HTTP Status: 401
This affects all models (DeepSeek, GLM, Qwen, Kimi) on both the Go (
/zen/go/v1) and Zen (/zen/v1) endpoints. The issue has persisted for multiple days.Environment
/Applications/OpenCode.app) — ElectronZ22l(newly generated on 2026-07-27)Steps to Reproduce
AuthError: Request blocked by upstream provider.Plugins
None (clean config — only $schema and shell defined in opencode.jsonc)
OpenCode version
1.18.7
Steps to reproduce
Curl reproduction command:
curl -s -w "\nHTTP: %{http_code}" "https://opencode.ai/zen/go/v1/chat/completions"
-H "Authorization: Bearer sk-u9TS...Z22l"
-H "Content-Type: application/json"
-d '{"model":"deepseek-v4-flash","messages":[{"role":"user","content":"hi"}],"stream":false}'
Key finding: GET /models returns HTTP 200 (key is valid), but POST /chat/completions returns HTTP 401 (blocked).
Two different API Keys tested with the same result — this is an account-level block, not a key issue.
Related issues: bug(opencode-go): All subscription models return "Request blocked by upstream provider" #38218, Request blocked by upstream provider. #38216, Request blocked by upstream provider. #38190, [Bug] OpenCode Go: return 401 Request blocked by upstream provider — chat/completions blocked while /v1/models works #38257
Screenshot and/or share link
N/A — Error is in API response, not UI. Full log excerpt:
timestamp=2026-07-27T23:28:08.897Z level=ERROR providerID=opencode-go modelID=deepseek-v4-flash error.error="AI_APICallError: Request blocked by upstream provider."
Operating System
macOS 26.5.2 (Build 25F84)
Terminal
zsh (default macOS terminal)