> ## 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.

# Sandboxes

> Run agent or automation code in a third-party sandbox and connect it to an Anchor cloud browser.

A sandbox is where your agent or automation **code** runs. Anchor is where the **browser** runs.

The integration Anchor is shipping now is **Anchor SDK in the sandbox base image → Anchor Cloud**. The sandbox stays vanilla and lightweight. Chromium runs as a managed Anchor cloud session; the sandbox just holds the SDK and talks to it over HTTPS + CDP.

Keep those roles separate:

* The sandbox stays the code runtime — install packages, run a script, call a model.
* Anchor stays the remote browser — stealth, proxies, live view, and session lifecycle.
* Connect the two over HTTPS + CDP. Do not launch Chromium inside the sandbox.

This is the same pattern as [Stagehand](https://docs.anchorbrowser.io/integrations/stagehand.md): create an Anchor session, then point your tool at `cdp_url` when you need full Playwright control.

> [!NOTE]
>
> Anchor's own [Execute Code Snippet](https://docs.anchorbrowser.io/tools/execute-code-snippet.md) tool is different — it runs TypeScript *inside* an existing Anchor session. Pages in this section attach a sandbox *from the outside*.

## What Anchor provides

* SDKs on [npm](https://www.npmjs.com/package/anchorbrowser) and [PyPI](https://pypi.org/project/anchorbrowser/) (Playwright or Puppeteer via CDP)
* Co-branded docs template (MDX)
* An Agent Skill (`SKILL.md`) so agents use the tool correctly — bundle it into the partner's default agent environment or skills catalog
* [Agent Access](https://docs.anchorbrowser.io/quickstart/agent-access) — a limited keyless trial, not a BYOK replacement

## Shared setup

Every partner page below uses the same technical contract:

* Preinstall `anchorbrowser` in the image (and `playwright` / `playwright-core` only if you need direct CDP control).
* Alias `ANCHORBROWSER_API_KEY=${ANCHOR_API_KEY}` — the raw SDK reads `ANCHORBROWSER_API_KEY`. Without that alias, session and task calls fail auth (401) even when `ANCHOR_API_KEY` is set.
* Customers bring their own Anchor API key (BYOK). Anchor bills them directly on usage.
* Prefer `agent.task` / `agentTask` for declarative browser work. The result string is `result.data.result`.
* Never log `session.data.cdp_url` — it carries the API key in the query string. Surface `session.data.live_view_url` to humans instead.
* Reuse one session per agent run, set `timeout.max_duration` / `timeout.idle_timeout`, and delete the session on sandbox teardown.

## Egress

If the sandbox restricts egress, allowlist:

* `https://api.anchorbrowser.io`
* `wss://connect.anchorbrowser.io`
* `https://live.anchorbrowser.io`

> [card] [CreateOS](https://docs.anchorbrowser.io/integrations/sandboxes/createos.md)
>
> Isolated Linux VMs for agent code, connected to an Anchor cloud browser.

> [card] [Daytona](https://docs.anchorbrowser.io/integrations/sandboxes/daytona.md)
>
> Daytona sandboxes as the code runtime, with Anchor as the remote browser.

> [card] [E2B](https://docs.anchorbrowser.io/integrations/sandboxes/e2b.md)
>
> Isolated cloud VMs for agent code, connected to an Anchor cloud browser.

> [card] [Tenki](https://docs.anchorbrowser.io/integrations/sandboxes/tenki.md)
>
> Disposable Linux VMs for agents, connected to an Anchor cloud browser.


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