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

# Enterprise Automation

> Deploy versioned, repeatable workflows with managed identities and session control, including shopping and checkout flows that stop before payment.

Move browser automation from one-off scripts to production infrastructure. Anchor gives enterprise teams versioned workflows, centrally managed credentials, controlled sessions, and the observability to run automations reliably at scale.

This guide walks through standing up a production-grade automation from definition to monitoring.

## Step 1: Define the workflow once

Build a task that captures your process as a versioned, auditable workflow.

**1. Pick the right task type**

Decide between an interactive web task and a compiled automation task. See [Which Task Type](https://docs.anchorbrowser.io/tasks/which-task-type.md).

**2. Create the task**

Demonstrate the flow in a live browser or describe it in a prompt. Anchor compiles it into a versioned workflow of deterministic and AI steps. See [Creating a Task](https://docs.anchorbrowser.io/tasks/creating-a-task.md) and the [Automation Tasks Overview](https://docs.anchorbrowser.io/tasks/overview.md).

**3. Inspect and refine the workflow**

Review each step, edit selectors or logic, and publish new versions — with full history — from the [workflow page](https://docs.anchorbrowser.io/tasks/overview.md#the-workflow-page).

## Step 2: Centralize credentials and access

Enterprise runs shouldn't hardcode secrets or share passwords.

* **Managed identities** — store and reuse logins centrally with [Managed Authentication](https://docs.anchorbrowser.io/essentials/managed-authentication.md) and [Applications](https://docs.anchorbrowser.io/essentials/applications.md).
* **Passwords stay out of the agent** — an [identity](https://docs.anchorbrowser.io/essentials/authenticated-applications.md) signs in for the agent. No tool returns the credentials.
* **MFA** — complete secured logins unattended with [MFA](https://docs.anchorbrowser.io/advanced/mfa.md).
* **Limit what a client can do** — give a browser or a front end a [scoped access token](https://docs.anchorbrowser.io/advanced/scoped-access-tokens.md) instead of your API key.
* **Protect secrets** — keep credentials out of logs and model context with [Secret Values](https://docs.anchorbrowser.io/agentic-browser-control/secret-values.md) and [Sensitive Data Masking](https://docs.anchorbrowser.io/advanced/sensitive-data-masking.md).

## Step 3: Control the runtime

Production automations need predictable, isolated browser environments.

* **Session control** — configure and drive sessions with [Control a Session](https://docs.anchorbrowser.io/essentials/control-a-session.md).
* **Timeouts and lifecycle** — bound runtimes with [Session Timeout](https://docs.anchorbrowser.io/advanced/session-timeout.md).
* **Isolation** — each session runs in its own virtual machine, which is terminated and erased when the session ends.
* **Scale out** — run many jobs in parallel with [Batch Browser Sessions](https://docs.anchorbrowser.io/advanced/batch-browser-sessions.md). The [pricing table](https://docs.anchorbrowser.io/pricing.md) lists the concurrent browsers for each plan.
* **Network policy** — route through [proxies](https://docs.anchorbrowser.io/advanced/proxy.md) or a [dedicated sticky IP](https://docs.anchorbrowser.io/advanced/dedicated-sticky-ip.md) for allowlisted access.

## Step 4: Run, schedule, and scale

**1. Run on demand or async**

Execute tasks synchronously from your app, or kick off long-running jobs with [Async Automation Tasks](https://docs.anchorbrowser.io/advanced/async-automation-tasks.md). See [Run a Task](https://docs.anchorbrowser.io/tasks/run-a-task.md).

**2. Keep automations resilient**

Sites change; [Self-healing](https://docs.anchorbrowser.io/advanced/self-healing.md) repairs broken steps automatically and flags fragile ones for review.

**3. Skip the model on repeat work**

The [Action Index](https://docs.anchorbrowser.io/advanced/action-index.md) holds proven actions for real sites. When one matches, the step runs as code instead of model steps, which is faster and cheaper.

**4. Observe every run**

Subscribe to [Webhooks](https://docs.anchorbrowser.io/webhooks/overview.md) for run and heal events, and replay past runs from the Runs tab to debug failures. [Recording](https://docs.anchorbrowser.io/essentials/recording.md) is on by default, so each run leaves a video you can audit.

**5. Let a person step in**

For a step that needs approval, use [human in the loop](https://docs.anchorbrowser.io/agentic-browser-control/human-in-the-loop.md). A user can also watch or take over through the [embedded live view](https://docs.anchorbrowser.io/advanced/browser-live-view.md).

## Shopping and checkout automation

Procurement, price checks, cart building and checkout up to the payment step are enterprise automation too. They are also where sites block automation hardest.

* **Measured on real stores.** [Commerce Bench](https://github.com/anchorbrowser/commerce-bench) sends one shopping agent to 30 stores and grades from the browser. From a laptop browser the agent finished the task at 7 stores. On Anchor, with the best setup for each store, it finished at 19.
* **Pick the session setup per store.** A default session was the best setup for 10 stores, and Mac hardware for 9 others. [Overcome Bot Detection](https://docs.anchorbrowser.io/use-cases/bot-detection.md) has the settings for each setup.
* **Stop before payment.** State the stopping point in the prompt, as the [shopping example](https://docs.anchorbrowser.io/examples/shopping-cart.md) does. In the benchmark, no run entered a card or placed an order.
* **When a purchase is the goal,** keep the card away from the agent. [Agentcard](https://docs.anchorbrowser.io/integrations/agentcard.md) lets the user approve each payment on their own device.
* **Stores that need an account.** Some stores have no guest checkout. Use an [identity](https://docs.anchorbrowser.io/essentials/authenticated-applications.md) for those.
* **Run each store three times** before you rely on it. Results move between runs.

## Step 5: Meet security and compliance requirements

* **Trust & security** — review Anchor's controls in [Security](https://docs.anchorbrowser.io/security.md).
* **Zero data retention** — enable [ZDR Mode](https://docs.anchorbrowser.io/security/zdr-mode.md) for sensitive workloads.
* **On-premise / VPC** — run Anchor in your own environment with [On-Premise Deployment](https://docs.anchorbrowser.io/advanced/on-premise-deployment).

## Next steps

> [card] [Automation Tasks Overview](https://docs.anchorbrowser.io/tasks/overview.md)
>
> Prompts, demonstrations, the workflow UI, runs, and self-healing.

> [card] [Managed Authentication](https://docs.anchorbrowser.io/essentials/managed-authentication.md)
>
> Centralized, reusable credentials for every run.

> [card] [Run a Task](https://docs.anchorbrowser.io/tasks/run-a-task.md)
>
> Execute with inputs, identity, and sync or async modes.

> [card] [Webhooks](https://docs.anchorbrowser.io/webhooks/overview.md)
>
> Get notified on run completion and failures.


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