opencode icon indicating copy to clipboard operation
opencode copied to clipboard

OPENCODE_SERVER_PASSWORD in env prevents user from working in TUI

Open LeonMueller-OneAndOnly opened this issue 2 days ago • 1 comments

Description

When setting the OPENCODE_SERVER_PASSWORD variable in the env file, the TUI cannot be used anymore.

This is the cli output:

➜  git:(master) opencode
Unauthorized

➜  git:(master) opencode --hostname 127.0.0.1 --port 4096
^[[?2027;0$y^[[?2031;0$y^[[?1004;2$y^[[?2004;2$y^[[?2026;0$yUnauthorized
^[[?2027;0$y^[[?2031;0$y^[[?1004;2$y^[[?2004;2$y^[[?2026;0$y^[[1;1R%

It would be desirable to be able to start opencode in the tui and also keep the web gui open (for notification sounds, checking in from other devices when networking is set up, personal preferences about using tui and web-gui concurrently, ...)

Plugins

No response

OpenCode version

1.1.16

Steps to reproduce

  1. Run OPENCODE_SERVER_PASSWORD='secure-password' opencode

Screenshot and/or share link

No response

Operating System

macOS Sequoia

Terminal

Cursor / VSCode

LeonMueller-OneAndOnly avatar Jan 13 '26 09:01 LeonMueller-OneAndOnly