Installation
1
Install the CLI globally
2
Install Playwright browsers (if needed)
BAP prefers your installed Chrome. If Chrome is not available:
bash npx playwright install chromium 3
Install the skill file for your AI agent
bash bap install-skill This auto-detects 13 AI agent platforms (Claude Code, Codex CLI,
Gemini CLI, Cursor, GitHub Copilot, Windsurf, Roo Code, and more) and installs the SKILL.md
guidance file.4
Run the guided demo
First Commands
Composite Actions
The killer feature of BAP CLI isbap act — batch multiple browser steps in one command:
action:selector=value for fill/type, action:selector for click/check/hover.
Observation
Fused Operations
Combine navigation or actions with observation in a single server call:Structured Extraction
Sessions and Tabs
Global Options
Output
Commands produce concise, agent-friendly stdout:.bap/ in the current directory: snapshots (.yml), screenshots (.png), extractions (.json).
Migrating from playwright-cli
BAP is a drop-in replacement. Alle<N> refs from snapshots work identically:
BAP adds composite actions, semantic selectors, smart observation, and structured extraction on top.