Skip to main content
BAP is an open standard for AI agents to control web browsers. It works with any AI agent — Claude Code, Codex, Cursor, Gemini CLI, and more.

Why BAP

Fewer Calls

Fused operations combine navigate + observe, act + observe, and multi-step composite actions into single roundtrips. 37% fewer tool calls than Playwright.

Smarter Selectors

10 selector types including role:button:"Submit", label:"Email", and text:"Sign in". Resilient to layout changes, no brittle CSS paths.

Zero Config

Auto-discovers Chrome, launches a persistent daemon, and keeps sessions warm across commands. bap goto <url> just works.

Quick Install

npm i -g @browseragentprotocol/cli
bap goto https://example.com --observe
Or run without installing:
npx @browseragentprotocol/cli goto https://example.com --observe

Choose Your Path

CLI

Best for AI coding agents with shell access. Install globally and run bap commands.

MCP

Best for Claude, Codex, Cursor, and other MCP-native AI agents. Add BAP as an MCP server.

TypeScript SDK

Best for custom apps and agent backends. Full programmatic control.

Python SDK

Best for notebooks and Python agents. Mirrors the TypeScript API.

Benchmarks

ScenarioBAP StandardBAP FusedPlaywrightFused vs PW
baseline222Tie
observe212-50%
form435-40%
ecommerce8511-55%
workflow545-20%
Total231727~37%
See the full benchmark methodology for details on how these numbers were measured.