Answer: Each successful API-key, OAuth, or command login creates a saved account, with the newest account becoming active; you can switch the active account by its label or credential ID using opencode auth switch, and remove a saved account with auth logout. In the TUI, /connect provides the same add, activate, rename, and delete operations for saved accounts. Status: Confirmed Entry: tool/opencode/account-and-plans/manage-provider-accounts Revision: 2 Digest: sha256:e8705180d91dec9d (changes whenever the content changes) Timeline: Created: 2026-11-13T03:56:22Z Last changed: 2026-11-19T13:35:20Z (active account rule: — → The newest account becomes active) Last verified: 2026-11-20T13:45:15Z Next check: 2026-11-21T13:45:15Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of switch command | opencode auth switch | [1] | 2026-11-20 list command | opencode auth list | [1] | 2026-11-20 logout command | opencode auth logout | [1] | 2026-11-20 TUI command | /connect | [1] | 2026-11-20 active account rule | The newest account becomes active | [1] | 2026-11-20 Sources: [1] opencode. "CLI providers | OpenCode". https://opencode.ai/docs/cli/providers/ Role: primary. Accessed: 2026-11-20T13:45:15Z Quote: "opencode auth switch anthropic work" (Supports: switch command) Quote: "opencode auth list" (Supports: list command) Quote: "opencode auth logout anthropic work" (Supports: logout command) Quote: "/connect provides the same add, activate, rename, and delete operations for saved accounts" (Supports: TUI command) Quote: "The newest account becomes active; switch the active account by its label or credential ID." (Supports: active account rule) Snapshot SHA-256: 2f51e91fe95057d92c9d63b1a7ccb930aa9ac87ae3f8ed633a97ab71ab72e47f (captured 2026-11-18T13:38:46Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:38:47Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:45:15Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:45:15Z Last attempt: 2026-11-20T13:45:15Z Notes and limitations: Extracted automatically from a single official source (section "Accounts"). Related: https://latestn.com/tool/opencode/account-and-plans/personal-vs-service-account-keys What is the difference between an opencode personal API key and a service account key? https://latestn.com/tool/opencode/account-and-plans/select-api-key-method How do I select an API-key authentication method when logging in to a provider in opencode? https://latestn.com/tool/opencode/account-and-plans/supported-payment-methods What payment methods does opencode Console billing support? https://latestn.com/tool/opencode/account-and-plans/chatgpt-plan-sign-in How do I use a ChatGPT Plus or Pro plan instead of an OpenAI API key in opencode? https://latestn.com/tool/opencode/account-and-plans/console-harness-api-key How do I get an API key for opencode Console harnesses? https://latestn.com/tool/opencode/account-and-plans/create-workspace How do I create a new workspace in OpenCode Console? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:35:20Z | changed | active account rule: — → The newest account becomes active | [1] 2026-11-19T13:35:20Z | changed | TUI command: — → /connect | [1] 2026-11-19T13:35:20Z | changed | TUI operations: /connect provides the same add, activate, rename, and delete operations for saved accounts. → — | [1] 2026-11-19T13:35:20Z | changed | logout command: opencode auth logout anthropic work → opencode auth logout | [1] 2026-11-19T13:35:20Z | changed | switch command: opencode auth switch anthropic work → opencode auth switch | [1] 2026-11-19T13:35:20Z | changed | active account: The newest account becomes active → — | [1] 2026-11-19T13:35:20Z | changed | account creation: Each successful API-key, OAuth, or command login creates a saved account. → — | [1] 2026-11-13T03:56:22Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/account-and-plans/manage-provider-accounts/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/opencode/account-and-plans/manage-provider-accounts POST: https://latestn.com/dispute/tool/opencode/account-and-plans/manage-provider-accounts with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/account-and-plans/manage-provider-accounts?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I manage multiple saved provider accounts in opencode? Revision 2, last verified 2026-11-20T13:45:15Z. https://latestn.com/tool/opencode/account-and-plans/manage-provider-accounts (accessed 2026-11-21T10:07:17Z). @misc{LatestN_tool_opencode_account_and_plans_manage_provider_accounts_r2, title = {How do I manage multiple saved provider accounts in opencode?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/account-and-plans/manage-provider-accounts}}, note = {Revision 2; digest sha256:e8705180d91dec9d; last verified 2026-11-20T13:45:15Z; accessed 2026-11-21T10:07:17Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/opencode/account-and-plans/manage-provider-accounts