Skip to main content
Give your AI agents a real browser in the cloud. Instead of scraping brittle HTML or wiring up per-site APIs, your agents open an Anchor session on demand and drive it like a human would — navigate, authenticate, click, fill forms, and extract structured data. This guide walks you through connecting Anchor to your agent platform step by step, and links to the reference pages for each integration path. Anchor is infrastructure, not an agent framework. Your agent decides what to do. Anchor supplies the browser, the network, the logins and a recording of what happened.

The shortest path

One call runs a task in a new cloud browser and returns JSON in the shape you ask for:
If you use a coding agent, the Copy prompt button on the docs home page gives it a setup prompt for your project.

Choose an integration path

Step 1: Provision a browser your agent can drive

1

Get your API key

Create an API key in the Anchor dashboard. Store it as ANCHORBROWSER_API_KEY in your environment.
2

Install the SDK

Install the official Node.js or Python client and confirm it can reach Anchor. See Use via SDK.
3

Create a session on demand

When your agent needs a browser, create a session and connect over CDP with Playwright or Puppeteer. See Create a Session for the full connection flow.

Step 2: Give the agent control primitives

Once connected, your agent needs a small, reliable set of actions it can call.
  • Navigate and interact — drive the page programmatically. See Control a Session.
  • Extract data — get the rendered HTML of any URL in one call with Web Unlocker, or ask for structured JSON with a web task and an output_schema.
  • OS-level control — when a task needs mouse, keyboard, or clipboard beyond the DOM, use OS-Level Control.

Step 3: Wire it into your agent framework

Pick the path that matches how your agents are built.

Option A: Use the framework integrations

Connect Agents to Browsers

The integration overview — flexible tool, specific-flow tools, or Anchor-defined tasks.

CrewAI

Add Anchor as a browsing tool your CrewAI agents can call.

LangChain

Drive Anchor sessions from LangChain agents and chains.

Custom Framework

Integrate Anchor into your own agent runtime.

Option B: Expose Anchor through MCP

If your agent speaks the Model Context Protocol, connect Anchor as an MCP server and let the model open and drive browsers as a native tool. There are three hosted servers on one account:
  • https://api.anchorbrowser.io/v1/mcp: web tasks, managed logins, saved automations and browser sessions. Start here.
  • https://api.anchorbrowser.io/v1/mcp/browser: step-by-step control of a live browser.
  • https://api.anchorbrowser.io/v1/mcp/actions: verified actions for known sites that run as code, with no model steps.
Plugins are available for Claude Code, Cursor, Grok, Antigravity and Hermes.

MCP Server

Setup for each client, the tool list, and the plugin install commands.

Open Source MCP

Self-host the Anchor MCP server.

Option C: Deploy an existing open-source agent

Already using Browser Use or Stagehand? Point them at Anchor.

Browser Use

Run Browser Use agents on Anchor’s managed browsers.

Stagehand

Use Anchor as the browser backend for Stagehand.

Option D: Run the agent code in a sandbox

Keep your agent’s code in a sandbox and the browser in Anchor. See Sandboxes for E2B, Daytona, CreateOS and Tenki.

Option E: Use a computer-use model

Drive the session with a computer-use agent from OpenAI, Anthropic or Gemini, or with Jev, Anchor’s own browser agent. See Jev and the other pages in that group.

Step 4: Handle logins and stay undetected

Production agents hit sites that require auth and block bots. Anchor handles both.
  • Managed authentication — an identity is a managed login for one site. Anchor signs in and handles MFA, and the agent never sees the password. Starter plan and above.
  • Stay undetected — start with a default session and add a proxy, captcha solving, extra stealth or Mac hardware only when a site needs it. Overcome Bot Detection has the settings for each step and what each plan includes.

Step 5: Know what the agent did

An agent can say that it finished when it did not. Check the result, not the claim.
  • Check the status. A task result has a status. Treat anything other than success as a failure.
  • Ask for a shape. Pass an output_schema and validate what comes back.
  • Watch or replay. Every session has a live_view_url, and recording is on by default.
  • Let a person step in. Human in the loop lets a user take over a step that the agent should not do alone.
  • End the session. Call DELETE /v1/sessions/{id} when the work is done. A session is billed until it ends.

Next steps

Create a Session

Launch your first cloud browser and connect over CDP.

Connect Agents to Browsers

Full integration overview for agent frameworks.