GeezerVison is showing github.com — auth list hides subpath identity and shows duplicate rows for distinct auth records · Issue #59040 · anomalyco/opencode
auth list hides subpath identity and shows duplicate rows for distinct auth records #59040DescriptionDescription
When multiple auth entries point to the same base URL but different subpaths, opencode auth list prints duplicate-looking rows because the default table output omits the path/URL and only shows the integration name and source. The underlying credentials are distinct, but the CLI display makes them look identical, which makes it hard to tell which credential is which and can lead to confusion when switching or removing accounts.
Plugins
No response
OpenCode version
No response
Steps to reproduce
- Create or authenticate two integrations that share the same base URL but differ by subpath, e.g.
https://example.com/a and https://example.com/b.
- Run
opencode auth list.
- Observe that both rows display with the same text and cannot be distinguished in the default output, despite being separate stored auth entries.
Screenshot
No response
Operating System
No response
Terminal
No response Activityopencode-agent commented on Oct 25, 2026 Thanks for the report, @sergiobank! You're asking for opencode auth list to make separate stored credentials easy to tell apart when they currently print the same row, for example two logins to servers that share a host but differ by path (https://example.com/a and https://example.com/b).
Today the table shows only the integration name, the credential's label and whether it's stored or from the environment. For a custom Console login the label is the organization name, so two logins to different server paths under the same org look the same, even though the server URL is saved with each credential. Until this changes, there are two workarounds:
opencode auth list --format json shows each connection with its ID and details, including the server.
opencode auth switch and opencode auth logout accept a credential ID. If you pass a label that matches more than one credential, they refuse and list the matching IDs, so you can't switch or remove the wrong one by accident.
Showing the ID or the server in the default table would be an improvement to the display rather than a bug fix, so I've marked this as a feature request for the maintainers to consider. If you were using an integration other than the Console login, please say which one.
Related: #50556 (managing several accounts on the same provider in the desktop app).
lancy69 commented on Oct 27, 2026 May I contribute a focused change to show the full credential ID alongside each stored connection in opencode auth list? This would distinguish same-label accounts without fetching or displaying credential secrets; JSON output would stay unchanged.
I have a local implementation prepared with AI assistance, but have not opened a PR. I should have requested design review before implementing it. Is this approach approved for an implementation PR, or would you prefer a different scope? sergiobank commented on Nov 2, 2026 nimrodmoshe05-glitch commented on Nov 9, 2026 lancy69 commented on Nov 28, 2026 Could a maintainer confirm whether showing the credential ID in opencode auth list is the right fix for the duplicate rows? The implementation is in #59783 and leaves JSON output unchanged. If the approach looks good, could you also approve the CI runs on that PR? The PR standards checks passed, but the required workflows are marked action_required and haven’t started.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|