Answer: You redeem a pairing code by making a GET request to /auth/connect/{code}, passing the code as a required path parameter. Browsers receive a session cookie and a redirect to the web app, while requests that accept JSON receive a session token to use as the password. Status: Confirmed Entry: tool/opencode/integrations/redeem-pairing-code Revision: 4 Digest: sha256:5d99bb05697c0b93 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:55:31Z Last changed: 2026-11-18T13:37:56Z (operation ID: — → server.connect) Last verified: 2026-11-20T13:44:17Z Next check: 2026-11-21T13:44:17Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of endpoint | /auth/connect/{code} | [1] | 2026-11-20 parameter | code | [1] | 2026-11-20 browser behavior | Browsers receive a session cookie and a redirect to the web app | [1] | 2026-11-20 JSON behavior | requests that accept JSON receive a session token to use as the password | [1] | 2026-11-20 operation ID | server.connect | [1] | 2026-11-20 Sources: [1] opencode. "API | OpenCode". https://opencode.ai/docs/api Role: primary. Accessed: 2026-11-20T13:44:17Z Quote: "get /auth/connect/{code} Redeem pairing code" (Supports: endpoint) Quote: "code path string Required" (Supports: parameter) Quote: "Browsers receive a session cookie and a redirect to the web app" (Supports: browser behavior) Quote: "requests that accept JSON receive a session token to use as the password" (Supports: JSON behavior) Quote: "Operation ID server.connect" (Supports: operation ID) Snapshot SHA-256: c91807bd273f8c1b4e42b17b65a46d3e17fc5565dd7e358171b7afe48cf0de5c (captured 2026-11-18T13:37:54Z) 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:37:56Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:44:17Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:44:17Z Last attempt: 2026-11-20T13:44:17Z Notes and limitations: Extracted automatically from a single official source (section "Server"). Related: https://latestn.com/tool/opencode/integrations/register-hooks-in-setup How do I register hooks in setup for an opencode V2 plugin? https://latestn.com/tool/opencode/integrations/replace-plugin-entrypoint How do I replace the entrypoint when porting an opencode V1 plugin to V2? https://latestn.com/tool/opencode/integrations/rpc-schema-validation How do I validate RPC input and output schemas in opencode Effect plugins? https://latestn.com/tool/opencode/integrations/publish-plugin How do I publish an opencode plugin? https://latestn.com/tool/opencode/integrations/raycast-console-mcp-server How do I add the OpenCode Console MCP server in Raycast? https://latestn.com/tool/opencode/integrations/raycast-extension-api-key-setup How do I configure the OpenCode extension for Raycast with an API key? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:37:56Z | changed | operation ID: — → server.connect | [1] 2026-11-18T13:37:56Z | changed | JSON behavior: — → requests that accept JSON receive a session token to use as the password | [1] 2026-11-18T13:37:56Z | changed | browser behavior: — → Browsers receive a session cookie and a redirect to the web app | [1] 2026-11-18T13:37:56Z | changed | parameter: — → code | [1] 2026-11-18T13:37:56Z | changed | endpoint: — → /auth/connect/{code} | [1] 2026-11-18T13:37:56Z | changed | JSON result: session token to use as the password → — | [1] 2026-11-18T13:37:56Z | changed | Browser result: session cookie and a redirect to the web app → — | [1] 2026-11-18T13:37:56Z | changed | Parameter: code → — | [1] 2026-11-18T13:37:56Z | changed | Endpoint: /auth/connect/{code} → — | [1] 2026-11-17T14:10:09Z | changed | Browser result: — → session cookie and a redirect to the web app | [1] 2026-11-17T14:10:09Z | changed | Parameter: — → code | [1] 2026-11-17T14:10:09Z | changed | Endpoint: — → /auth/connect/{code} | [1] 2026-11-17T14:10:09Z | changed | JSON result: session token → session token to use as the password | [1] 2026-11-17T14:10:09Z | changed | browser result: session cookie → — | [1] 2026-11-17T14:10:09Z | changed | operation ID: server.connect → — | [1] 2026-11-17T14:10:09Z | changed | parameter: code → — | [1] 2026-11-17T14:10:09Z | changed | endpoint: /auth/connect/{code} → — | [1] 2026-11-13T13:28:24Z | changed | JSON result: — → session token | [1] 2026-11-13T13:28:24Z | changed | browser result: — → session cookie | [1] 2026-11-13T13:28:24Z | changed | operation ID: — → server.connect | [1] 2026-11-13T13:28:24Z | changed | JSON behavior: requests that accept JSON receive a session token to use as the password → — | [1] 2026-11-13T13:28:24Z | changed | browser behavior: Browsers receive a session cookie and a redirect to the web app → — | [1] 2026-11-13T03:55:31Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/integrations/redeem-pairing-code/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/redeem-pairing-code POST: https://latestn.com/dispute/tool/opencode/integrations/redeem-pairing-code with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/integrations/redeem-pairing-code?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I redeem an opencode pairing code? Revision 4, last verified 2026-11-20T13:44:17Z. https://latestn.com/tool/opencode/integrations/redeem-pairing-code (accessed 2026-11-21T09:50:35Z). @misc{LatestN_tool_opencode_integrations_redeem_pairing_code_r4, title = {How do I redeem an opencode pairing code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/integrations/redeem-pairing-code}}, note = {Revision 4; digest sha256:5d99bb05697c0b93; last verified 2026-11-20T13:44:17Z; accessed 2026-11-21T09:50:35Z} } 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/redeem-pairing-code