Skip to content

feat(cli): pair with direct server links - #49971

Merged
nexxeln merged 2 commits into
v2from
pair-url
Sep 22, 2026
Merged

nexxeln merged 2 commits into
v2from
pair-url

Conversation

@nexxeln

@nexxeln nexxeln commented Sep 19, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Make opencode pair print and encode a direct /connect URL for the advertised server.
  • Keep credentials in the URL fragment so they are not included in the initial HTTP request.
  • Let the app QR scanner accept direct pairing URLs as well as legacy raw JSON and query links.
  • Document the direct pairing link.

Builds on #49291, now merged into v2.

Link format

http://<advertised-server>/connect#<base64url({ username: "opencode", password })>

The /connect page derives the server address from the URL origin, saves the credentials, and then starts authenticated requests. opencode pair --url <url> uses that URL as the direct link origin.

Validation

  • App pairing URL and scanner tests — 11 passed.
  • App typecheck — passed.
  • CLI typecheck — passed.
  • CLI web-shell/authentication tests — 2 passed.
  • Documentation typecheck and generated-file check — passed.

@opencode-agent opencode-agent Bot changed the title feat(cli): pair with a scannable app.opencode.ai link feat(cli): pair with direct server links Sep 22, 2026
Base automatically changed from device-pairing to v2 September 22, 2026 08:24
@nexxeln
nexxeln merged commit 788f0af into v2 Sep 22, 2026
10 checks passed
@nexxeln
nexxeln deleted the pair-url branch September 22, 2026 14:34
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.

2 participants