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

# Task Quick Start

> Run your first browser task with a natural-language prompt.

Run a one-shot task with natural language — no click-by-click scripting required.

**1. Get your API key**

Copy your key from [Anchor UI](https://app.anchorbrowser.io/api-keys).

**2. Install the SDK**

```bash Node.js theme={null}
npm install anchorbrowser
```

```bash Python theme={null}
pip install anchorbrowser
```

**3. Pass an instruction to the browser agent**

```javascript Node.js theme={null}
import { client, agentTask } from 'anchorbrowser';

client.setConfig({ auth: () => process.env.ANCHORBROWSER_API_KEY });

const result = await agentTask(
  'Go to books.toscrape.com and return the page title'
);

console.log(result);
```

```python Python theme={null}
import os
from anchorbrowser import Anchorbrowser

anchor_client = Anchorbrowser(api_key=os.getenv('ANCHORBROWSER_API_KEY'))

result = anchor_client.agent.task(
    'Go to books.toscrape.com and return the page title'
)

print(result)
```

> [!TIP]
>
> You should see a task result with the page title in your terminal.

## Next steps

* [Perform Web Task](https://docs.anchorbrowser.io/agentic-browser-control/ai-task-completion.md) — options, sessions, and async execution
* [Creating a task](https://docs.anchorbrowser.io/tasks/creating-a-task.md) — versioned workflows you deploy and reuse
* [Run a task](https://docs.anchorbrowser.io/tasks/run-a-task.md) — execute a saved task via API
* [SDK quick start](https://docs.anchorbrowser.io/quickstart/use-via-sdk.md) — structured extraction, screenshots, and more


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