Repository navigation
feat(cli): add no-auth serve option - #43069
opencode-agent[bot] wants to merge 5 commits into
Conversation
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
|
|
|
I run OpenCode2 behind Cloudflare Access, which I have configured to require GitHub login (and we auth using only my email address). OpenCode's password adds a second login to access the same instance. I'd ideally like to not have to type in a password that I can't remember on my phone when actioning something on the opencode web ui. An explicit auth-disable option would help here. It would be ideal if this also supported persisting it for serve --service 👀 |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
same I also protect it behind my own oidc SSO, it's far more hassle to access via mobile now could this be reopened and merged? still valid request as of #43039 and another implementation also closed too #46270 |
|
+1 from a real-world deployment that needs exactly this:
For localhost-bound services behind an auth proxy, upstream Basic auth adds |
Summary
opencode serve --no-authwhile keeping authentication enabled by defaultOPENCODE_AUTH=falsefor deployment and service configurationChecks
bun test test/process.test.ts(packages/server)bun typecheck(packages/server)bun typecheck(packages/cli)/api/healthwith both--no-authandOPENCODE_AUTH=falseCloses #43039
Requested by: @thdxr (Dax via Slack)