> ## Documentation Index
> Fetch the complete documentation index at: https://browseruse-0aece648-mintlify-cli-docs-1773354647.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 1Password Login with 2FA

> Auto-fill passwords and TOTP codes from your 1Password vault during agent tasks.

If you store credentials and TOTP/2FA codes in 1Password, the agent can use them automatically. It retrieves matching credentials from your connected vault and handles the full login flow — including generating and entering 2FA codes.

When to use this:

* You have credentials stored in 1Password and want zero-touch login
* The site requires TOTP/2FA that would normally need manual intervention
* You want credentials to never appear in agent logs (they are filled programmatically)

<CodeGroup>
  ```python Python theme={null}
  from browser_use_sdk import AsyncBrowserUse

  client = AsyncBrowserUse()
  result = await client.run(
      "Log into Jira and create a bug ticket titled 'Login page broken'",
      op_vault_id="your-vault-id",
      allowed_domains=["*.atlassian.net"],
  )
  print(result.output)
  ```

  ```typescript TypeScript theme={null}
  import { BrowserUse } from "browser-use-sdk";

  const client = new BrowserUse();
  const result = await client.run(
    "Log into Jira and create a bug ticket titled 'Login page broken'",
    {
      opVaultId: "your-vault-id",
      allowedDomains: ["*.atlassian.net"],
    },
  );
  console.log(result.output);
  ```
</CodeGroup>

Passwords and TOTP/2FA codes are auto-filled from your vault. Raw credentials never appear in logs — the agent only sees a placeholder indicating it has access.

<Note>
  Requires a 1Password service account connected to Browser Use Cloud. See [Authentication & 2FA](/cloud/guides/authentication#1password-integration) for setup steps.
</Note>
