You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cli: service configured with hostname 0.0.0.0 is unreachable when an HTTP proxy is set #49796
opencode service set hostname 0.0.0.0 (the remote-access setup opencode pair recommends) makes the local CLI unable to reach the service when an HTTP proxy is set.
The server writes its bind address to the registration file:
The client probes that url verbatim (packages/client/src/effect/service.ts: fetch(new URL("/api/status", info.url))) and reuses it as baseUrl, so with http_proxy set and 0.0.0.0 not in no_proxy the proxy answers 502 and the service looks unhealthy.
Desktop already rewrites the wildcard to loopback (packages/desktop/src/main/service/background-service.ts:53, #43171). The CLI does not.
Plugins
Local: ollama-peak-pricing, rtk.
OpenCode version
2.0.8
Steps to reproduce
opencode service set hostname 0.0.0.0 && opencode service restart
Activity
cestercian commentedon Sep 18, 2026
Looking into this — planning to rewrite wildcard bind addresses (0.0.0.0 / ::) to loopback for CLI client probes, matching the desktop path.
the4thamigo-uk commentedon Sep 22, 2026
I came across this issue also. #50533. Ill close my issue.