Answer: Forward the server's port from your machine with SSH and open the printed link locally, e.g. `ssh -L 49374:127.0.0.1:49374 my-server`. By default the server listens only on localhost, with port 49374 on macOS, Linux, and WSL and 28894 on Windows. Status: Confirmed Entry: tool/opencode/troubleshooting/web-ui-over-ssh Revision: 1 Digest: sha256:03dc290a614f6803 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:56:30Z Last changed: 2026-11-13T03:56:30Z Last verified: 2026-11-20T13:45:26Z Next check: 2026-11-21T13:45:26Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of SSH command | ssh -L 49374:127.0.0.1:49374 my-server | [1] | 2026-11-20 Default port (macOS, Linux, WSL) | 49374 | [1] | 2026-11-20 Default port (Windows) | 28894 | [1] | 2026-11-20 Status command | opencode service status | [1] | 2026-11-20 Printed address example | http://127.0.0.1:49374 | [1] | 2026-11-20 Sources: [1] opencode. "Web | OpenCode". https://opencode.ai/docs/cli/web/ Role: primary. Accessed: 2026-11-20T13:45:26Z Quote: "$ ssh -L 49374:127.0.0.1:49374 my-server" (Supports: SSH command) Quote: "macOS, Linux, and WSL 49374" (Supports: Default port (macOS, Linux, WSL)) Quote: "Windows 28894" (Supports: Default port (Windows)) Quote: "Print the current address with opencode service status" (Supports: Status command) Quote: "$ opencode service status http://127.0.0.1:49374" (Supports: Printed address example) Snapshot SHA-256: 975b058ba59e5517eea85b392581d05bcdcc7a30bf76dd358ed2e093ea6584bb (captured 2026-11-13T03:56:29Z) 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-13T03:56:30Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:45:26Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:45:26Z Last attempt: 2026-11-20T13:45:26Z Notes and limitations: Extracted automatically from a single official source (section "Over SSH"). Related: https://latestn.com/tool/windsurf/account-and-plans/cancel-paid-plan How do I cancel my paid Windsurf plan? https://latestn.com/tool/windsurf/account-and-plans/remote-indexing-plan-availability Which Windsurf plans include Remote Indexing? https://latestn.com/tool/windsurf/account-and-plans/update-billing-info How do I update my payment or billing information in Windsurf? https://latestn.com/tool/opencode/troubleshooting/read-logs How do I read opencode logs to debug an issue? https://latestn.com/tool/opencode/troubleshooting/verify-network-config How do I verify that opencode's network and proxy configuration is working? https://latestn.com/tool/opencode/troubleshooting/verify-ported-plugin How do I verify a ported opencode plugin works in V2? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:56:30Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/troubleshooting/web-ui-over-ssh/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/troubleshooting/web-ui-over-ssh POST: https://latestn.com/dispute/tool/opencode/troubleshooting/web-ui-over-ssh with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/troubleshooting/web-ui-over-ssh?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I access the opencode web UI over SSH? Revision 1, last verified 2026-11-20T13:45:26Z. https://latestn.com/tool/opencode/troubleshooting/web-ui-over-ssh (accessed 2026-11-21T09:53:11Z). @misc{LatestN_tool_opencode_troubleshooting_web_ui_over_ssh_r1, title = {How do I access the opencode web UI over SSH?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/troubleshooting/web-ui-over-ssh}}, note = {Revision 1; digest sha256:03dc290a614f6803; last verified 2026-11-20T13:45:26Z; accessed 2026-11-21T09:53:11Z} } 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/troubleshooting/web-ui-over-ssh