OPENCODE_SERVER_PASSWORD in env prevents user from working in TUI #5238

Closed
opened 2026-02-16 17:50:23 -05:00 by yindo · 0 comments
Owner

Originally created by @LeonMueller-OneAndOnly on GitHub (Jan 13, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @LeonMueller-OneAndOnly on GitHub (Jan 13, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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
yindo added the opentuibug labels 2026-02-16 17:50:23 -05:00
yindo closed this issue 2026-02-16 17:50:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5238