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
{{ message }}
Repository navigation
WSL: opencode-go Forbidden intermittently — works fine on Windows with same IP/version #44390
The WSL-vs-Windows discrepancy you describe may be a distinct angle (OS-level differences in HTTP headers, TLS fingerprint, or user-agent sent by the Linux binary), but the underlying AI_APICallError: Forbidden symptom is shared. It may be worth cross-referencing those issues and adding any relevant details there, or confirming if your issue is specifically reproducible only on WSL.
Additional data point: WSL vs Windows discrepancy
I have a possibly related but distinct case. Same machine, same public IP, same API key, same opencode version (1.18.18), but:
Windows build: works fine
WSL Linux build: intermittent AI_APICallError: Forbidden
Environment
WSL2 Ubuntu 22.04 (kernel 6.18.33.2) + Windows 10
Public IP: 101.87.170.107 (confirmed identical for both)
Provider: opencode-go (Go plan)
OpenCode: 1.18.18 on both sides
Evidence
140 Forbidden errors in one day on WSL
Affected models: deepseek-v4-flash (36), deepseek-v4-pro (18), deepseek-v4-flash-free (16), ox-alpha-free (3), big-pickle (2)
Both opencode-go (57 errors) and opencode (20 errors) providers affected
models.opencode.ai/api.json also returned 403 intermittently from WSL
All endpoints are reachable from WSL (curl works)
Key observation
Since the public IP and API key are identical, this suggests the Forbidden may be related to something the Linux binary sends differently — possibly TLS fingerprint, User-Agent, or other HTTP headers that differ between the Windows and Linux builds.
The error is intermittent on WSL — sometimes the same model works, sometimes it returns Forbidden.
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.
Activity
github-actions commentedon Aug 23, 2026
This issue might be a duplicate of existing issues reporting
403 Forbiddenwith the opencode-go provider. Please check:403 Forbidden: {"model":"<model>"}while others work (subscription active, limits not reached) #40343: OpenCode Go — some models return 403 Forbidden while others work (subscription active, limits not reached)The WSL-vs-Windows discrepancy you describe may be a distinct angle (OS-level differences in HTTP headers, TLS fingerprint, or user-agent sent by the Linux binary), but the underlying
AI_APICallError: Forbiddensymptom is shared. It may be worth cross-referencing those issues and adding any relevant details there, or confirming if your issue is specifically reproducible only on WSL.EricYang2100 commentedon Aug 23, 2026
Additional data point: WSL vs Windows discrepancy
I have a possibly related but distinct case. Same machine, same public IP, same API key, same opencode version (1.18.18), but:
Windows build: works fine
WSL Linux build: intermittent AI_APICallError: Forbidden
Environment
WSL2 Ubuntu 22.04 (kernel 6.18.33.2) + Windows 10
Public IP: 101.87.170.107 (confirmed identical for both)
Provider: opencode-go (Go plan)
OpenCode: 1.18.18 on both sides
Evidence
140 Forbidden errors in one day on WSL
Affected models: deepseek-v4-flash (36), deepseek-v4-pro (18), deepseek-v4-flash-free (16), ox-alpha-free (3), big-pickle (2)
Both opencode-go (57 errors) and opencode (20 errors) providers affected
models.opencode.ai/api.json also returned 403 intermittently from WSL
All endpoints are reachable from WSL (curl works)
Key observation
Since the public IP and API key are identical, this suggests the Forbidden may be related to something the Linux binary sends differently — possibly TLS fingerprint, User-Agent, or other HTTP headers that differ between the Windows and Linux builds.
The error is intermittent on WSL — sometimes the same model works, sometimes it returns Forbidden.
thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊