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

Or run without installing:

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

See the full benchmark methodology for details on how these numbers were measured.