Skip to content

bug: OpenAI auth flow crashes #53037

Description

@matdev83

Description

Affected: both browser and headless.

mateusz@agent-dev:/source/repos$ opencode auth login
┌ Connect an integration
│
◇ Select integration
│ OpenAI
│
◇ Select login method
│ ChatGPT Pro/Plus (browser)
│
◇ Authorization started
│
● Complete authorization in your browser. This window will close automatically.
│
● https://auth.openai.com/oauth/authorize?response_type=code&...&originator=opencode
Error: Executable not found in $PATH: "xdg-open"
at spawn (unknown)
at spawn (node:child_process:721:35)
at cli.prompt.open-url (/$bunfs/root/chunk-jx8vgmvd.js:6:7614)
at cli.prompt.open-url (definition) (/$bunfs/root/chunk-v7dsjqwg.js:2:377)
at cli.auth.login.oauth (/$bunfs/root/chunk-jx8vgmvd.js:6:6699)
at cli.auth.login.oauth (definition) (/$bunfs/root/chunk-jx8vgmvd.js:6:7060)
at cli.auth.login.authenticate (/$bunfs/root/chunk-jx8vgmvd.js:6:5199)
at cli.auth.login.authenticate (definition) (/$bunfs/root/chunk-jx8vgmvd.js:6:6547)
at cli.auth.login.run (/$bunfs/root/chunk-jx8vgmvd.js:6:4663)
at cli.auth.login.run (definition) (/$bunfs/root/chunk-jx8vgmvd.js:6:4781)
at cli.auth.login (/$bunfs/root/chunk-tkwxvtwq.js:49:15676)
at cli.auth.login (definition) (/$bunfs/root/chunk-jx8vgmvd.js:6:4638)
mateusz@agent-dev:
/source/repos$ opencode --version
opencode v2.0.22
mateusz@agent-dev:~/source/repos$ uname -a
Linux agent-dev 6.12.74+deb13+1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.74-2 (2026-03-08) x86_64 GNU/Linux

Plugins

vanilla

OpenCode version

2.0.22

Steps to reproduce

  1. opencode auth login
  2. select OpenAI browser or headless
  3. crashes right after method selected

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions