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]: Adding Authentication to opencode server api #5256
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
If someone has an opencode server on a remote instance with a public URL, they should be able to simply add some sort of auth to it.
Maybe for serving opencode server --port 7800 --passkey super-shush-password
Then when attaching its added opencode run --attach https://opencode.com --passkey super-shush-password
Thinking of this as I plan to integrate just the server part of opencode as a service, but needs to make sure only the creator of an instance should have access.
I could work on this feature, but needs to be approved as needed.
Activity
github-actions commentedon Dec 8, 2025
This issue might be a duplicate of existing issues. Please check:
opencode serveInstance #878: Feature Request: Connect TUI to Existingopencode serveInstance - Addresses connecting to headless servers which would benefit from authentication--sessionflag toattachcommand to continue session via already running headless server #3165: Add--sessionflag toattachcommand to continue session via already running headless server - Related to remote server instance accessFeel free to ignore if none of these address your specific case.
rekram1-node commentedon Dec 8, 2025
I think someone made basic auth, their first pr caused issues but I think their new one should work
OpeOginni commentedon Dec 10, 2025
Cool cool, thank you
mynameistito commentedon Jan 13, 2026
was this a plugin, or PR?
ajoslin commentedon Jan 14, 2026
Simple SDK PR, I've linked it to this issue now. #4740
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.