Skip to content

Allow credential-provider plugins to supply TOTP after the password step #1836

Closed

Description

@gabeosx

Credential providers work well for username/password login, but they currently cannot handle a common two-step flow: the site accepts the password, loads a second screen, and only then asks for a fresh TOTP code.

This comes up in #711. I don't think agent-browser should add 1Password-specific logic directly to the codebase; the existing plugin model is the right place for integrations with 1Password, Bitwarden, and other vaults. The missing piece is a generic way for a credential-provider plugin to supply a time-sensitive challenge after the OTP field appears.

One possible flow would be:

  1. The credential provider returns the username/password and indicates that a second factor is available.
  2. agent-browser submits the first login step and waits for the configured OTP field.
  3. agent-browser asks the same provider for a fresh code.
  4. agent-browser validates and fills the code, but leaves final submission to the caller.

That would let a 1Password plugin satisfy #711 without coupling agent-browser core to 1Password, and it would work the same way for other providers.

I implemented this approach in #1638 and also built a Bitwarden provider to exercise the protocol end to end. The PR is now behind main and has conflicts, so it needs updating before it could be merged.

Is this a direction the maintainers would be interested in? If so, I'm happy to update the PR against the latest code and adjust the protocol based on feedback before doing more work on it.

Related: #711, #1794

Activity

  1. sod-efi commented on Nov 3, 2026

    @sod-efi

    Your gap is a common one. The password works, the second screen loads, and only then does the site ask for a fresh TOTP code.

    To be clear about what I have: Nephew does not supply codes, and it will not type one for you. It keeps the browser profile you logged into yourself and loads it into whatever sandbox your agent runs in. Because the session survives, the agent starts signed in, and the second screen asking for a code comes up far less often.

    I will set it up with you live, free. You pay nothing unless your run finishes logged in. Only then does the $19 a month plan start.

    nephew.ai
    — Efi

  2. locked and limited conversation to collaborators on Nov 3, 2026
  3. converted this issue into a discussion #2324 on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions