Skip to content

Support basic auth in opencode sdk - #4697

Merged
rekram1-node merged 1 commit into
anomalyco:devfrom
ajoslin:support-basic-auth
Nov 24, 2025
Merged

rekram1-node merged 1 commit into
anomalyco:devfrom
ajoslin:support-basic-auth

Conversation

@ajoslin

@ajoslin ajoslin commented Nov 24, 2025 •

Copy link
Copy Markdown
Contributor

Usecase: I have an opencode server running in a secure environment, and I want to expose it via tunnel. Currently, everything is public by default. With this, I add basic auth to the tunnel, then can connect via opencode attach "https://user:[email protected]".

@rekram1-node
rekram1-node merged commit b9253d0 into anomalyco:dev Nov 24, 2025
2 of 3 checks passed
@zenyr

zenyr commented Nov 25, 2025

Copy link
Copy Markdown
Contributor

note: this might be causing a regression with opencode web (t.baseURL === '/' -> new URL('/') = Error )
@ajoslin @rekram1-node v1.0.110

@rekram1-node

Copy link
Copy Markdown
Collaborator

yup it did, reverting

@ajoslin

ajoslin commented Nov 25, 2025

Copy link
Copy Markdown
Contributor Author

Opened #4740 for relative URL support

@ajoslin
ajoslin deleted the support-basic-auth branch November 25, 2025 16:03
github-actions Bot pushed a commit to yuguorui/opencode that referenced this pull request Jan 18, 2026
github-actions Bot pushed a commit to yuguorui/opencode that referenced this pull request Jan 18, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants