Answer: The default port depends on the platform: 49374 on macOS, Linux, and WSL, and 28894 on Windows. Status: Confirmed Entry: tool/opencode/settings/default-web-port Revision: 1 Digest: sha256:f935aa9cdb36fcd0 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:56:31Z Last changed: 2026-11-13T03:56:31Z Last verified: 2026-11-20T13:45:27Z Next check: 2026-11-21T13:45:27Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Default port (macOS, Linux, WSL) | 49374 | [1] | 2026-11-20 Default port (Windows) | 28894 | [1] | 2026-11-20 Sources: [1] opencode. "Web | OpenCode". https://opencode.ai/docs/cli/web/ Role: primary. Accessed: 2026-11-20T13:45:27Z Quote: "macOS, Linux, and WSL 49374" (Supports: Default port (macOS, Linux, WSL)) Quote: "Windows 28894" (Supports: Default port (Windows)) 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:31Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:45:27Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:45:27Z Last attempt: 2026-11-20T13:45:27Z Notes and limitations: Extracted automatically from a single official source (section "Over SSH"). Related: https://latestn.com/tool/opencode/settings/disable-formatters How do I disable formatters in opencode? https://latestn.com/tool/opencode/settings/disable-plugins-wildcard How do I disable a plugin in opencode using a wildcard or minus prefix? https://latestn.com/tool/opencode/settings/disable-session-warming How do I disable session warming in opencode? https://latestn.com/tool/opencode/settings/custom-formatters How do I add a custom formatter in opencode? https://latestn.com/tool/opencode/settings/custom-provider-endpoint How do I configure a custom provider endpoint in opencode? https://latestn.com/tool/opencode/settings/custom-theme-files How do I create a custom theme file for opencode and what format does it use? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:56:31Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/settings/default-web-port/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/settings/default-web-port POST: https://latestn.com/dispute/tool/opencode/settings/default-web-port with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/settings/default-web-port?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What is the default port for the opencode web server? Revision 1, last verified 2026-11-20T13:45:27Z. https://latestn.com/tool/opencode/settings/default-web-port (accessed 2026-11-21T09:50:46Z). @misc{LatestN_tool_opencode_settings_default_web_port_r1, title = {What is the default port for the opencode web server?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/settings/default-web-port}}, note = {Revision 1; digest sha256:f935aa9cdb36fcd0; last verified 2026-11-20T13:45:27Z; accessed 2026-11-21T09:50:46Z} } 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/settings/default-web-port