Answer: In opencode's TUI, you connect a provider using the /connect command, which supports API keys, OAuth, and provider authentication commands. For example, select OpenAI, then Codex device code (legacy), and run /connect again to add another account. Status: Confirmed Entry: tool/opencode/integrations/connect-provider-tui Revision: 2 Digest: sha256:27809a668292cb9b (changes whenever the content changes) Timeline: Created: 2026-11-13T03:56:20Z Last changed: 2026-11-18T13:38:46Z (add another account: — → /connect) Last verified: 2026-11-20T13:45:13Z Next check: 2026-11-21T13:45:13Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of command | /connect | [1] | 2026-11-20 example provider | OpenAI | [1] | 2026-11-20 add another account | /connect | [1] | 2026-11-20 OAuth open key | o | [1] | 2026-11-20 Sources: [1] opencode. "CLI providers | OpenCode". https://opencode.ai/docs/cli/providers/ Role: primary. Accessed: 2026-11-20T13:45:13Z Quote: "The TUI supports API keys, OAuth, and provider authentication commands. OAuth opens an authorization URL or shows a code to enter; press o to open the URL and c to copy the authorization details. Copy Copied Failed /connect" (Supports: command) Quote: "Select OpenAI, then Codex device code (legacy)." (Supports: example provider) Quote: "Run /connect again to add another account." (Supports: add another account) Quote: "press o to open the URL and c to copy the authorization details." (Supports: OAuth open key) 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:46Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:45:13Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:45:13Z Last attempt: 2026-11-20T13:45:13Z Notes and limitations: Extracted automatically from a single official source (section "TUI"). Related: https://latestn.com/tool/opencode/integrations/console-api-endpoints What API endpoints does opencode Console expose for accessing models? https://latestn.com/tool/opencode/integrations/console-mcp What is the OpenCode Console MCP integration in Pi? https://latestn.com/tool/opencode/integrations/console-mcp-claude-code How do I set up the Console MCP for Claude Code? https://latestn.com/tool/opencode/integrations/configure-opencode-provider How do I configure OpenCode Zen or OpenCode Go as the provider in Hermes? https://latestn.com/tool/opencode/integrations/connect-identity-provider How do I connect Okta or Microsoft Entra ID to opencode directory sync? https://latestn.com/tool/opencode/integrations/connect-provider-account How do I connect a provider account in opencode Console? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:38:46Z | changed | add another account: — → /connect | [1] 2026-11-18T13:38:46Z | changed | account list actions: activate, rename, or delete a saved account → — | [1] 2026-11-18T13:38:46Z | changed | OAuth copy key: c → — | [1] 2026-11-18T13:38:46Z | changed | supported auth methods: API keys, OAuth, and provider authentication commands → — | [1] 2026-11-13T03:56:20Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/integrations/connect-provider-tui/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/integrations/connect-provider-tui POST: https://latestn.com/dispute/tool/opencode/integrations/connect-provider-tui with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/integrations/connect-provider-tui?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I connect a provider in opencode's TUI? Revision 2, last verified 2026-11-20T13:45:13Z. https://latestn.com/tool/opencode/integrations/connect-provider-tui (accessed 2026-11-21T09:53:27Z). @misc{LatestN_tool_opencode_integrations_connect_provider_tui_r2, title = {How do I connect a provider in opencode's TUI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/integrations/connect-provider-tui}}, note = {Revision 2; digest sha256:27809a668292cb9b; last verified 2026-11-20T13:45:13Z; accessed 2026-11-21T09:53:27Z} } 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/integrations/connect-provider-tui