Repository navigation
API: a Claude sign-in can redirect to OpenBot Desktop's loopback port - #2035
Merged
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 22, 2026 19:06
davidmckayv
force-pushed
the
api/sign-in-loopback-port
branch
from
November 22, 2026 19:15
573abee to
334fa54
Compare
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
force-pushed
the
api/sign-in-loopback-port
branch
from
November 22, 2026 19:22
334fa54 to
58fcecf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
startPersonalAiSignIntakes an optionalloopbackPort(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 thecode#statethat arrives withfinishPersonalAiSignIn, 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>/callbackas well as that code page, and Desktop can listen on a loopback port, so that paste step can go.Compatibility
localhost:1455, and Desktop listens there without any change to the API.Order
This is the spec step. The server side lands next, pinned to this commit on main. The screens come after that.