Run a task - Browser Use
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. 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.