OPENCODE_SERVER_PASSWORD设置时,远程启动opencode server,desktop无法连接。 #7286

Open
opened 2026-02-16 18:06:42 -05:00 by yindo · 4 comments
Owner

Originally created by @awan0708ni-lab on GitHub (Jan 23, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

When OPENCODE_SERVER_PASSWORD is set, remotely starting the opencode server makes the desktop unable to connect.
Version: 1.1.32。
Linux 服务器安装opencode server,开启OPENCODE_SERVER_PASSWORD, 设置了具体的域名,chrome能正常连接,也能提示用户名和密码的输入,但是desktop端设置远程服务器时无法支持带用户名和密码。

Plugins

No response

OpenCode version

1.1.32

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

服务端 linux,客户端 win10

Terminal

No response

Originally created by @awan0708ni-lab on GitHub (Jan 23, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description When OPENCODE_SERVER_PASSWORD is set, remotely starting the opencode server makes the desktop unable to connect. Version: 1.1.32。 Linux 服务器安装opencode server,开启OPENCODE_SERVER_PASSWORD, 设置了具体的域名,chrome能正常连接,也能提示用户名和密码的输入,但是desktop端设置远程服务器时无法支持带用户名和密码。 ### Plugins _No response_ ### OpenCode version 1.1.32 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System 服务端 linux,客户端 win10 ### Terminal _No response_
yindo added the windowsbugweb labels 2026-02-16 18:06:42 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 23, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #8676: Plugin client returns 401 Unauthorized when OPENCODE_SERVER_PASSWORD is set (Desktop) - Directly addresses Desktop app unable to connect when password is set
  • #9706: Plugin client missing Authorization header when OPENCODE_SERVER_PASSWORD is set - Related authentication header issue
  • #9066: Failing to authenticate into web UI when username or password is set - General authentication failure with password
  • #9011: Cannot 'attach' to an opencode server with a password - Related authentication issue for attach command

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 23, 2026): This issue might be a duplicate of existing issues. Please check: - #8676: Plugin client returns 401 Unauthorized when OPENCODE_SERVER_PASSWORD is set (Desktop) - Directly addresses Desktop app unable to connect when password is set - #9706: Plugin client missing Authorization header when OPENCODE_SERVER_PASSWORD is set - Related authentication header issue - #9066: Failing to authenticate into web UI when username or password is set - General authentication failure with password - #9011: Cannot 'attach' to an opencode server with a password - Related authentication issue for attach command Feel free to ignore if none of these address your specific case.
Author
Owner

@Enffun-EL commented on GitHub (Jan 27, 2026):

Has this been resolved? What should be done to establish a connection?

@Enffun-EL commented on GitHub (Jan 27, 2026): Has this been resolved? What should be done to establish a connection?
Author
Owner

@LeonMueller-OneAndOnly commented on GitHub (Jan 31, 2026):

This issue is solved by #9095

@LeonMueller-OneAndOnly commented on GitHub (Jan 31, 2026): This issue is solved by #9095
Author
Owner

@ftufkc commented on GitHub (Feb 9, 2026):

It seems that when adding serve in the Windows client, I did not find a place to enter the account password.

@ftufkc commented on GitHub (Feb 9, 2026): It seems that when adding serve in the Windows client, I did not find a place to enter the account password.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7286