Skip to content

feat(sdk): basic auth in opencode sdk, with relative url support - #4740

Closed
ajoslin wants to merge 3 commits into
anomalyco:devfrom
ajoslin:support-basic-auth-2
Closed

ajoslin wants to merge 3 commits into
anomalyco:devfrom
ajoslin:support-basic-auth-2

Conversation

@ajoslin

@ajoslin ajoslin commented Nov 25, 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]".


Fixes #4697 issues

fixes #5256

@rekram1-node

Copy link
Copy Markdown
Collaborator

/review

@github-actions

Copy link
Copy Markdown
Contributor

lgtm

@ajoslin

ajoslin commented Jan 14, 2026

Copy link
Copy Markdown
Contributor Author

@rekram1-node any chance we get this merged?

@github-actions

Copy link
Copy Markdown
Contributor

Hey! Your PR title Support basic auth in opencode sdk, with relative url support doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@ajoslin ajoslin changed the title Support basic auth in opencode sdk, with relative url support feat(sdk): basic auth in opencode sdk, with relative url support Jan 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@ajoslin

ajoslin commented Jan 14, 2026

Copy link
Copy Markdown
Contributor Author

Fixes #5256

@henry701

henry701 commented Feb 2, 2026

Copy link
Copy Markdown

yeah gang this needs to be merged for attach to be usable with a shred of security

@github-actions

github-actions Bot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Apr 3, 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.

[FEATURE]: Adding Authentication to opencode server api

3 participants