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
desktop: no account management UI for multiple accounts on the same provider #50556
The desktop app has no UI to switch between multiple saved accounts of the same provider. The TUI (/connect) and CLI (opencode auth switch) support adding, activating, renaming, and deleting accounts, but the desktop app only exposes the "Connect provider" add flow.
Environment
opencode version: 2.0.12
Desktop app: 2.0.12 (Windows x64, Electron build)
OS: Windows 11 (NT 10.0.26200)
Shell: cmd.exe
Install/channel: release (npm @opencode/cli + official desktop installer)
Active plugins: ./plugin/config-audit.js
Reproduction
Add two accounts for one provider (TUI: /connect → OpenCode Go → API key, repeat to add a second account).
Verify both are saved: opencode auth list --format json shows two opencode-go credentials.
Open the desktop app and look for an account switcher (command palette via Ctrl+K, settings).
Only "Connect provider" is available — there is no accounts list, and no activate/rename/delete UI.
Expected Behavior
The desktop app should expose account management for a connected provider (activate / rename / delete), matching the TUI /connect flow.
Actual Behavior
There is no way to switch the active account from the desktop app. Users must open the TUI or run opencode auth switch <provider> <label> in a terminal; the desktop app then follows the server-side active account.
Additional Context
The server API already supports it: GET /api/integration/{id} returns connections[]; POST /api/credential/{id}/activate and PATCH /api/credential/{id} (label update) exist.
Inspecting the desktop bundle: provider.connect.* i18n keys exist for the add flow, but no account-management strings are present.
This issue might be a duplicate of existing issues. Please check:
[FEATURE]: multiple auth profiles per provider #5391: [FEATURE]: multiple auth profiles per provider — requests the same multi-account/profile management for providers, though your issue specifically highlights the missing desktop UI parity with the TUI /connect and opencode auth switch flows.
Still reproducible on Desktop 2.0.20, with a nuance: the Providers/Preferences list now shows multiple accounts for one provider (e.g. xAI and xAI 2), but there is still no activate / rename / delete control. I could not rename from the desktop UI and had to fall back to the supported API (PATCH /api/credential/{credentialID}).
Environment: macOS Darwin 27.0.0 arm64, Desktop 2.0.20 (bundled CLI 2.0.20).
This bites hardest when the two accounts use different auth methods (one API key, one subscription OAuth), because the generated labels are just <provider> / <provider> 2. Without rename (or a method indicator, see #50176) the two accounts are indistinguishable in the UI, so the workaround ends up being a terminal/API call.
Thanks for the detailed report! I think this is a duplicate of #45484, which asked for the same account management UI for providers with several accounts. That issue has since been completed. The desktop and web apps share this code, and the feature is in releases after the one you're on:
Account switching was added to Settings → Providers around v2.0.17.
A full Manage accounts dialog (switch the active account, rename, remove, add account) is in v2.0.29 and later.
You're on 2.0.12, so updating the desktop app should give you this without the TUI or opencode auth switch.
Possible duplicates and related issues, ordered by likelihood:
The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different. For example, reply if the accounts UI is still missing or broken after you update to a current release.
Closing this as a duplicate of #45484, since we didn't hear back on how this differs. That issue asked for the same account management UI for providers with several accounts, and it has been completed. In current releases (v2.0.29 and later), Settings → Providers → Manage accounts in the desktop app lets you switch, rename, remove and add accounts. Updating from 2.0.12 should give you this. For choosing an account per session from inside the chat, see #54136.
If you update and the accounts UI is still missing or doesn't work, please reply here with your version and what you see, and we can reopen.
Activity
github-actions commentedon Sep 22, 2026
This issue might be a duplicate of existing issues. Please check:
/connectandopencode auth switchflows.mxeshell commentedon Oct 1, 2026
Still reproducible on Desktop 2.0.20, with a nuance: the Providers/Preferences list now shows multiple accounts for one provider (e.g.
xAIandxAI 2), but there is still no activate / rename / delete control. I could not rename from the desktop UI and had to fall back to the supported API (PATCH /api/credential/{credentialID}).Environment: macOS Darwin 27.0.0 arm64, Desktop 2.0.20 (bundled CLI 2.0.20).
This bites hardest when the two accounts use different auth methods (one API key, one subscription OAuth), because the generated labels are just
<provider>/<provider> 2. Without rename (or a method indicator, see #50176) the two accounts are indistinguishable in the UI, so the workaround ends up being a terminal/API call.opencodejr commentedon Oct 28, 2026
Thanks for the detailed report! I think this is a duplicate of #45484, which asked for the same account management UI for providers with several accounts. That issue has since been completed. The desktop and web apps share this code, and the feature is in releases after the one you're on:
You're on 2.0.12, so updating the desktop app should give you this without the TUI or
opencode auth switch.Possible duplicates and related issues, ordered by likelihood:
The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different. For example, reply if the accounts UI is still missing or broken after you update to a current release.
opencodejr commentedon Oct 29, 2026
Closing this as a duplicate of #45484, since we didn't hear back on how this differs. That issue asked for the same account management UI for providers with several accounts, and it has been completed. In current releases (v2.0.29 and later), Settings → Providers → Manage accounts in the desktop app lets you switch, rename, remove and add accounts. Updating from 2.0.12 should give you this. For choosing an account per session from inside the chat, see #54136.
If you update and the accounts UI is still missing or doesn't work, please reply here with your version and what you see, and we can reopen.