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

# Chat

> Ask Anchor in the dashboard to start browser sessions, run code in them, build tasks, find docs pages and write SDK code. Covers what it can do, what it asks before doing, and what it costs.

Chat is an assistant in the Anchor dashboard at [app.anchorbrowser.io/chat](https://app.anchorbrowser.io/chat). You ask in plain English. It starts browser sessions, runs code in them, builds and runs tasks, looks up your account, finds pages in these docs and writes SDK code.

It works through the same API that you use. It can do what your account can do and nothing more, and the sessions and tasks it runs are billed like any others.

![The Chat page with an empty composer and five suggestions: What can Anchor do, Find in the docs, Start a session, Create a task, Generate SDK code.](https://mintcdn.com/anchor-b3ec2715/1ZHaDhMcSgOoxCS0/images/chat/chat-home.png?fit=max\&auto=format\&n=1ZHaDhMcSgOoxCS0\&q=85\&s=7c811a8a53175deff139a389ba2c2570)

## Start a chat

Open **Chat** in the dashboard sidebar and type in the composer. The five buttons under it fill the composer with a starting prompt that you can edit before you send it.

| Button | Prompt it fills in |
| - | - |
| What can Anchor do | What capabilities does Anchor have? Give me a quick tour. |
| Find in the docs | Where in the docs can I learn about identities and authentication? |
| Start a session | Start a new browser session and show me the live view. |
| Create a task | Create a task that goes to `<website>` and extracts `<the data I need>`. |
| Generate SDK code | Write example code with the Anchor SDK that starts a session, opens `<your site>` over CDP and reads the page content. |

Each chat gets a title from its first message and is kept in the list on the left. Use the filter box to find an earlier one.

## What you can ask for

### Drive a browser

Ask it to open a site, and it starts a session and shows the live browser in a panel on the right. The panel appears on screens at least 1024px wide. Ask a follow-up, and it runs Playwright code in that same session. The transcript shows the code it ran and the output, so you can check the answer against what happened.

![A chat where Anchor ran Playwright code to read the top story on Hacker News. The code and its JSON output are in the transcript, and the live browser is in a panel on the right.](https://mintcdn.com/anchor-b3ec2715/1ZHaDhMcSgOoxCS0/images/chat/chat-browser-panel.png?fit=max\&auto=format\&n=1ZHaDhMcSgOoxCS0\&q=85\&s=ada47d58be8cbe9b70eaf59815c4df00)

The panel has two tabs. **Browser** shows the live session, with **Take control** to use it yourself. **Artifacts** lists the sessions that the chat created.

When you are done, ask it to end the session. A session that you leave open is billed until it ends or times out.

### Build a task

Ask it to create a task, and it writes a short plan and gives you a demonstration link. You open the link, do the steps once in the browser and click **Finish**. Anchor turns what you did into a reusable [automation task](https://docs.anchorbrowser.io/tasks/overview.md).

### Run a task

Ask it to run one of your tasks. Before it runs, it asks you to approve. See [What it asks before it acts](#what-it-asks-before-it-acts).

### Find something in the docs

Ask a question about the product, and it searches these docs and answers with links to the pages it used.

![A chat answer that lists the docs pages about identities and authentication, each as a link, with a recommended reading order.](https://mintcdn.com/anchor-b3ec2715/1ZHaDhMcSgOoxCS0/images/chat/chat-docs-answer.png?fit=max\&auto=format\&n=1ZHaDhMcSgOoxCS0\&q=85\&s=20fab6da24368c05e9799fed16621974)

### Write SDK code

Ask for code, and it reads the SDK reference first, then writes TypeScript and Python. Run the code before you rely on it. See [Check its work](#check-its-work).

### Look up your account

Ask about your sessions, tasks, identities, applications or profiles, and it reads them from your account.

## What it asks before it acts

Chat asks for your approval before two actions:

* **Running a task.** The card says that this runs the task on production infrastructure and may use credits.
* **Publishing a task.**

The card shows the exact parameters. Choose **Approve** to go ahead, or **Deny** and, if you want, type a reason. The reason goes back to the assistant, so you can redirect it, for example "wrong task, use the staging one".

![An approval card titled Approve running the task, showing the task id and parameters, with Deny and Approve buttons.](https://mintcdn.com/anchor-b3ec2715/1ZHaDhMcSgOoxCS0/images/chat/chat-approval.png?fit=max\&auto=format\&n=1ZHaDhMcSgOoxCS0\&q=85\&s=c2dfde00a5e11a4eb29ad9b9162e2e81)

It does **not** ask before it starts or ends a browser session, runs code in a session, or creates a demonstration link. Keep that in mind if you watch your usage closely.

It can also ask you a question when it needs a choice from you. You pick an option, type your own answer, or skip.

## Chat from any page

The **Toggle chat panel** button in the dashboard header opens Chat in a side panel on any page, so you can ask about what you are looking at. The panel has buttons for a new chat, the chat history and opening the chat as a full page.

## Check its work

Chat is an assistant, and it can be wrong. Three habits help:

* **Read the code and output it shows.** A "Ran code" step expands to the code and the result.
* **Run generated SDK code before you use it.** Check property and method access against the SDK reference. In Playwright for Node.js, for example, `contexts()` and `pages()` are methods: `browser.contexts()[0].pages()[0]`.
* **End what it started.** Ask it to end the session, or end it from the [Sessions](https://app.anchorbrowser.io/sessions) page.

If a reply stops part way, the transcript shows **Stopped before finishing** with a **Continue** action. If it stops because of an error, it shows a **Retry** action.

## What it costs

Chat use is metered in tokens. Your total appears as **Chat Tokens** on the [Usage](https://app.anchorbrowser.io/usage) page. Chat has no line of its own in the [pricing table](https://docs.anchorbrowser.io/pricing.md), so ask Anchor for the current rate if you need it.

The sessions it starts and the tasks it runs are billed as they are when you start them yourself.

## Related

> [card] [Automation Tasks](https://docs.anchorbrowser.io/tasks/overview.md)
>
> What a task is, and how demonstration creates one.

> [card] [Browser Sessions](https://docs.anchorbrowser.io/quickstart/browser-sessions.md)
>
> What a session is, its timeouts and how it is billed.

> [card] [MCP](https://docs.anchorbrowser.io/advanced/mcp.md)
>
> The same capabilities from Claude, Cursor and other clients.

> [card] [Session Recording](https://docs.anchorbrowser.io/essentials/recording.md)
>
> Replay what a session did.


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