> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anchorbrowser.io/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Anchor Browser is cloud browser infrastructure for AI agents and automation: browser sessions you control over CDP or REST, natural-language web tasks, versioned automation tasks, managed authentication into third-party web apps (identities with MFA), persistent volumes and profiles, recordings, live view, batch sessions, webhooks, and network options including residential proxies, extra stealth, and captcha solving for sites that block standard browsers. AI agents should start at https://docs.anchorbrowser.io/for-agents, then create an API key at https://app.anchorbrowser.io/api-keys. Read the for-agents page before authentication or API calls.

# Browser Sessions

> How cloud browser sessions work — what you get back, how to create one, and what you can configure at creation time.

A **browser session** is a cloud Chromium instance you control over CDP (Playwright, Puppeteer) or Anchor's APIs. Create one, automate, then end it when done.

## What you get back

Every successful create returns:

| Field | Use it for |
| - | - |
| `id` | Session identity — reconnect, run tasks, fetch recordings |
| `cdp_url` | Connect Playwright or Puppeteer over Chrome DevTools Protocol |
| `live_view_url` | Embed or share a live view of the browser — see [Embedded Browser Live UI](https://docs.anchorbrowser.io/advanced/browser-live-view.md) |

By default sessions start **headful** with **recording enabled**. See [Start Browser Session](https://docs.anchorbrowser.io/api-reference/browser-sessions/start-browser-session.md) for defaults and full schema.

## How to create

| Guide | When to use |
| - | - |
| [Create a Session](https://docs.anchorbrowser.io/quickstart/create-session.md) | Standard create — blocks until the browser is ready. Best for scripts and single sessions. |
| [Async Session](https://docs.anchorbrowser.io/essentials/async-session.md) | Returns immediately; poll until ready. Best for parallel provisioning or long proxy/stealth setups. |
| [Batch Browser Sessions](https://docs.anchorbrowser.io/advanced/batch-browser-sessions.md) | Many sessions in one call (up to 5,000). Best for large-scale scraping or load tests. |

## Configure at create

Pass optional `session` and `browser` blocks in the create request body. The shape is the same for sync, async, and batch creates. Full schema: [Start Browser Session](https://docs.anchorbrowser.io/api-reference/browser-sessions/start-browser-session.md).

```json theme={null}
{
  "session": {
    "initial_url": "https://app.example.com"
  },
  "browser": {
    "headless": { "active": true }
  },
  "identities": [{ "id": "your-identity-id" }]
}
```

Attach **`identities`** to start signed in, or set **`browser.profile`** to load a saved browser state — see the auth rows below.

Setup for each option lives on its own page — this section only links there:

| Configurable at create | Learn more |
| - | - |
| Proxy, VPN, sticky IP | [Proxy](https://docs.anchorbrowser.io/advanced/proxy.md), [Anchor VPN](https://docs.anchorbrowser.io/advanced/anchor-vpn.md), [Dedicated sticky IP](https://docs.anchorbrowser.io/advanced/dedicated-sticky-ip.md) |
| Stealth, captcha, web bot auth | [Stealth](https://docs.anchorbrowser.io/essentials/stealth.md), [CAPTCHA solving](https://docs.anchorbrowser.io/advanced/captcha-solving.md), [Web Bot Auth](https://docs.anchorbrowser.io/advanced/cloudflare-web-bot-auth.md) |
| Extensions, adblock, popups, sensitive data masking, timeouts, tags, CA certs | **Customize** in the sidebar |
| Tracing (`browser.tracing`) | Console and network logs are on by default. Query values, cookies, and credential headers are omitted. Set `snapshots: true` to store document HTML for the DOM tab; HTML is saved as-is. |
| Profiles (`browser.profile`) | [Managed Authentication — Browser profiles](https://docs.anchorbrowser.io/essentials/managed-authentication.md#browser-profiles) |
| Identities (`identities[]`) | [Managed Authentication](https://docs.anchorbrowser.io/essentials/managed-authentication.md) |
| Email OTP, Custom MFA, 1Password | [Email MFA](https://docs.anchorbrowser.io/advanced/email-otp.md), [Custom MFA](https://docs.anchorbrowser.io/advanced/mfa.md), [1Password](https://docs.anchorbrowser.io/integrations/1password.md) |
| Live view / embed (`live_view_url`) | [Embedded Browser Live UI](https://docs.anchorbrowser.io/advanced/browser-live-view.md) |

## Rate limits

`POST /v1/sessions` and `POST /v1/sessions/async` each have their own per-minute budget. The caps match:

| Plan | Sessions per minute |
| - | - |
| Free | 5 |
| Starter | 25 |
| Team | 50 |
| Growth | 100 |
| Enterprise | 200+ |

A higher cap is an account override.

The per-minute limiter returns `429` before a session exists. That response includes `RateLimit`, `RateLimit-Policy`, and `Retry-After`, so retrying it does not create a second session. A `429` with no `Retry-After` is a concurrency cap: the API key's concurrent-browser limit, which clears when a session ends, or too many session creations in flight at once.

The API does not read an `Idempotency-Key` header. Retrying a `5xx` or `409` can create a second session. `400`, `401`, `402`, `403`, `404`, `412`, and `422` are terminal.

`GET /v1/sessions/{session_id}/recordings` is capped per API key per minute and returns `X-RateLimit-Limit`, `X-RateLimit-Remaining`, and `X-RateLimit-Reset`. `GET /v1/sessions/{session_id}/recordings/{recording_id}/fetch` is capped per team per hour and sends the same `RateLimit` and `RateLimit-Policy` headers as the session limiter. The caps differ by region:

| Region | Recordings list, per API key per minute | Recording fetch, per team per hour |
| - | - | - |
| US | 200 | 5,000 |
| EU | 50 | 2,000 |

## Next steps

> [card] [Create a session](https://docs.anchorbrowser.io/quickstart/create-session.md)
>
> SDK quick start — create, connect with Playwright or Puppeteer, automate.

> [card] [Async sessions](https://docs.anchorbrowser.io/essentials/async-session.md)
>
> Non-blocking create and poll until ready.

> [card] [Batch sessions](https://docs.anchorbrowser.io/advanced/batch-browser-sessions.md)
>
> Create many sessions in one API call.

> [card] [Session recordings](https://docs.anchorbrowser.io/essentials/recording.md)
>
> Record and replay sessions after they end.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.