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
`◑ Waiting for authorization..Error: Unexpected error, check log file at /Users/xx/.local/share/opencode/log/2026-01-12T025639.log for more details
error: Token exchange failed: 403 at exchangeCodeForTokens (src/plugin/codex.ts:121:15) at processTicksAndRejections (native:7:39)
■ Canceled`
I retried the authentication and found the root cause.
The issue was related to the VPN routing. With split-tunneling enabled, the browser authorization succeeded, but the CLI token exchange failed with 403.
After switching the VPN to global mode with enhanced/TUN mode enabled, the OAuth flow completed successfully.
Reacted by zizhen01, zerogog, ShiBoyu, tao-py, DylanQiao and Daniil Davletov
Same issue here ◑ Waiting for authorization..Error: Unexpected error, check log file at /Users/xx/.local/share/opencode/log/2026-01-12T025639.log for more details error: Token exchange failed: 403 at exchangeCodeForTokens (src/plugin/codex.ts:121:15) at processTicksAndRejections (native:7:39) ■ Canceled
I retried the authentication and found the root cause.
The issue was related to the VPN routing. With split-tunneling enabled, the browser authorization succeeded, but the CLI token exchange failed with 403.
After switching the VPN to global mode with enhanced/TUN mode enabled, the OAuth flow completed successfully.
My hero!
Reacted by Jerry.Shi, DylanQiao, 陈润杰(Chen Runjie), sltc-shihh and Daniil Davletov
Activity
github-actions commentedon Jan 12, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
zizhen01 commentedon Jan 12, 2026
Same issue here
`◑ Waiting for authorization..Error: Unexpected error, check log file at /Users/xx/.local/share/opencode/log/2026-01-12T025639.log for more details
error: Token exchange failed: 403
at exchangeCodeForTokens (src/plugin/codex.ts:121:15)
at processTicksAndRejections (native:7:39)
■ Canceled`
syw2014 commentedon Jan 12, 2026
zerogog commentedon Jan 13, 2026
403means forbidden. If you not use proxy, use it. If you used proxy, switch it. Same forcodexcli.shiboyu1999 commentedon Jan 19, 2026
My hero!