opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Open WebUI command not working on WSL

Open pablo-kitz opened this issue 3 weeks ago • 11 comments

Description

Im running arch linux in WSL and when launching the web ui from the command, it opens http://opencode.internal/ on the browser with the "This site can’t be reached" page.

Launching opencode web works just fine.

Plugins

No response

OpenCode version

1.1.10

Steps to reproduce

Run opencode in WSL Run Open WebUI command

Screenshot and/or share link

No response

Operating System

Windows 11, Arch Linux WSL

Terminal

Alacritty

pablo-kitz avatar Jan 10 '26 02:01 pablo-kitz

This issue might be a duplicate of existing issues. Please check:

  • #6941: [FEATURE]: WSL support connection and SSH forwarding - discusses WSL support needs for the desktop app
  • #5635: feat(desktop): Add option to run OpenCode backend via WSL on Windows - requests WSL backend support for the desktop app, which appears to be related to the 'Open WebUI' command not working on WSL

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Jan 10 '26 02:01 github-actions[bot]

same here, with opencode v1.1.11

lclbm avatar Jan 10 '26 05:01 lclbm

Same here on my bare Arch Linux, I think it is not WSL related.

heddxh avatar Jan 10 '26 06:01 heddxh

same here on my windows 10 (no wsl)

HustCoderHu avatar Jan 10 '26 09:01 HustCoderHu

same on macOS 26.2 (25C56)

Makishima avatar Jan 10 '26 12:01 Makishima

same here in linux. installed whit bun

arpagon avatar Jan 10 '26 13:01 arpagon

Same on Arch Linux, 1.1.12

germanoeich avatar Jan 10 '26 17:01 germanoeich

same on mac os 26.2 it opens http://opencode.internal/ and not working only way is to do opencode serve to run it manualy

Altamimi-Dev avatar Jan 11 '26 12:01 Altamimi-Dev

same on macOS 15.3.2 ,1.1.13

CoderXiaohui avatar Jan 11 '26 12:01 CoderXiaohui

macOS - 15.7.2 OpenCode 1.1.14

stark-bit avatar Jan 12 '26 10:01 stark-bit

Version 1.1.7 worked.

Is there a workaround?

zbynekwinkler avatar Jan 12 '26 11:01 zbynekwinkler

same on version 1.1.15

kurob1993 avatar Jan 13 '26 08:01 kurob1993

This just might be on purpose due to fixing https://cy.md/opencode-rce/ (https://news.ycombinator.com/item?id=46581095)

Previous versions of OpenCode started a server which allowed any website visited in a web browser to execute arbitrary commands on the local machine. Make sure you are using v1.1.10 or newer;

zbynekwinkler avatar Jan 13 '26 17:01 zbynekwinkler

See also

  • #6355

zbynekwinkler avatar Jan 13 '26 17:01 zbynekwinkler