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
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
| Scenario | BAP Standard | BAP Fused | Playwright | Fused vs PW |
|---|---|---|---|---|
| baseline | 2 | 2 | 2 | Tie |
| observe | 2 | 1 | 2 | -50% |
| form | 4 | 3 | 5 | -40% |
| ecommerce | 8 | 5 | 11 | -55% |
| workflow | 5 | 4 | 5 | -20% |
| Total | 23 | 17 | 27 | ~37% |