GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — OPENCODE_SERVER_PASSWORD breaks TUI startup with --mdns or --hostname · Issue #29847 · anomalyco/opencode

OPENCODE_SERVER_PASSWORD breaks TUI startup with --mdns or --hostname #29847

New issue
Copy link
New issue
Copy link
Closed
#29876
Closed
OPENCODE_SERVER_PASSWORD breaks TUI startup with --mdns or --hostname#29847
#29876
Copy link
Assignees
kitlangton

Description

@blairhudson
blairhudson
opened on May 29, 2026
Issue body actions

Setting OPENCODE_SERVER_PASSWORD breaks normal TUI startup when using --mdns or --hostname.

Repro

export OPENCODE_SERVER_PASSWORD=changeme123
opencode --mdns

Also fails with:

export OPENCODE_SERVER_PASSWORD=changeme123
opencode --hostname 0.0.0.0

Error

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.

Activity

  1. github-actions commented on May 29, 2026

    @github-actions
    github-actionsBot
    on May 29, 2026 – with GitHub Actions
    Contributor
    More actions

    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.
  2. github-actions
    assigned
    kitlangton
    on May 29, 2026
  3. OpeOginni commented on May 29, 2026

    @OpeOginni
    OpeOginni
    on May 29, 2026
    Contributor
    More actions

    I am able to reproduce, and I am looking at a fix!

    Reacted by Blair Hudson
  4. rekram1-node
    closed this as completedin #29876on Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kitlangton
    kitlangton

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.