Skip to content

OAuth login options not showing in OpenCode after latest update #119

@sabin-b

Description

@sabin-b

After the latest OpenCode update, I only see the ChatGPT/OpenAI API key option in the auth flow, and the OAuth login options from the opencode-openai-codex-auth plugin are no longer visible. Before this update, I could choose between API key and OAuth (ChatGPT Plus/Pro) when logging in.

Steps to Reproduce

  1. Update OpenCode to the latest version.
  2. Install and configure opencode-openai-codex-auth as described in the documentation.
  3. Run opencode auth login.
  4. Select OpenAI / ChatGPT provider.

Expected Behavior

OpenCode should display a login method selector that includes the OAuth login options provided by the plugin (ChatGPT Plus/Pro OAuth), not just the API key field.

Actual Behavior

OpenCode skips the selector and goes directly to the "Enter your API key" screen, so I cannot use OAuth login anymore.

Additional context

This issue started only after the most recent OpenCode update; before that, the same configuration showed OAuth options correctly. Please let me know if the auth system changed (for example, around dynamic auth prompts or provider login methods) and if there is any new configuration required for this plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions