Problem
When OPENCODE_SERVER_PASSWORD is set on the server, opencode attach cannot authenticate and returns 404 page not found.
The opencode attach CLI does not currently support passing credentials — there is no -p/--password flag, and setting OPENCODE_SERVER_PASSWORD as a client-side environment variable does not get sent as HTTP Basic Auth headers.
Upstream Issue
This is a known limitation tracked upstream:
Current Workaround
Disable password protection (OPENCODE_SERVER_PASSWORD) and rely on Tailscale VPN for access control instead.
Expected Resolution
Once upstream adds client-side auth support for opencode attach, update our documentation and .env.example to reflect the correct usage.
Problem
When
OPENCODE_SERVER_PASSWORDis set on the server,opencode attachcannot authenticate and returns404 page not found.The
opencode attachCLI does not currently support passing credentials — there is no-p/--passwordflag, and settingOPENCODE_SERVER_PASSWORDas a client-side environment variable does not get sent as HTTP Basic Auth headers.Upstream Issue
This is a known limitation tracked upstream:
Current Workaround
Disable password protection (
OPENCODE_SERVER_PASSWORD) and rely on Tailscale VPN for access control instead.Expected Resolution
Once upstream adds client-side auth support for
opencode attach, update our documentation and.env.exampleto reflect the correct usage.