Skip to main content

Hosted Agents

Give an agent a task and get the result.

Browsers

Launch a cloud browser and connect to it from your code.
Get an API key and export it:

Install the SDK

Skip this step if you use curl.

Run a hosted agent

Control a browser

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.