Learning resourcesReviewed · Browser Use

Browser Use Cloud V4 2FA Guide

This Browser Use Cloud documentation page shows developers how to let an AI browser agent running in a hosted remote browser finish tasks on websites that require two-factor authentication (2FA), either by reusing a saved logged-in browser profile or by having a person enter the code through a live view of the browser. It depends on valid saved login cookies or a person completing the authentication challenge before the browser closes. It explains profile reuse and human handover in Cloud API V4, with Python and TypeScript examples.

Researched 14 Nov 2026

In short.

This Browser Use Cloud guide is for developers whose AI browser agents need to sign in to websites protected by two-factor authentication (2FA); it shows how to reuse a saved logged-in profile or hand the browser to a person to enter the code. Login still requires valid saved cookies or a person completing the challenge before the browser closes. It documents loading a profile and using a browser.ready event to obtain a live browser URL, complete authentication manually, and continue in the same session. Keeping the browser open incurs charges, and the page states that free-tier and Zero Data Retention runs retain a two-minute limit. The examples were not executed; authentication success, SDK compatibility and actual costs remain unverified.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is the complete selected documentation page at [https://docs.browser-use.com/cloud/guides/2fa.md], including shared notices about API versions, models, authentication, billing, browser lifetime, session state, recording and troubleshooting. Linked pages and their contents are excluded, including profile synchronization, human-in-the-loop documentation, SDK references and pricing. No SDK code, authentication flow, website interaction, downloaded file or billing outcome was executed or tested.

The overview

identity

This is Browser Use's guide to handling two-factor authentication in Cloud API V4 runs, published at [https://docs.browser-use.com/cloud/guides/2fa.md]. It teaches two approaches: reuse a logged-in browser profile or pause for a person to complete authentication through the live browser.

The resource is documentation with Python and TypeScript examples. Its footer identifies Mintlify as the documentation platform.

assessment

The guide is useful for understanding where a person or an existing login fits into an automated browser task. It connects authentication to browser lifetime, event handling and session continuity, which are necessary to continue work after a challenge.

Its usefulness is bounded by the absence of demonstrated results. The page calls profiles and human checkpoints the most reliable options, but supplies no comparative measurements, supported-site matrix or successful execution receipts.

users

The intended readers are developers integrating Browser Use Cloud agents with websites that require login and two-factor authentication. The examples use invoice retrieval, making the guide relevant to authenticated administrative tasks.

Beginners receive a concrete sequence to follow, but still need familiarity with API credentials, SDK calls and asynchronous events. Experienced developers get the session identifiers, event name and timing controls needed to design a human checkpoint.

capabilities

The profile approach loads an existing profile through profileId so the browser can reuse login state while the website's cookies remain valid.

The human approach obtains live_view_url from a browser.ready event, waits for the first run to finish at the authentication prompt, and resumes work through another run using the same session. The guide does not demonstrate automatic retrieval of authentication codes or integration with authenticators and hardware security keys.

Using it

requirements

The examples assume a configured Browser Use Cloud client. Shared notices specify the browser-use-sdk package, an explicit V4 import for V4 integrations, and authentication through X-Browser-Use-API-Key without a Bearer prefix. The guide does not show client initialization.

Profile reuse requires a previously synchronized login profile. Human handover requires someone able to access the live browser and complete the challenge. The page says keepAlive is typed in SDK 3.12 and later; this is not a complete compatibility statement for every example.

mechanism

A profile preserves browser state, including the login cookies on which the first approach depends. This can avoid another authentication challenge while the website continues to accept those cookies; the page does not promise permanent login.

For human handover, the first run stops at the challenge while its browser remains available. A person enters the code through the live view, then a follow-up run continues in the same session. Shared notices distinguish a session's conversation history from a profile's browser state and warn that a browser recreated after stopping has no previous tabs.

setup

For profile reuse, synchronize a local login and supply its identifier under browser_settings in Python or browserSettings in TypeScript. The linked synchronization instructions are outside this page's coverage.

For human handover, request a stop at the authentication prompt and set keep_alive in Python or keepAlive in TypeScript on the first run. The examples use 900 seconds. Retrieve the browser.ready event, wait for run completion, present its live_view_url, wait for the person to finish, and create the next run with the original session identifier.

The guide warns against putting passwords or TOTP secrets directly into task prompts.

example

The worked scenario downloads an invoice after login. One version starts the invoice task with a saved profile. The other first opens the login page and stops at the two-factor prompt, lets a person enter the code, and then requests the invoice in a follow-up run.

The Python follow-up passes session_id=first.session_id; TypeScript uses sessionId: first.sessionId. Both express the same documented requirement to continue in the existing session. These are illustrative snippets, not evidence that an invoice was downloaded.

Assessment & evidence

limitations

Saved login state helps only while the website accepts its cookies. Human handover still requires a person to complete authentication within the available browser lifetime.

Without an extension, the guide says the browser stops about two minutes after a run ends. Shared notices specify a normal V4 keepAlive range of 120–14400 seconds, but state that free-tier and Zero Data Retention runs always use 120 seconds. The 900-second example therefore cannot be assumed to apply to those runs.

The examples do not show recovery from expired cookies, a missing browser.ready event, an abandoned human checkpoint or a browser that closes before completion. Behaviour across particular websites and authentication methods is unverified.

reasoning

The documented approaches address different situations. Reusing accepted login state can reduce repeated human involvement. A live checkpoint accommodates a fresh challenge, but introduces a dependency on human availability and paid waiting time.

This tradeoff follows from the documented mechanisms, not measured performance. The page supplies no evidence establishing success rates, latency, savings or superiority over other authentication workflows.

alternatives

The guide's two alternatives are profile reuse for an existing valid login and human completion when a challenge appears. It links to separate profile-sync and human-in-the-loop guides for further implementation detail.

It does not compare other browser-automation products, self-hosted deployments or website-provided APIs. Their suitability and authentication support are not assessed.

evidence

The evidence is the complete supplied page from [https://docs.browser-use.com/cloud/guides/2fa.md], including its shared documentation notices, Python and TypeScript examples, references and footer. Its source revision is sha256:fb13ad7a634297b4ce5b36447560c60c2657ecebe2b7b66b5d1277d15ca98b70.

The page establishes documented usage and stated constraints. It does not establish observed API behaviour, a completed authentication journey or downloaded output. No code was executed.

Access & freshness

costs

The page explicitly states that keeping a browser open while a person completes authentication is billed. Shared notices describe Cloud as pay as you go and say idle V4 agent browsers incur browser-time charges even though they occupy no concurrency slot.

The selected page does not establish a complete price for either authentication workflow. Total cost depends on browser duration and applicable agent, model and network charges. It points to [https://browser-use.com/pricing], whose contents are not included here. No actual charge or measured task cost is established.

rights

The supplied page contains no explicit licence or redistribution grant for its prose or code examples. The Mintlify attribution identifies the hosting platform and does not establish reuse rights.

Cloud service terms and permissions governing the target website or downloaded invoices are not provided. Those rights remain unknown from this resource.

freshness

The supplied page was captured on 14 November 2026 at 19:23:56.763 UTC. No guide-specific publication or last-update date appears in the text.

The TypeScript examples explicitly select gpt-5.6-luna with xhigh reasoning, whereas the Python examples omit model settings. A shared notice states that omitted V4 model settings default to GPT-6 Luna with High reasoning. These examples therefore should not be assumed to select the same model; present model availability and SDK compatibility are unverified.

actions

Choose the documented route according to whether a valid saved login exists or a person must complete a fresh challenge. For human handover, confirm the project's permitted browser lifetime and budget for the waiting time before depending on the 900-second example.

Before adopting the snippets, verify the installed SDK's V4 interface, the selected model's availability and the target site's acceptance of the login flow. A controlled authentication and follow-up task would be needed to establish actual behaviour; none is demonstrated by the supplied evidence.

Evidence for this report

selected-page.txtselected · checked 2026-11-14