---
title: "Browser Use developer resources"
canonical: "https://browser-use.com/developers"
last_updated: "2026-11-05"
---

# Browser Use developer resources

Browser Use sells two products to developers:

- **Hosted Web Agents** (Browser Use Agents) — submit a natural-language goal and receive completed work from a managed browser agent.
- **Browser Infrastructure** — managed stealth browsers you drive with Playwright, Puppeteer or any CDP client, through the SDK, REST API, or CDP. $0.06 per browser-hour, no subscription. Live view on every browser, video recording when you turn it on (never on Zero Data Retention projects).

## Scripts and AI on one browser

1. Deterministic steps: create a browser (`POST https://api.browser-use.com/api/v4/browsers`) and attach Playwright or Puppeteer to its `cdpUrl` ([guide](https://browser-use.com/playwright.md)).
2. AI steps on the same browser: pass that `cdpUrl` to a `browser-use` agent with `BrowserSession(cdp_url=...)` for the pages you cannot script ([example](https://github.com/browser-use/browser-use/blob/main/examples/browser/playwright_integration.py)).
3. Replay without the model: save a successful agent run with `agent.save_history()`. `load_and_rerun()` replays its clicks and typing with new values and no model call per step; an extract step and a closing summary still call the model. If the page changed, the replay stops at the first step it cannot match. The steps before it already ran, so check whether the form went out, then run the agent again and save that run ([example](https://github.com/browser-use/browser-use/blob/main/examples/features/rerun_history.py)).
4. Live view and recording: every browser returns a `liveUrl` to watch or embed; create it with `enableRecording: true` for an mp4 after it stops ([live preview and recording](https://docs.browser-use.com/cloud/browser/live-preview)).

Replay first, agent when the page changed (tested October 22, 2026 with browser-use 0.13.11: a replay with new values, a page that changed before the submit button, and one that changed after it; each request reached the server once):

```python
from pathlib import Path

from browser_use import Agent, ChatBrowserUse

llm = ChatBrowserUse()
TASK = "Open https://example.com/billing, request an invoice copy for {name} with email {email}, then show and return the reference."


async def request_invoice(name, email, already_sent, saved="invoice_run.json"):
    """already_sent is your own async check, `async def already_sent(name, email) -> bool`, such as your records or the site's history."""
    if Path(saved).exists():
        try:
            # Replays the saved run's clicks and typing with new values; no model call per step.
            # Variable names come from agent.detect_variables() on the saved run.
            results = await Agent(task="", llm=llm).load_and_rerun(
                saved, variables={"name": name, "email": email}, skip_failures=False
            )
            return results[-1].extracted_content  # a model-written summary: check the outcome yourself
        except RuntimeError:
            # The page changed: the replay stopped at the first step that matched no element.
            # The steps before it already ran, so check before an agent sends the form again.
            if await already_sent(name, email):
                return None
    agent = Agent(task=TASK.format(name=name, email=email), llm=llm)
    history = await agent.run()
    agent.save_history(saved)  # the next call replays this run
    return history.final_result()
```

The saved file holds the values the agent typed; pass `sensitive_data` to the agent to keep secrets out of it.

## Your agent loop, our browsers: what production asks

- **Debug a failed run.** Watch any browser live at its `liveUrl`, or record an mp4 with `enableRecording` (never on Zero Data Retention projects). Playwright tracing works too: on a cloud browser it captured DOM snapshots, screenshots and every network request (tested October 21, 2026 with Playwright 1.64.0; page console messages were not captured). [Live view and recording](https://docs.browser-use.com/cloud/browser/live-preview)
- **Stay logged in.** Create the browser with a profile (`profileId`) and it starts with that profile's cookies and browser state. Sync a login from your own Chrome once. [Profiles](https://docs.browser-use.com/cloud/guides/authentication)
- **Get through bot walls.** 90.5% of visits to 100 bot-protected sites got through on Stealth Bench V2, which we built and ran, the most of the providers tested. Every provider ran with its own proxy and CAPTCHA solver, and the stealth setting its standard plans offer (Steel's have none); Browserbase ran on its standard mode, because its Verified mode needs an Enterprise plan, and Hyperbrowser on its standard stealth mode, because Ultra Stealth needs an Enterprise plan. Our solver covers reCAPTCHA, plus hCaptcha (newer, not guaranteed), and is off in the EU region; with it off, Browser Use Cloud got through on 84% of visits. The 100 sites were picked because Browser Use Cloud historically got through where stock Chrome with a US proxy did not. They are hard on purpose and not a balanced sample of the web or of anti-bot vendors. [Stealth Bench V2](https://browser-use.com/benchmarks/browsers.md)
- **Pass a security review.** SOC 2 Type II, Zero Data Retention, an EU region and a DPA, each linked to its source. [Security](https://browser-use.com/security.md)

```python
from browser_use_sdk.v4 import AsyncBrowserUse
from playwright.async_api import async_playwright

client = AsyncBrowserUse()

async def traced(url: str, path: str = "trace.zip"):
    browser = await client.browsers.create()  # add profile_id=... to start logged in
    try:
        async with async_playwright() as p:
            chrome = await p.chromium.connect_over_cdp(browser.cdp_url)
            context = chrome.contexts[0]
            await context.tracing.start(screenshots=True, snapshots=True)
            try:
                await context.pages[0].goto(url)
                # ... your agent's steps ...
            finally:
                await context.tracing.stop(path=path)  # saved even if a step fails; open with: npx playwright show-trace trace.zip
    finally:
        await client.browsers.stop(browser.id)
```

## Free credits

Eligible new Google, GitHub or Microsoft signups get $1 once, no card. Email/password excluded. Use `bu-4.0` (EU: `gpt-6-luna`); paid-only models need a top-up. [Eligibility and rates](https://browser-use.com/pricing.md).

## Quickstart

Create an API key in the [Cloud dashboard](https://cloud.browser-use.com/settings?tab=api-keys&new=1), store it as `BROWSER_USE_API_KEY`, and start an agent run:

```bash
curl https://api.browser-use.com/api/v4/runs \
  -H "X-Browser-Use-API-Key: $BROWSER_USE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"task":"Open https://example.com and return its title","model":"gpt-6-luna","maxCostUsd":1.00}'
```

Save the run `id`. Poll `GET /api/v4/runs/{id}/status` until `completed`, `failed` or `cancelled`; fetch `GET /api/v4/runs/{id}`. Only `completed` means success. Validate results; retrying ambiguous creates can duplicate paid work.

[SDK polling helpers](https://docs.browser-use.com/cloud/agent/quickstart).

## Core developer resources

- [API V4 documentation](https://browser-use.com/api) — the current REST API for agent runs, sessions, browsers, profiles, and workspaces.
- [OpenAPI 3.1 specification](https://browser-use.com/openapi.json) — machine-readable API V4 endpoints and schemas.
- [Python and TypeScript SDK](https://github.com/browser-use/sdk) — typed Browser Use Cloud clients.
- [Webhooks](https://browser-use.com/webhooks) — signed task status notifications.
- [MCP server](https://browser-use.com/mcp) — browser automation tools for MCP-compatible clients.
- [Product map](https://browser-use.com/llms.txt) and [full product context](https://browser-use.com/llms-full.txt) — machine-readable Browser Use documentation.

## Authentication and permissions

API V4 and the Cloud SDK authenticate with a Browser Use API key in the `X-Browser-Use-API-Key` header. [Create an API key](https://cloud.browser-use.com/settings?tab=api-keys&new=1) in the Cloud dashboard.

The Browser Use OAuth 2.0 authorization server advertises Authorization Code with PKCE and Device Authorization as supported grant types for MCP clients. The only scope currently published in its metadata is `mcp`.

- [OAuth authorization-server metadata](https://browser-use.com/.well-known/oauth-authorization-server)
- [OAuth protected-resource metadata](https://browser-use.com/.well-known/oauth-protected-resource)
- [Authentication guide for agents](https://browser-use.com/auth.md)

The public authorization metadata currently exposes one MCP scope. Finer-grained REST API scopes are not advertised, so integrations should isolate API keys by environment, store them in a secret manager, and revoke keys that are no longer needed.

---

BROWSER USE

- Browser Use Agents: give Browser Use a task and receive completed work. API V4 is current for new integrations.
- Browser Infrastructure: connect your agent or automation to managed browsers through SDK, REST, or CDP. Starts at $0.06/browser-hour.
- Developer tools: Open Source, Browser Harness, SDK, and MCP support the two products above.

[Developer Index](https://browser-use.com/index.md)
[Product Map](https://browser-use.com/llms.txt)
[Full Product Context](https://browser-use.com/llms-full.txt)
[Pricing](https://browser-use.com/pricing.md)
[Cloud Docs](https://docs.browser-use.com/cloud/quickstart)
[Open Source Docs](https://docs.browser-use.com/open-source/introduction)
