Install the BAP CLI and run your first browser commands
The BAP CLI lets AI coding agents automate browsers from the shell. It defaults to installed Chrome, keeps a persistent daemon running, and supports composite actions that batch multiple steps into one command.
# Open a page and observe interactive elementsbap goto https://example.com --observe# Click a link by visible textbap click text:"More information..."# Take a screenshotbap screenshot
The BAP server starts automatically on first use and stays running as a background daemon. Use
bap close-all to stop it.
# Interactive elements (default max 50)bap observe# Full accessibility treebap observe --full# Form fields onlybap observe --forms# Incremental: only changes since last observationbap observe --diff# Minimal response (fewer tokens)bap observe --tier=minimal
# Extract specific fieldsbap extract --fields="title,price,rating"# Extract a list of itemsbap extract --list="product"# Extract using a JSON schemabap extract --schema=product.json