Skip to content

[FEATURE]: 'opencode auth login' does not surface providers registered by plugins #13917

Closed

Description

@anoldguy

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

The opencode auth login provider picker is built entirely from the models.dev provider list. Plugins that register auth for a provider not in that list (custom gateways, third-party services) are loaded and functional, but their providers never appear in the picker. Users have no way to discover them through the normal login flow.

The workaround is passing the provider ID as a positional argument, which assumes users already know the exact ID their plugin registered. That defeats the purpose of having a picker at all.

Providers registered by plugins should be discoverable in the same picker alongside built-in providers.

Plugins specify auth via the auth hook on Hooks (AuthHook type in packages/plugin/src/index.ts), which includes a provider string and methods array. The built-in codex, copilot, and gitlab auth plugins all use this same mechanism.

Steps to reproduce

  1. Install a plugin that sets auth.provider to an ID not in models.dev (e.g. "portkey")
  2. Run opencode auth login
  3. The provider does not appear in the picker

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Feb 17, 2026
  2. github-actions commented on Feb 17, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    These issues cover similar problems with plugin auth providers not appearing in the picker and auth methods being shadowed or missing from the UI. They may contain useful context or related solutions.

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

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions