Skip to content

API: a Claude sign-in can redirect to OpenBot Desktop's loopback port - #2035

Merged
davidmckayv merged 1 commit into
mainfrom
api/sign-in-loopback-port
Nov 22, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
api/sign-in-loopback-port

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

What

startPersonalAiSignIn takes an optional loopbackPort (1024 to 65535).

For a Claude sign-in, the server then sends the browser to http://localhost:{loopbackPort}/callback, where OpenBot Desktop listens on the person's own computer. Without it, the browser goes to Claude's page that shows a code to copy. The app sends the code#state that arrives with finishPersonalAiSignIn, the call it uses today. The person copies nothing.

Why

On OpenBot Cloud inside OpenBot Desktop, a Claude plan sign-in ends on a page with a code the person has to paste back. Claude Code's client accepts http://localhost:<port>/callback as well as that code page, and Desktop can listen on a loopback port, so that paste step can go.

Compatibility

  • Additive and optional. A request without the field works exactly as before.
  • Every provider other than Claude ignores the field. ChatGPT's browser sign-in already redirects to localhost:1455, and Desktop listens there without any change to the API.
  • In a plain browser nothing changes. Nothing can listen on the person's computer there, so Claude's page still shows the code.

Order

This is the spec step. The server side lands next, pinned to this commit on main. The screens come after that.

startPersonalAiSignIn takes an optional loopbackPort. For Claude, the server then sends the browser to http://localhost:{loopbackPort}/callback, where OpenBot Desktop listens, instead of Claude's page that shows a code to copy. The app sends the code and state that arrive there with finishPersonalAiSignIn, so nobody pastes anything. Additive and optional: a request without it works as before, and every other provider ignores it.
@davidmckayv
davidmckayv force-pushed the api/sign-in-loopback-port branch from 334fa54 to 58fcecf Compare November 22, 2026 19:22
@davidmckayv
davidmckayv merged commit 3cfa55a into main Nov 22, 2026
22 checks passed
@davidmckayv
davidmckayv deleted the api/sign-in-loopback-port branch November 22, 2026 19:28
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.

1 participant