Skip to main content
Create an API key and export it:
Install the latest SDK with pip install --upgrade browser-use-sdk or npm install browser-use-sdk@latest. Curl needs no installation. Every new run implicitly creates a session for its conversation and live browser, plus a workspace for persistent files.

Verify an account by email

Set agentmail to give the V4 agent its own inbox. The agent can use that address for a signup, read the verification email, and enter the code:
See 2FA for existing accounts, SMS forwarding, saved profiles, and human takeovers. A task starts a run inside a session and the run reads and writes persistent workspace files A task starts a run inside a session and the run reads and writes persistent workspace files

Copy API V4 docs

Give the compact context file to your coding agent.