core: make account login upgrades safe while adding multi-account workspace auth#15487
Open
core: make account login upgrades safe while adding multi-account workspace auth#15487
Conversation
The auth command has been renamed to providers to better reflect its purpose of managing AI provider credentials. This makes it easier for users to discover and use the credential management features when configuring different AI providers.
…agement Refactor internal authentication system by renaming the control module to account, making it easier to understand that this handles user account credentials and tokens. Simplify database schema management by removing the centralized schema exports and letting each module manage its own tables directly.
Allow users to authenticate via browser-based OAuth device flow with opencode login command. Includes login, logout, switch account, and workspaces list commands for managing multiple accounts.
…l workspace access Enable users to authenticate with multiple accounts and switch between them, accessing workspaces from each account separately.
…mands Switch from boolean active flag to workspace_id tracking so users can select which workspace context to operate in. Login now automatically selects the first available workspace and stores it on the account record. Logout command now actually removes account records and supports targeting specific accounts by email. Switch command provides an interactive picker to change active workspace. Workspaces command lists all available workspaces across accounts. Configuration now loads workspace-specific settings from the server when an active workspace is selected, enabling per-workspace customization of opencode behavior.
…estoring legacy ControlAccountTable alongside new AccountTable structure
opencode-agent bot
added a commit
that referenced
this pull request
Feb 28, 2026
…multi-account workspace auth
opencode-agent bot
added a commit
that referenced
this pull request
Feb 28, 2026
…multi-account workspace auth
opencode-agent bot
added a commit
that referenced
this pull request
Feb 28, 2026
…multi-account workspace auth
opencode-agent bot
added a commit
that referenced
this pull request
Mar 1, 2026
…multi-account workspace auth
opencode-agent bot
added a commit
that referenced
this pull request
Mar 1, 2026
…multi-account workspace auth
opencode-agent bot
added a commit
that referenced
this pull request
Mar 1, 2026
…multi-account workspace auth
opencode-agent bot
added a commit
that referenced
this pull request
Mar 1, 2026
…multi-account workspace auth
opencode-agent bot
added a commit
that referenced
this pull request
Mar 1, 2026
…multi-account workspace auth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
providersandaccountcommands so people can connect and manage credentials from the CLI without hand-editing config