Skip to main content
Create an API key and export it:
Need speed? Set model to bu-ultrafast. See BU Ultrafast. 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. To limit the domains that the agent’s browser can open, set browserSettings.networkPolicyId. A follow-up run that omits it keeps the session’s policy, null removes the policy, and a different policy starts a new browser. See Network policies. A task sent to POST /api/v4/runs starts a run inside a session, which holds the conversation and the live browser. The run reads and writes files in a workspace. A task sent to POST /api/v4/runs starts a run inside a session, which holds the conversation and the live browser. The run reads and writes files in a workspace.

Copy API V4 docs

Give the compact context file to your coding agent.