---
name: browser-use-cloud-reference
description: Use when integrating Browser Use Cloud: v2/v3/v4 API and SDK setup, API key auth, hosted runs, browsers via CDP, and which starter path to pick.
---
# Browser Use Cloud Reference
## What this does
Quick reference for Browser Use Cloud, the hosted REST API and SDK for browser automation. It helps pick the right API version and starter path and avoid common setup mistakes.
## When to use
Questions or code about the Cloud REST API (v2, v3, v4), `browser-use-sdk` (Python or TypeScript), `X-Browser-Use-API-Key` auth, cloud sessions, browser profiles, CDP WebSocket connections, stealth browsers, proxies, CAPTCHA handling, webhooks, workspaces, pricing, or Playwright/Puppeteer/Selenium on cloud infrastructure. Do NOT use for the open-source Python library (Agent, Browser, Tools config); use the open-source browser-use skill instead.
## How to run it
1. Choose a starter:
- Hosted task in, result out: use the V4 SDK `runs` resource.
- Your existing agent needs a browser: use the V4 SDK `browsers` resource or REST/CDP, then explicitly stop the browser.
- Local framework development: use the open-source browser-use skill, not Cloud SDK calls.
2. Get an API key at https://cloud.browser-use.com/new-api-key and set `BROWSER_USE_API_KEY`. Reuse an existing key if present. Keep keys server-side, never in prompts or client bundles.
3. Install the SDK: `uv pip install browser-use-sdk` (Python) or `npm install browser-use-sdk` (TypeScript).
4. Use v4 for new hosted-agent integrations. Keep v2 or v3 only for existing integrations or resources not yet wrapped by the v4 SDK.
5. Always stop a browser explicitly. Closing the CDP connection does not stop billing. SDK 3.11.3 or newer exposes `browsers.create` and `browsers.stop` in the v4 namespace.
6. Free starter: eligible new Google, GitHub or Microsoft signups get a one-time $1 Cloud credit (no card; email/password signups do not qualify). Use model `gpt-5.6-luna` for the free starter; paid-only models need a top-up. Details: https://browser-use.com/pricing.md
## Reference facts
- Base URLs: `https://api.browser-use.com/api/v2/`, `https://api.browser-use.com/api/v3`, `https://api.browser-use.com/api/v4`
- Auth header: `X-Browser-Use-API-Key: <key>`
- Python imports: v2 `from browser_use_sdk import AsyncBrowserUse`; v3 `from browser_use_sdk.v3 import AsyncBrowserUse`; v4 `from browser_use_sdk.v4 import BrowserUse` (or `AsyncBrowserUse`)
- TypeScript imports: v2 `import { BrowserUse } from "browser-use-sdk"`; v3 `from "browser-use-sdk/v3"`; v4 `from "browser-use-sdk/v4"`
- CDP WebSocket: `wss://connect.browser-use.com?apiKey={BROWSER_USE_API_KEY}&proxyCountryCode=us`
- The original skill links deeper reference files (api-v4, api-v2, api-v3, sessions, browser-api, features, patterns, guides). They were not provided here, so fetch the official docs for those details and do not guess endpoints.
## Output
A working setup or code snippet for the chosen path (version, imports, auth, browser stop), with any unverified endpoint details flagged.
Credit: Based on public content by browser-use, packaged by Orbit.