Skip to main content

Browser Use Agents

Give an agent a task and get the result.

Browser Infrastructure

Launch a cloud browser and connect to it from your code.
Both Cloud paths use API V4. Choose whether Browser Use drives the browser or your Playwright/Puppeteer code connects directly over CDP. For a local agent, use the open-source library. Get an API key and export it:

Install the SDK

Skip this step if you use curl.

Run Browser Use Agents

Use Browser Infrastructure

Launch a browser, connect to its CDP URL, then stop it:
Closing Playwright, Puppeteer, or CDP does not stop the browser. Use client.browsers.stop(browser.id) or call PATCH /api/v4/browsers/{id} with {"action":"stop"}.

Copy for an LLM

Give your coding agent the compact API V4 context.