Skip to content

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

@iamhenry

Description

@iamhenry

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions