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
{{ message }}
Repository navigation
bug: opencode auth login openai fails with 'fetch() URL is invalid' on Windows (v1.18.16) #41727
opencode auth login openai fails immediately with Failed to load auth provider metadata from openai: fetch() URL is invalid. The browser OAuth flow never opens.
Environment
OpenCode version: 1.18.16
OS: Windows (PowerShell 7)
Auth method: OpenAI OAuth (ChatGPT Plus)
Steps to reproduce
opencode auth logout openai (or start from a clean state)
opencode auth login openai
Observe immediate error — no browser window opens
Actual behavior
opencode auth login openai fails instantly:
Error: Failed to load auth provider metadata from openai: fetch() URL is invalid
The OpenAI provider IS listed as available in opencode auth list:
False alarm — the correct command is opencode auth login (without the provider argument). Passing openai as a positional argument causes the error. Closing as this is user error, not a bug.
Activity
dnlrsls commentedon Aug 11, 2026
False alarm — the correct command is opencode auth login (without the provider argument). Passing openai as a positional argument causes the error. Closing as this is user error, not a bug.