Crawl: the most reliable web crawler APISee what’s new
Zenrows
Talk to sales Start free

AI agent browser

An AI agent browser is a real cloud browser an AI agent controls to act on websites: open pages, log in, click, type, fill forms and read what loads. Zenrows Browser gives agents that browser through MCP tools like browser_navigate and browser_click, or Playwright and Puppeteer over CDP, with Zenrows' stealth on every session.

Updated

Sample output: one agent task, step by step
{
  "task": "Find the newest invoice in the supplier portal",
  "session_id": "sess_8c41e2",
  "steps": [
    { "tool": "browser_navigate", "url": "https://portal.example.com/login" },
    { "tool": "browser_fill", "selector": "#email", "value": "ops@example.com" },
    { "tool": "browser_fill", "selector": "#password", "value": "********" },
    { "tool": "browser_click", "selector": "button[type=submit]" },
    { "tool": "browser_wait_for_selector", "selector": "table.invoices" },
    { "tool": "browser_get_text", "selector": "table.invoices tbody tr:first-child" },
    { "tool": "browser_close" }
  ],
  "result": {
    "invoice": "INV-2026-0912",
    "amount": 1240.0,
    "currency": "EUR",
    "due_date": "2026-11-05"
  },
  "session_minutes": 2
}
Illustrative trace through the Zenrows MCP server: real tool names, placeholder portal and values.

What teams use an agent browser for

If one request returns the page, Fetch is faster.

A browser earns its place at a login, form or click.

JobData you collectTypical sources
Portal logins and downloads Invoices, statements, order and shipment status Supplier portals, Maersk and Hapag-Lloyd, utilities
Form-driven lookups Results behind a search form State court portals, company registries, county property search
Availability checks Slots, seats or stock behind clicks Government appointments, airline booking, ticketing
Configurators and quotes A price that depends on options Car configurators, insurance quotes, B2B calculators
Dynamic dashboards Numbers behind tabs, filters or scroll Seller centers, analytics dashboards
Checking your own flows Sign-up, search and checkout still working Your staging and production apps

Why agents fail in a browser

A smart agent still fails if a local headless browser is flagged, loses its login or dies mid-task.

What it looks like

A Turnstile loop or "verify you are human" on step one

How Zenrows handles it

Zenrows' stealth gets through Cloudflare Turnstile and similar

Set up an AI agent browser with Zenrows

  1. Connect the agent: claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp, or https://mcp.zenrows.com/mcp with a Bearer key in any MCP client.
  2. Describe the goal and end state; the agent starts with browser_navigate and picks each step.
  3. Script the parts that never change, like logins, in Playwright or Puppeteer over CDP; the model takes the variable part.
  4. Close every session with browser_close and log session minutes per task.
// npm install playwright-core
import { chromium } from "playwright-core";

const browser = await chromium.connectOverCDP(
  "wss://browser.zenrows.com?apikey=YOUR_ZENROWS_API_KEY"
);
const context = browser.contexts()[0] ?? (await browser.newContext());
const page = await context.newPage();

// Scripted login: credentials stay in env vars, never in the prompt.
await page.goto(LOGIN_URL);
await page.fill("#email", process.env.PORTAL_USER);
await page.fill("#password", process.env.PORTAL_PASSWORD);
await page.click("button[type=submit]");
await page.waitForSelector("main");

// Hand the model a compact view of the page to choose its next action.
const snapshot = await page.locator("main").ariaSnapshot();
console.log(snapshot);

await browser.close();

What success looks like

MeasureWhat good looks likeHow to check it
Task completion Test tasks reach their end state Weekly rerun of known-answer tasks
Steps per task Stable step counts per task Tool calls per task in the trace
Session minutes per task Minutes match the work, no idle tail Session duration against last action time
Orphaned sessions Every session closed Each opening browser_navigate has a browser_close
Challenge pages Block pages are rare on your targets Screenshot or log pages with a challenge marker
Human handoffs Few tasks need a person Tasks escalated to a human per week

AI agent browser FAQ

  • A browser an AI agent drives instead of a person: given a goal, it reads each page and picks the next action (click, type, select, scroll, wait). Zenrows Browser runs it in the cloud, reached over MCP or CDP.

  • Connect the Zenrows MCP server: claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp in Claude Code; in Cursor, Windsurf, VS Code and others, https://mcp.zenrows.com/mcp with your key as Bearer token. The agent gets the browser_* tools.

  • Yes, with credentials you may use; the session keeps cookies. Safer: script the login in Playwright from environment variables and hand the model the logged-in page, so passwords never enter the prompt.

  • MCP when the path is unknown and the model decides; Playwright or Puppeteer over CDP for fixed, fast, repeatable flows. Both use the same Zenrows Browser: script the fixed part, hand the rest to the agent.

  • Zenrows' stealth gets agents through Cloudflare, Turnstile, DataDome and Akamai checks like a regular visitor. browser_screenshot shows what it saw at any step.

  • What a person does on a page: browser_navigate opens a URL; browser_click, browser_fill, browser_type and browser_select_option act; browser_scroll and browser_wait_for_selector move and wait; browser_get_text, browser_get_accessibility_tree, browser_screenshot and browser_evaluate read. Also tabs, cookies, back and forward; browser_close ends the session.

  • When the page needs no interaction: Fetch returns HTML, Markdown or JSON in one request, rendering only when needed (Adaptive Stealth Mode), no session. Most agents use both.

Turn the live web into usable data.