You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]:[v2] add no password flag for "opencode2 serve" #43039
It appears you can start with serve --service which does not print out a password, but still requires one (aka requests get a 401 status). #46270 contains a possible fix
Thanks for the suggestion, @Victozee26! You're asking for a way to run opencode serve in v2 without authentication, such as a --no-auth / --no-password flag, or no auth by default as in v1.
In v2 the server always requires a password; this is intentional. If none is set, it generates a random one when it starts and prints it. Turning auth off has security implications, especially when the server is reachable from other machines, so maintainers will need to weigh it up. They'll consider the request.
In the meantime, you can avoid a new random password on every run by setting a fixed one through an environment variable:
Some of us run this service at home on a local network with no other users, so auth is pointless. And we use a VPN to connect to home in order to access it. Please give a way to disable auth.
Reacted by Atheon, Thibault Bétrémieux, Victor Elijha, Marek Linka, rghvdberg, Aleksandrs, Andrey Torres Calderón, Eugene Paniot, i3ym and Francis
Activity
Victozee26 commentedon Aug 17, 2026
some plugins like
https://acode.app/plugin/com.victozee.opencode
uses serve
Zerquix18 commentedon Sep 21, 2026
+1 really tired of trying to use the web UI and having to copy+paste the password. The browser won't remember it for some reason
dekarl commentedon Sep 21, 2026
It appears you can start with
serve --servicewhich does not print out a password, but still requires one (aka requests get a 401 status).#46270 contains a possible fix
opencodejr commentedon Oct 28, 2026
Thanks for the suggestion, @Victozee26! You're asking for a way to run
opencode servein v2 without authentication, such as a--no-auth/--no-passwordflag, or no auth by default as in v1.In v2 the server always requires a password; this is intentional. If none is set, it generates a random one when it starts and prints it. Turning auth off has security implications, especially when the server is reachable from other machines, so maintainers will need to weigh it up. They'll consider the request.
In the meantime, you can avoid a new random password on every run by setting a fixed one through an environment variable:
Clients then use that same password (username
opencodefor HTTP Basic auth).sxflynn commentedon Oct 29, 2026
Some of us run this service at home on a local network with no other users, so auth is pointless. And we use a VPN to connect to home in order to access it. Please give a way to disable auth.