GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bug: multiple plugins registering auth for the same provider silently overwrite each other · Issue #6261 · anomalyco/opencode

bug: multiple plugins registering auth for the same provider silently overwrite each other #6261

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
bug: multiple plugins registering auth for the same provider silently overwrite each other#6261
Copy link
Assignees
rekram1-node

Description

@Davincible
Davincible
opened on Dec 27, 2025
Issue body actions

When multiple plugins register authentication methods for the same provider (e.g., both opencode-antigravity-auth and opencode-websearch-cited register for google), only one plugin's methods are available. The other plugin's auth methods are silently discarded.

This affects both the CLI (opencode auth login) and the API (GET /provider/auth).

Root Cause

API (provider/auth.ts): Uses fromEntries() to build the methods map, which overwrites duplicate keys - last plugin wins.

CLI (cli/cmd/auth.ts): Uses .find() to get only the first matching plugin - first plugin wins.

Reproduction

  1. Install opencode-antigravity-auth and opencode-websearch-cited
  2. Run opencode auth login and select Google
  3. Only see "Google API key" - the Antigravity OAuth option is missing

Or via API:

curl -s http://127.0.0.1:7860/provider/auth | jq '.google'
# Returns only: [{ "type": "api", "label": "Google API key" }]

Expected

All auth methods from all plugins should be available for the same provider.

Fix

PR #6260

Activity

  1. github-actions
    assigned
    rekram1-node
    on Dec 27, 2025
  2. Davincible
    changed the title [-]Multiple plugins registering auth for the same provider silently overwrite each other[/-] [+]bug: multiple plugins registering auth for the same provider silently overwrite each other[/+] on Dec 27, 2025
  3. github-actions commented on Dec 27, 2025

    @github-actions
    github-actionsBot
    on Dec 27, 2025 – with GitHub Actions
    Contributor
    More actions

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

    • [FEATURE]: multiple auth profiles per provider #5391: [FEATURE]: multiple auth profiles per provider - discusses managing multiple profiles per provider
    • Have multiple instances of the same provider #6217: Have multiple instances of the same provider - requests the ability to have multiple instances of the same provider with different credentials

    Both of these issues describe related scenarios where multiple authentication credentials/instances for the same provider are needed. Your issue describes a specific bug where only one plugin's auth methods survive, which is the technical manifestation of this limitation.

    Feel free to ignore if this is addressing a different specific case.

  4. thdxr commented on Mar 25, 2026

    @thdxr
    thdxr
    on Mar 25, 2026
    Member
    More actions

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  5. rekram1-node
    closed this as not plannedon May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.