save_sign_in on the ask, your user can let the browser keep the password they sign in with, and the agent’s sign_in uses it from then on.
Ask with save_sign_in
save_sign_in: true to request_human the same way.
What your user sees
Once their sign-in went through on the link’s page (the password field is gone), the link asks:Let this browser sign in to mail.example.com by itself next time? Acme can then sign in to mail.example.com as ana@example.com without asking you. The password stays in this browser, encrypted, and nobody can read it back, Acme included.Let it sign in keeps it; Not now doesn’t. Done waits for the answer. It is offered only on the sites the link is for, only while the ask waits, and only to the link’s guest: an embed is never offered it.
What happens next
- The browser keeps the password in its own keyring, encrypted, as a password its owner saved. The agent’s
sign_intypes it and submits the form; the password never appears in a tool result. - No route returns it.
GET /v1/browsers/{id}/sign_inslists the browser’s saved sign-ins with their site, username andsaved_by(linkfor these), never a password. - An ask with
save_sign_inopens in a new sealed tab on itsurl, or on the page of thetabyou name; the ask’stabis that new tab. A sealed tab is one the browser opens itself: no other window can reach it, andjavascript_toolnever runs in it, nor in any window it opens. It opens only web pages (nodata:orjavascript:addresses). Read it withread_page,find,get_page_textor a screenshot. - While your user is on that tab, your tools that read it, take its picture or act on it wait until they’re done (their link ends or they leave the tab), within the call’s limit, and then say the person is signing in.
computerwithwait,tabs_context_mcpandread_network_requests(which records no bodies) still answer. Meanwhile the tab’s title is its site’s host everywhere you see it (tabs_context_mcp, list_connected_browsers,/v1tabs, asks and events), since a page can put what is typed into its title. When they’re done, what they typed in a password field and didn’t send is cleared from the page, and from any page of that tab you go back or forward to; a value they typed into a password field is cleared wherever the page sets it again, and the site’s sessionStorage on that tab is cleared. A site that writes the typed password to its localStorage or its own server keeps it there, and may show it again on a later page: that is the site’s own doing, and out of Hotkey’s reach. A password field’s value always reads as••••••••. The tab stays sealed after a restart. - The offer comes only in that sealed tab, and not while a service worker of the site runs that wasn’t there before your agent’s first script on it. Otherwise nothing is offered, and the activity says why.
sign_inwith one of these never types in your tab: it opens a sealed tab on the same page, types there, and its answer names the new tab (Tab ID), which your session goes on in. From the start of typing until a few seconds after, no tool acts on that tab or takes its picture (a call in that time waits, at most 5 s), and the live view and embeds don’t show it.sign_inwaits for your calls already running on the tab first.- A site that also asks for a code each time (a text message) still needs your user for the code. The ask then starts on the code page, not the password.
Forgetting it
DELETE /v1/browsers/{id}/sign_ins/{id}forgets one, for a user who stops using your app but whose browser you keep.- Deleting the browser (
DELETE /v1/browsers/{id}) erases its keyring with everything else. - Your user changing their password on the site makes the saved one useless; the next sign-in then needs them again.