Repository navigation
API: a person's own AI connection - #1996
Merged
Merged
Conversation
On OpenBot Cloud CopilotKit provides no AI, so each person connects their own:
with a key or an address, or by signing in to a provider the server can sign in
to itself. It is theirs alone, follows them into every organization they are in,
and comes ahead of the organization's AI on their runs.
- getPersonalAiConnection, replacePersonalAiConnection and
deletePersonalAiConnection under people/{personId}/ai-connection, own only.
The answer says which AI the person's runs use (personal, organization or
none), whether one is required before they use OpenBot, whether they can set
their own here, and which providers the server can sign them in to.
- startPersonalAiSignIn and getPersonalAiSignIn: a sign-in the server runs,
whose key is kept for the person as a saved key and never reaches the browser.
- Scopes personal-ai-connection:read and personal-ai-connection:write.
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 21, 2026 22:48
tobysu111-art
referenced
this pull request
Nov 21, 2026
…uilds (#1989) * Desktop: OpenBot Cloud first and picked on the first screen, and on in release builds With OpenBot Cloud on, "Set up OpenBot" now leads with it. OpenBot Cloud is the first row and is picked when the window opens, with Sign in to OpenBot Cloud under the rows. OpenBot for Business follows, with its booker, and the link to connect to a company's own OpenBot. OpenBot (Self-Contained) moves to a smaller row under them that says what this computer needs and how long setup takes. Picked, it shows the full needs and Install as before. The order on screen is the order for the keyboard and a screen reader. Somebody who already chose this computer is not sent to Cloud: a relaunch that finds OpenBot installed, Back from Install, a setup failure and the choice asked for from Settings all open on Self-Contained. Release and candidate installers build with Cloud on. scripts/release-build.ts is the release build config, applied by vite.config.ts when desktop-version.ts has written a release build-version.json, as it does before every release installer, signed or not. Internal and pull request builds leave it off, and VITE_OPENBOT_CLOUD_ENABLED=false still turns it off in a release build. With the switch off the first screen is unchanged. * Changelog: OpenBot Desktop signs in to OpenBot Cloud from the first screen * Desktop layout tests: draw the vendored marks, so the clouds' tiles aren't empty * Desktop: say what OpenBot Cloud is, and put Book a demo in view OpenBot Cloud on Desktop is this app, connected to OpenBot Cloud where the person's Bots run, not a sign-in link with nothing installed. Its row now says "Use OpenBot here. Your Bots run in our cloud.", its detail says the app connects to OpenBot Cloud with the same account, Bots and conversations as my.open.bot, and the hand-off line says the browser opens to sign in or create an account and comes straight back. OpenBot for Business's calendar sits below its lists, past the bottom of the window, so nothing showed how to book until the card was scrolled. A Book a demo button under its first line now takes the card to the calendar and moves the focus to its heading. The layout test waits for the window's font before measuring lines, which a fallback face could wrap, and checks the booker: in view, reached by Book a demo, and whole inside the card scrolled to its end. * Desktop: Connect says this app connects to that OpenBot, and Business says Book a demo throughout * Desktop: Self-Contained at the foot of the first screen, and a friendlier address field With OpenBot Cloud on, the first screen steers to OpenBot Cloud and OpenBot for Business. OpenBot (Self-Contained) is no longer a row between them: it is one line at the foot of the card, below the sign-in, the booker or the address, "Want everything to run on this computer? Use OpenBot (Self-Contained)." Opened, it shows what this computer needs and Install there, with neither row picked. It is never picked to begin with, a relaunch on a computer that runs OpenBot included; only a failed setup on this computer opens on it, since the failure is its to show. The address field reads "Your company's OpenBot address", says "Ask your IT team or whoever set up OpenBot at your company for this address." under it, and its way out is Back, to the choices as the screen opened, not "Use OpenBot on this computer instead": every choice is this app on this computer. * Changelog: OpenBot Cloud on the first screen goes under Unreleased, after 1.1.3
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.
On OpenBot Cloud CopilotKit provides no AI. Each person connects their own, and that connection is theirs, not their organization's, unless an admin sets an AI for the whole organization. This adds the API for it.
A person's own AI connection (
people/{personId}/ai-connection, own only)getPersonalAiConnection: the person's own connection (never a key), the organization's as a member may know it (ready, provider), which AI their runs use (personal,organizationornone), whether one isrequiredbefore they use OpenBot, whether they can set their own here (available), and the providers the server can sign them in to (signIns).replacePersonalAiConnection: the sameAiConnectionInputthe organization's connection takes, checked with the provider before anything is saved. A plan or a sign-in held on one computer is refused: the server runs the person's Bots.deletePersonalAiConnection: back to the organization's AI.A sign-in the server runs (
startPersonalAiSignIn,getPersonalAiSignIn): the person approves it in their browser; the key the provider hands back is kept for them as a saved key and never reaches the browser, and connecting withuseSavedKeyuses it.New scopes:
personal-ai-connection:read,personal-ai-connection:write.Where an organization's AI is the only one (self-hosted, OpenBot Desktop on its own),
availableandrequiredare false and nothing changes.Tests:
api/openapi-ai-connection.test.tsholds the new operations to own-only, their scopes and Idempotency-Key, no key in any answer, and every example to the generated client.