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
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
Activity
github-actions commentedon Oct 3, 2026
This issue might be a duplicate of existing issues. Please check:
opencode auth logincrashes on Linux without xdg-open #52548:opencode auth logincrashes on Linux withoutxdg-open; it reports the same missing executable while opening the authorization URL.opencode webcrashes on headless Linux whenxdg-openis missing; this describes a related browser-launch failure.