Skip to main content
Browser agents frequently encounter login flows secured by two‑factor authentication (2FA). CloudCruise supports four common 2FA channels and offers multiple integration patterns so you can choose the right balance of autonomy vs. human oversight.

Supported 2FA Channels

Integration Patterns

When you can export or reveal the QR‑code secret behind a TOTP authenticator, simply store that secret in the Vault entry that belongs to the credential set:
You can do this with our /vault endpoints or using our UI here. At runtime the browser agent generates the current code itself, allowing fully autonomous logins with no external dependency.
Tip – This approach also works for SMS or email 2FA when the underlying service lets you switch to an authenticator‑app factor.
CloudCruise can provide an isolated phone number and inbox per Vault credential. Perform a one‑time change in the target account:
  1. Replace the existing 2FA phone number or email with the CloudCruise‑supplied value.
  2. (Optional) Add a forwarding rule so codes are copied to a human‑accessible destination.
Alternative: Instead of changing the registered email, you can configure your existing inbox to forward 2FA or magic-link emails to the vault entry email address. At run‑time the flow looks like this:
No webhooks or manual steps are needed; agents consume the code automatically.

Pros / Cons

3. User‑Driven Code Submission (Minimal Setup)

If you cannot change the registered phone/email or export the authenticator secret, fall back to interactive mode:
  1. Agent reaches the 2FA prompt and emits a webhook:
  1. Your application notifies the user and collects the 6‑digit code.
  2. Submit the code via the User Interaction API:

Pros / Cons

Choosing an Approach

Error Handling & Timeouts

  • A 2FA code must be delivered to the agent within 5 minutes of the prompt.
  • If the window elapses, the run fails; retry or re‑schedule as needed.

Security Considerations

  • All codes received via the CC 2FA Proxy are discarded after use.
  • When you store a TOTP secret in the Vault, it is wrapped with the same envelope‑encryption scheme used for passwords.
  • Webhook payloads never contain raw codes—only metadata indicating that a code is required.