> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hotkey.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Sign in with 1Password

> Give a browser a vault in your 1Password. Agents sign in with its logins through sign_in and never see a password.

A Hotkey browser can sign in with logins from your 1Password. You choose which logins, by putting them in a vault of their own and sharing only that vault with the browser. The agent calls `sign_in` as usual; the browser reads the login from 1Password at that moment, types it in a sealed tab and submits. The password and one-time code never reach the agent, its AI provider, the console or the API, and Hotkey keeps no copy of them.

## Set it up

1. In 1Password, make a vault for the browser, like **Hotkey: Work**, and move or copy into it the logins it may use. Each login needs the site's address in its **website** field.
2. Make a [service account](https://developer.1password.com/docs/service-accounts/get-started/) that can read only that vault (read items is enough), and copy its token. It starts with `ops_`.
3. In the console, open the browser's settings, and under **Sign-ins** choose **Use 1Password**, paste the token and choose **Connect**. The browser lists the vaults the token reaches and how many logins with a website they hold.

A team that runs its own [1Password Connect server](https://developer.1password.com/docs/connect/) chooses **Connect server** instead and gives its https address and a Connect token.

## What the agent does

On a sign-in form the agent calls `sign_in`. With nothing saved in the browser for the site, the browser looks in its 1Password for logins whose website is the page's site (a login for `example.com` also serves `login.example.com`). It opens a sealed tab on the same page, where no script of the agent's runs, types the username and password there and submits. The result names the login by its title and the tab the agent goes on in.

* **One-time codes.** When the site then asks for a code, the agent calls `sign_in` again on that page. A login with a one-time password types its current code.
* **Several logins for a site.** The first result names the others. The agent passes `account` with a login's title to use another.
* **Passwords saved in the browser** come first. 1Password is read when the browser keeps none for the site.

## What Hotkey keeps

* The token, encrypted in the browser's profile with its saved passwords (AES-256-GCM, with a key kept on the server apart from the profile). No page, answer or log shows it again.
* For a minute at a time, the titles and websites of the vault's logins, in memory, so a page's sign-in rows show without asking 1Password each time.
* Nothing of a login's username, password or code: they are read when typed and dropped when the call ends.

The activity log says which login was used, by its title. **Disconnect 1Password** in the browser's settings forgets the token. To end it everywhere, delete the service account in 1Password, or remove a login from the vault to stop that one.

## Approval

The vault is the approval: the browser reads only the logins you put in the vault you shared, and you change that in 1Password at any time. 1Password asks no question for each sign-in in this setup. A prompt in your 1Password app for each login ("approve in 1Password") is what 1Password offers to its agent partners, and Hotkey doesn't have it yet.

## Over the API

`PUT /v1/browsers/{id}/onepassword` with `{ "token": "ops_…" }`, or `{ "kind": "connect", "url": "https://…", "token": "…" }`, checks the token and keeps it. `GET` says whether it is set and which vaults it reaches; `DELETE` forgets it. See the [API reference](https://docs.hotkey.so/api.md#1password).

## Your own 1Password while you watch

When you sign in yourself in the live view, your 1Password works through the [Hotkey extension](https://hotkey.so/extension): the sign-in sheet's **Use a password saved for** the site opens a small window on the site's own address, where 1Password offers the logins it keeps for it. See [Sign-ins](https://docs.hotkey.so/concepts/sign-ins.md#your-own-password-manager).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.