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
OPENCODE_SERVER_PASSWORD breaks TUI startup with --mdns or --hostname #29847
Error: 4 of 6 requests failed:
config.providers: opencode server GET http://0.0.0.0:4096/config/providers?... → 401 Unauthorized
provider.list: opencode server GET http://0.0.0.0:4096/provider?... → 401 Unauthorized
app.agents: opencode server GET http://0.0.0.0:4096/agent?... → 401 Unauthorized
config.get: opencode server GET http://0.0.0.0:4096/config?... → 401 Unauthorized
Expected
TUI should start successfully.
If OPENCODE_SERVER_PASSWORD enables Basic auth, internal TUI requests should include auth or otherwise work.
Why it matters
--mdns and --hostname 0.0.0.0 expose OpenCode on LAN. Password auth should be usable with those modes.
This issue might be a duplicate of existing issues. Please check:
opencode run fails with Session not found when OPENCODE_SERVER_PASSWORD is set #24204: Same root cause — OPENCODE_SERVER_PASSWORD causes the internal client to receive 401 Unauthorized from its own in-process server. That issue covers opencode run; this one covers the TUI with --mdns/--hostname, but the underlying problem appears to be the same.
Activity
github-actions commentedon May 29, 2026
This issue might be a duplicate of existing issues. Please check:
OPENCODE_SERVER_PASSWORDcauses the internal client to receive 401 Unauthorized from its own in-process server. That issue coversopencode run; this one covers the TUI with--mdns/--hostname, but the underlying problem appears to be the same.OpeOginni commentedon May 29, 2026
I am able to reproduce, and I am looking at a fix!