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

# Goose

> Give Goose a cloud browser: add the Anchor MCP server as a remote extension.

Connect [Goose](https://goose-docs.ai) to Anchor's hosted MCP server as a remote extension. Goose can then run web tasks in plain English, open cloud browser sessions and work inside accounts you have signed in to.

Tested with Goose 1.61.1.

## Quick setup

Add the extension to the `extensions` section of `~/.config/goose/config.yaml`:

```yaml theme={null}
extensions:
  anchor:
    type: streamable_http
    name: anchor
    enabled: true
    uri: https://api.anchorbrowser.io/v1/mcp
    timeout: 300
```

Start a session:

```bash theme={null}
goose session
```

Ask Goose what it can see:

```text theme={null}
List the tools you have from the anchor extension.
```

It should report 29 tools, starting with names such as `create_identity` and `perform_web_task`.

You can also add it without editing the file:

* **CLI:** run `goose configure`, choose **Add Extension**, then **Remote Extension (Streamable HTTP)**, and paste the URL.
* **Desktop:** open **Extensions**, choose **Add custom extension**, and paste the URL.

> [!NOTE]
>
> Goose uses `uri`, not `url`, and the type must be `streamable_http`. Goose no longer supports SSE extensions.

## Use an API key instead

For CI or a project other than your default, send an API key. Create one at [API Keys](https://app.anchorbrowser.io/api-keys) and export it in the shell you start Goose from:

```bash theme={null}
export ANCHORBROWSER_API_KEY="YOUR_ANCHOR_API_KEY"
```

```yaml theme={null}
extensions:
  anchor:
    type: streamable_http
    name: anchor
    enabled: true
    uri: https://api.anchorbrowser.io/v1/mcp
    headers:
      anchor-api-key: "$ANCHORBROWSER_API_KEY"
    env_keys:
      - ANCHORBROWSER_API_KEY
    timeout: 300
```

Write the header value as `$ANCHORBROWSER_API_KEY` and keep the matching `env_keys` entry. Goose replaces it with the variable's value when it connects, so the key stays out of the file.

## Try it

```text theme={null}
Use Anchor to open https://books.toscrape.com and return the title and price of the first three books.
```

```text theme={null}
A Light in the Attic — £51.77
Tipping the Velvet — £53.74
Soumission — £50.10
```

```text theme={null}
Create an Anchor identity for https://linkedin.com and give me a link to sign in.
```

## Troubleshooting

* **The extension is missing:** confirm `enabled: true`, then start a new `goose session`.
* **Sign-in does not open:** use the API key setup above.
* **401 Unauthorized:** check that `ANCHORBROWSER_API_KEY` is exported in the shell that starts Goose and listed under `env_keys`.
* **Calls time out:** raise `timeout`. A web task can run longer than a minute, which is why Anchor's long-running tools return an id to poll.

## Next steps

* [MCP servers and tools](https://docs.anchorbrowser.io/advanced/mcp.md): the three Anchor servers and what each tool does.
* [All integrations](https://docs.anchorbrowser.io/integrations/overview.md)


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