browser-control
A compact shell interface for coding agents to observe and operate real CDP browsers.
- Source repo
- keon/browser-control
- Stars
- ★ 3.2k
- Last updated
- 2mo ago
- License
- MIT
- Primary language
- Rust
- FA score
- 55/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platform
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A coding-agent developer can add browser navigation, form entry, and element interaction to an existing shell-capable agent without adopting a browser SDK.
- Not a fit if
- Teams that need Firefox or Safari support
- Users wanting built-in planning and retry logic
- Environments without a writable workspace or Chrome/CDP
- Maintenance
- Commits in the last 6 monthslast commit 2026-08-27latest release v0.1.1 (2026-06-21)
- Source review
- 55/100 · Major gaps
What does this agent do, and when should you use it?
browser-control is a small Rust CLI that lets coding agents drive local or remote real browsers through the Chrome DevTools Protocol. It contains no LLM and requires neither MCP nor an agent framework; instead, it exposes snapshots, actions, scripts, and raw CDP calls as composable shell subcommands. snapshot returns actionable elements with stable @e1 and @e2 references, while CSS selectors and screen coordinates remain available. A hidden daemon retains bounded DOM event, network, and console histories, and command failures can produce diagnostic bundles under .browser-control/traces/. The CLI can launch local Chrome, attach to an existing CDP endpoint, or provision sessions through Browser Use, Steel, Hyperbrowser, and Browserbase presets. It is best suited to coding agents that already supply planning and retry behavior but need a debuggable browser execution layer.
An end-to-end session starts with browser-control init, which creates the .browser-control/ workspace, followed by launch <url> or connection through BROWSER_CONTROL_CDP_URL or BROWSER_CONTROL_CDP_WS. The agent runs snapshot—also available as observe—to read actionable page elements, then passes the returned @eN references to commands such as click, fill, select, upload, drag, press, and scroll; CSS selectors and coordinates are alternative targets. Observation commands expose page metadata, visible text, events, requests, console messages, frames, cookies, and tabs. eval runs JavaScript in the page, while cdp invokes raw Chrome DevTools Protocol methods. The CLI also waits for loads, network idleness, or elements; captures screenshots and PDFs; and manages tabs, viewports, downloads, and native dialogs. run executes workspace scripts with BROWSER_CONTROL_BIN and BROWSER_CONTROL_WORKSPACE, while the opt-in --from-stdin mode executes shell commands supplied on standard input. Its daemon communicates over .browser-control/daemon.sock, maintains small in-memory telemetry rings, and contributes available context to failure traces.
- A coding-agent developer can add browser navigation, form entry, and element interaction to an existing shell-capable agent without adopting a browser SDK.
- An engineer debugging a brittle web workflow can correlate
snapshot,events,network,console, and failure traces to identify where an action broke. - An automation author working with canvases, maps, or pages without stable DOM nodes can combine reference-based actions with coordinate clicks and drags.
- A team moving workflows between local Chrome and hosted browsers can retain the same command surface while changing the CDP endpoint or cloud-provider configuration.
- A CI or test maintainer can build reproducible browser flows around locked Rust dependencies, shell scripts, screenshots, PDFs, and
scripts/verify.sh.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
cargo install browser-control-cli
- Environment variables
BROWSER_CONTROL_CDP_URLBU_CDP_URLSTEEL_API_KEYBROWSER_USE_API_KEYHYPERBROWSER_API_KEYBROWSERBASE_API_KEY- Config files
rust-toolchain.toml- Install notes cover
- macOS · Linux
How do you install or deploy this agent?
The shortest installation path uses crates.io:
cargo install browser-control-cli
browser-control --versionThe crate is named browser-control-cli, but it installs the browser-control command. Prebuilt release archives are another option; the documented macOS/Linux example is:
curl -fsSL https://github.com/keon/browser-control/releases/latest/download/browser-control-aarch64-apple-darwin.tar.gz | tar xz
install -m 0755 browser-control /usr/local/bin/To build from source:
git clone [email protected]:keon/browser-control.git
cd browser-control
rustup toolchain install
cargo build --locked --release
install -m 0755 target/release/browser-control /usr/local/bin/
browser-control --versionRuntime use requires a recent Chrome or Chromium build reachable over CDP. Source builds additionally require the Rust toolchain pinned in rust-toolchain.toml.
How do you use this agent?
A first local session can be started with:
browser-control init
browser-control launch https://example.com
export BROWSER_CONTROL_CDP_URL=http://127.0.0.1:9222
browser-control doctor
browser-control snapshot
browser-control click @e1
browser-control eval 'document.title'
browser-control cdp Browser.getVersionTo attach to an existing browser, skip launch and set BROWSER_CONTROL_CDP_WS or BROWSER_CONTROL_CDP_URL; the BU_CDP_WS and BU_CDP_URL aliases also work. For a hosted Steel session:
export BROWSER_CONTROL_CLOUD_PROVIDER=steelexport STEEL_API_KEY=...
browser-control cloud-startThe other built-in providers require BROWSER_USE_API_KEY, HYPERBROWSER_API_KEY, or both BROWSERBASE_API_KEY and BROWSERBASE_PROJECT_ID, as applicable. cloud-start prints the CDP endpoint to export, after which the regular snapshot, action, and observation commands are used.
What are this agent's strengths and limitations?
- Its shell-native interface emits compact text or JSON and introduces no required SDK, application server, MCP deployment, or language binding.
snapshotsupplies agent-oriented stable@eNhandles while preserving CSS selectors and coordinates for cases where references are unsuitable.evaland rawcdpprovide escape hatches when the convenience commands do not expose a required browser operation.- The same commands address local Chrome, existing CDP endpoints, and several preset hosted-browser providers.
- Daemon-held event, request, and console histories feed automatic failure traces, giving an agent concrete evidence for diagnosis.
- It requires Chrome or Chromium reachable through CDP and does not document Firefox or Safari support.
- Planning, retries, model inference, and broader agent behavior are intentionally outside the product, so adopters must supply that orchestration.
- Operation relies on a writable
.browser-control/workspace, a daemon socket, state artifacts, and optional trace files that need filesystem access and lifecycle management. - Hosted sessions require provider credentials; Browserbase also requires a project ID, and custom providers need explicit API, authentication, path, and CDP-field configuration.
- No native integration is documented for ChatGPT, Claude AI, the OpenAI API, or the Claude API; a host environment must be able to invoke the CLI itself.
How does this agent compare with similar options?
The project says it was inspired by Vercel's agent-browser and Browser Use's browser-harness. Its stated design emphasis is a deliberately small, shell-native Rust CLI that exposes CDP, snapshots, scripts, and browser state as general mechanisms while leaving planning, retries, and file editing to the coding agent. The supplied material does not provide feature-by-feature or performance comparisons with either alternative.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| browser-control This agent | 55 · Major gaps | CLIFree | ★ 3.2k | 2mo ago | Rust | — |
| bdg Browser Debugger | 73 · Some gaps | CLIFree | ★ 186 | 4d ago | TypeScript | Codex · Claude Code |
| PinchTab | 58 · Major gaps | Self-hosted serviceFree | ★ 11k | 1mo ago | Go | — |
| Steel Browser | 49 · Major gaps | Self-hosted serviceFreemium | ★ 8k | today | TypeScript | — |
How does FollowAgents rate this agent?
Why each dimension lost points
The CLI connects to a browser when commands are invoked, which offers some least privilege; however, raw CDP, arbitrary eval, HTTP requests, uploads, cloud sessions, and browser interactions provide broad capabilities, with no visible permission tiers. Commands such as click, close-tab, upload, and cloud start/stop have no confirmation step, so confirmation is only partially addressed. The README describes CDP, cloud-key environment variables, in-memory daemon event rings, and failure-trace locations, and provides a setting to disable traces. It does not explain trace cleanup or sensitive-content filtering. Dependency versions are pinned and Cargo.lock is described, but there is no evidence of auditing or vulnerability mitigation. A stop command for browsers launched by the tool provides limited recovery; other external actions lack general rollback guidance. A repository URL and MIT copyright holder are shown, but publisher identity is unverified and does not establish maintainer identity.
The docs broadly correspond to the visible CLI definition, but AGENTS.md recommends an inspect command absent from the supplied main.rs subcommand definition, so self-consistency is reduced; the source excerpt is incomplete, so other implementation cannot be assessed. Cargo.toml pins direct dependencies, and the README describes a lockfile and Rust toolchain, providing some availability support, but no offline or failure fallback is shown. anyhow errors are returned, failures attempt to write a trace, and the docs describe trace contents; more specific error categories or recovery guidance are not visible.
The README clearly targets coding agents that can use a shell and covers local and several cloud CDP providers, observation, interaction, and debugging. The capability boundary says this is a browser command tool rather than a planning framework, while providing eval/CDP escape hatches; those escape hatches also broaden the action surface. Invocation is clear through explicit subcommands, opt-in stdin, and init-time copying of skill notes. Rust is required to build from source, and Chrome/Chromium reachable over CDP is required; prebuilt binaries for several platforms are described, but no broader browser or environment compatibility matrix is shown.
The README is organized around installation, quick start, selectors, commands, cloud browsers, observability, and architecture, with many command examples. AGENTS.md gives an actionable workflow but differs from the visible CLI on inspect. Installation paths, toolchain requirements, and the command name are explained. The difference between project, crate, and binary names is explicit. Common commands and scripts are illustrated, but there is no FAQ. The README mentions selected robustness choices without systematically listing limitations. The complete MIT text supports full marks. A version and tag-triggered release workflow are visible, but the supplied material has no changelog. A repository address and copyright holder are present, while maintenance responsibility, support channels, and verified identity remain unclear.
Snapshot refs, compact text/JSON, scripts, and failure traces support shell workflows and Agent consumption, but the supplied material does not show every output mode in practice, so full marks are not justified. Stable refs, CDP access, event diagnostics, and cloud-browser support offer visible value over hand-written browser scripts. Installation and runtime costs are described, and the Rust CLI avoids a required long-running framework service; performance and cost are not quantified, and cloud services can add external costs, so the score is conservative.
Many checkable README claims correspond to Cargo.toml, the visible CLI definition, the license, and the release workflow; however, main.rs and the test script are incomplete in the supplied material, and documented verification commands do not prove execution. The README, AGENTS.md, and source provide partial corroboration; the inspect-command discrepancy shows they are not fully aligned. Design intent and usage guidance are relatively clear, but claims about performance, stability, and success rates lack quantitative evidence, so fact and inference are only partially separated.
- The tool has broad browser-control and raw CDP/eval capabilities; confirm the target browser and page are appropriate before using cloud sessions, uploads, or page scripts.
- The README says failure traces may store daemon state and event, network, and console history; the supplied material does not describe sensitive-data filtering or automatic cleanup.
- AGENTS.md recommends an inspect command that does not appear in the supplied CLI definition. The source and test materials are incomplete, so command availability and verification results cannot be confirmed.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
FAQ
Does it include an LLM or require an MCP server?
Can it attach to a browser that is already running?
BROWSER_CONTROL_CDP_WS or BROWSER_CONTROL_CDP_URL to the existing CDP endpoint and omit launch.What diagnostic evidence is available after a failure?
.browser-control/traces/<timestamp>/ containing the error and any available daemon state, event, network, and console history. BROWSER_CONTROL_NO_TRACE=1 disables this.Is cloud execution tied to one browser provider?
Must users compile it from source?
cargo install browser-control-cli or downloaded as a prebuilt release binary. A Rust toolchain is required only for the documented source-build path.Is browser-control free?
Is browser-control open source?
Is browser-control safe to use?
Is browser-control still maintained?
Who makes browser-control?
Thanks — we use this to improve the page.