/connect doesnt work for openai when server is remote #5429

Closed
opened 2026-02-16 17:52:36 -05:00 by yindo · 0 comments
Owner

Originally created by @iamhenry on GitHub (Jan 13, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

when I tried with the tui /connect for openai auth on a vps it resulted in a failed "localhost" connection

However, it works if you do opencode auth login > openai

Report from another use on discord with the same issue:

I’m trying to sign in with an OpenAI pro sub, on a VPS but it’s giving me: 

~~~
This site can’t be reached

localhost is currently unreachable.
ERR_CONNECTION_FAILED’’’ after redirecting from the sign in page, it seems like it’s due to the redirect being on a different machine, but I’ve been able to do it with all my other providers so far

It’s for http://localhost:1455/auth/callback?code=…
~~~

Plugins

No response

OpenCode version

1.1.18

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @iamhenry on GitHub (Jan 13, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description when I tried with the tui /connect for openai auth on a vps it resulted in a failed "localhost" connection However, it works if you do `opencode auth login` > openai Report from another use on discord with the same issue: ``` I’m trying to sign in with an OpenAI pro sub, on a VPS but it’s giving me: ~~~ This site can’t be reached localhost is currently unreachable. ERR_CONNECTION_FAILED’’’ after redirecting from the sign in page, it seems like it’s due to the redirect being on a different machine, but I’ve been able to do it with all my other providers so far It’s for http://localhost:1455/auth/callback?code=… ~~~ ``` ### Plugins _No response_ ### OpenCode version 1.1.18 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the opentuibug labels 2026-02-16 17:52:36 -05:00
yindo closed this issue 2026-02-16 17:52:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5429