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
All endpoints tested return 401: /provider, /api/provider, /config/providers, /session, etc.
Impact
This breaks any third-party tool using the OpenCode SDK (@opencode-ai/sdk) to communicate with a local server. For example, Paseo can no longer integrate with OpenCode >= 1.15.0.
The SDK v1.16.2 supports HTTP auth via Config.auth (basic / bearer), but the server credentials are not discoverable:
No auth info in stdout/stderr
No auth tables in ~/.local/share/opencode/opencode.db
No relevant environment variables
The SDK does not auto-authenticate
Request
One of:
Add a --no-auth / --insecure flag for local development
Document how external SDK clients should authenticate (e.g., generate and expose a server token)
Update the SDK to auto-authenticate when connecting to a local server
No issue template was used. Please use one of the three available templates: Bug Report, Feature Request, or Question. Since this appears to be a combination of a bug report and feature request, consider filing them separately using the appropriate templates (Bug Report for the undiscoverable auth credentials, Feature Request for the --no-auth flag / token exposure).
Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
[FEATURE]: Support Bearer token authentication for opencode serve #24874: Support Bearer token authentication for opencode serve — covers the same core problem of SDK/external clients being unable to authenticate with opencode serve, and proposes similar solutions (Bearer token support, credential exposure)
Activity
github-actions commentedon Jun 7, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
--no-authflag / token exposure).Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
opencode serve, and proposes similar solutions (Bearer token support, credential exposure)If you believe this was flagged incorrectly, please let a maintainer know.
github-actions commentedon Jun 7, 2026
This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.
Feel free to open a new issue that follows our issue templates.