> ## 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. The for-agents page (https://docs.anchorbrowser.io/for-agents) covers authentication and the first API calls. API keys are created at https://app.anchorbrowser.io/api-keys. Append .md to any page URL for its Markdown version. The SDKs read the API key from ANCHORBROWSER_API_KEY, and REST calls send it in the anchor-api-key header. End every session you create with DELETE /v1/sessions/{id}, because a session is billed until it ends. Location targeting, captcha solving and managed authentication need the Starter plan, and extra stealth needs the Growth plan; on the Free plan, create a session with an empty body. Plans and limits are at https://docs.anchorbrowser.io/pricing. The hosted MCP server is https://api.anchorbrowser.io/v1/mcp.

# Overcome Bot Detection Challenges

> Start with a default session and add a proxy, captcha solving, extra stealth, a residential IP or Mac hardware only when a site needs it. Includes the session settings and measured results.

Many sites block automation before your agent can act. They fingerprint the browser, score the IP address and show captchas. Anchor gives you several session setups, from light to heavy. Start with the lightest one and move up only when a site turns you away.

## The ladder

The numbers come from [Commerce Bench](https://github.com/anchorbrowser/commerce-bench), an open harness that opens 30 real stores and grades from the browser. Each start page was opened once per setup, with no agent.

| Setup | Stores that opened, of 30 | Plan |
| - | - | - |
| Chromium on a laptop | 16 | - |
| 1. Default session | 21 | Free |
| 2. Proxy, extra stealth and captcha solving | 23 | Growth |
| 3. Residential proxy, extra stealth and captcha solving | 24 | Growth |
| 4. Mac hardware | 28 | On request |

Opening the start page is not the same as staying in. Two stores opened on Mac hardware and showed a bot wall again during the full agent run.

## The session settings

Each tab is the body of `POST /v1/sessions`. These are the settings the benchmark used.

> [tab] 1. Default
>
> ```json theme={null}
> {}
> ```
>
> Works on the Free plan. Start here. In the benchmark, a default session with no proxy was the best setup for 10 of the stores the agent finished.

> [tab] 2. Stealth
>
> ```json theme={null}
> {
>   "session": {
>     "proxy": { "active": true, "type": "anchor_proxy", "country_code": "us" }
>   },
>   "browser": {
>     "extra_stealth": { "active": true },
>     "captcha_solver": { "active": true }
>   }
> }
> ```
>
> The proxy and captcha solving need the Starter plan. Extra stealth needs the Growth plan, and it stays on only while the proxy is active. On Starter, leave out `extra_stealth`.

> [tab] 3. Residential
>
> ```json theme={null}
> {
>   "session": {
>     "proxy": { "active": true, "type": "anchor_residential", "country_code": "us" }
>   },
>   "browser": {
>     "extra_stealth": { "active": true },
>     "captcha_solver": { "active": true }
>   }
> }
> ```
>
> The same as the stealth setup, with a residential IP address. Use it when a site scores datacenter addresses badly.

> [tab] 4. Mac hardware
>
> ```json theme={null}
> {
>   "session": {
>     "hardware": "mac",
>     "proxy": { "active": true, "country_code": "us" }
>   },
>   "browser": {
>     "captcha_solver": { "active": true }
>   }
> }
> ```
>
> The session runs on real Apple hardware. In the benchmark this was the strongest single setup, and the best one for 9 of the stores the agent finished. Capacity is limited, so ask Anchor to turn it on for your account. `allowed_domains` is not available on Mac hardware.

## Use a setup

Create the session with the settings, run your task in it, then end it.

```bash theme={null}
curl -X POST https://api.anchorbrowser.io/v1/sessions \
  -H "anchor-api-key: $ANCHORBROWSER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "session": {
      "proxy": { "active": true, "type": "anchor_proxy", "country_code": "us" }
    },
    "browser": { "captcha_solver": { "active": true } }
  }'
```

The response has the session `id`. Pass it as `sessionId` to [Perform Web Task](https://docs.anchorbrowser.io/agentic-browser-control/ai-task-completion.md), or connect Playwright to the `cdp_url`. End the session with `DELETE /v1/sessions/{id}` when the work is done.

## Find out why you were blocked

**1. Watch the session**

Open the `live_view_url`, or play the [session recording](https://docs.anchorbrowser.io/essentials/recording.md) afterwards. Recording is on by default. You see the exact page where the site stopped you.

**2. Name the cause**

A bot wall, a login wall and an agent that got stuck need different fixes. The benchmark labels each run, for example `bot_detected:cloudflare` or `login_required`. A store that needs an account is the store's rule, not a block: use [managed authentication](https://docs.anchorbrowser.io/essentials/managed-authentication.md) there.

**3. Run it three times**

Results move between runs. The same store can open on one visit and show a wall on the next. Do three runs before you decide that a setup works or fails.

**4. Move up one step**

If the cause is a bot wall, try the next setup in the ladder. Do not start with the heaviest one: it costs more and most sites do not need it.

## Other tools

* **Your own proxy.** Use a provider you already have with [Bring Your Own Proxy](https://docs.anchorbrowser.io/advanced/bring-your-own-proxy.md). Growth plan.
* **A fixed address.** Keep one IP address that a site can allowlist with [Dedicated Sticky IP](https://docs.anchorbrowser.io/advanced/dedicated-sticky-ip.md).
* **Region routing.** Reach region-locked content through [Anchor VPN](https://docs.anchorbrowser.io/advanced/anchor-vpn.md).
* **Cloudflare.** Identify your agent to Cloudflare as a verified bot with [Cloudflare Web Bot Auth](https://docs.anchorbrowser.io/advanced/cloudflare-web-bot-auth.md). Growth plan.
* **One page, no session.** Get the rendered HTML of a URL in one call with [Web Unlocker](https://docs.anchorbrowser.io/advanced/web-unlocker.md).

## How much the browser matters

In the full benchmark runs, one shopping agent tried the same task at each store. Only the browser changed between rows.

| Browser | Stores the agent got into, of 30 | Stores where it finished the task |
| - | - | - |
| Chromium on a laptop | 12 | 7 |
| Anchor, default session | 17 | 14 |
| Anchor on Mac hardware | 25 | 17 |
| Anchor, best setup per store | 25 | 19 |

Every run and its recording is on the [results page](https://commerce.assistantanalysis.com/). No run entered a card or placed an order. For a script you can run, see [Shop a Store, Stop Before Payment](https://docs.anchorbrowser.io/examples/shopping-cart.md).

## Next steps

> [card] [Network and Stealth](https://docs.anchorbrowser.io/network-and-stealth/overview.md)
>
> How the proxy, stealth and unblocking features fit together.

> [card] [Extra Stealth Mode](https://docs.anchorbrowser.io/essentials/stealth.md)
>
> What extra stealth changes, and what it needs.

> [card] [Proxy](https://docs.anchorbrowser.io/advanced/proxy.md)
>
> Proxy types and country targeting.

> [card] [Captcha Solving](https://docs.anchorbrowser.io/advanced/captcha-solving.md)
>
> Which challenges Anchor solves inside the session.


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