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
CodexAuthPlugin loads but OAuth login methods not presented in auth CLI #13231
opencode auth login → select OpenAI → goes straight to "Enter your API key" instead of showing the login method selector with OAuth options.
Environment
opencode v1.1.56 (Homebrew, macOS arm64)
Also reproduced on dev branch built from source
Investigation
The built-in CodexAuthPlugin from src/plugin/codex.tsdoes load (confirmed via debug logging in plugin/index.ts — prints auth.provider=openai)
The "(ChatGPT Plus/Pro or API key)" hint in the provider selector is hardcoded in src/cli/cmd/auth.ts line ~297 — not from the plugin
After selecting OpenAI, Plugin.list().findLast(x => x.auth?.provider === provider) at line ~310 should find the CodexAuthPlugin, but the code falls through to the plain "Enter your API key" prompt
The third-party opencode-openai-codex-auth npm plugin is explicitly blocked at plugin/index.ts line ~56
Expected
After selecting OpenAI, a "Login method" selector should appear with options:
ChatGPT Pro/Plus (browser)
ChatGPT Pro/Plus (headless)
Manually enter API Key
(Same pattern as Anthropic's "Claude Pro/Max" login method selector)
Steps to Reproduce
opencode auth login
Select "OpenAI"
Observe: jumps straight to "Enter your API key" — no login method options
Notes
Anthropic auth works correctly (shows Claude Max vs API Key selector) because it uses the opencode-anthropic-auth BUILTIN npm package
The third-party plugin skip at line 56 means users can't work around this by installing the npm plugin
@illyssey plugins are overriding the auth methods, here's a plugin which might be causing this issue for you (removing it foxed for me) - see #10063 (comment)
Activity
github-actions commentedon Feb 12, 2026
This issue might be a duplicate of existing issues. Please check:
These may be related to the same underlying plugin resolution mechanism.
murtuzaalisurti commentedon Feb 25, 2026
experiencing the same, it goes straight to "Enter an API Key"
murtuzaalisurti commentedon Feb 25, 2026
@illyssey plugins are overriding the auth methods, here's a plugin which might be causing this issue for you (removing it foxed for me) - see #10063 (comment)
rekram1-node commentedon May 21, 2026
Make sure u arent using plugins that override/break it, and also make sure u arent disabling it w/ OPENCODE_DISABLE_DEFAULT_PLUGINS