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: multiple plugins registering auth for the same provider silently overwrite each other #6261
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
Install opencode-antigravity-auth and opencode-websearch-cited
Run opencode auth login and select Google
Only see "Google API key" - the Antigravity OAuth option is missing
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
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.
Activity
[-]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[/+]github-actions commentedon Dec 27, 2025
This issue might be a duplicate of existing issues. Please check:
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.
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.