Browser Harness is a browser operation tool for coding agents. Its core purpose is to let agents such as Claude Code, Codex, or Cursor directly drive the user's real, logged-in Chrome browser, thereby completing web operation tasks while preserving personal login state.
Main capabilities: agents can open pages, click, type, read content, and download files, and they run logged in as the user. It communicates with Chrome via the Chrome DevTools Protocol (CDP). Agents can write missing helper functions themselves during work, so the tool becomes more useful as tasks accumulate. The project uses the MIT open-source license.
Usage: users paste a setup prompt into the coding agent to complete configuration. The agent opens chrome://inspect/#remote-debugging; on first setup, a checkbox must be checked to allow the agent to connect to the browser. The repository's install.md connects the agent to the browser, SKILL.md teaches the browser workflow, and the src/browser_harness/ directory remains protected while the agent writes reusable helper functions in the local workspace. The project now serves as the engine for Browser Use; the browser-use CLI is recommended, as it provides the same helper functions and daemon, plus browser-use login, an MCP server (browser-use --cli-mcp), and browser-use skill install. The old browser-harness command remains available, and domain skills and interaction skills are still kept in this repository. For Cursor, the MCP configuration can be added to the project's .cursor/mcp.json or the global ~/.cursor/mcp.json; this configuration requires uv.
Use cases: suitable for coding agent workflows that need to perform web tasks in a logged-in personal Chrome, such as opening a personal social media homepage, finding and downloading content, etc. The official example task is "open my X homepage, find my 20 most recent video posts and download them." When capabilities such as large numbers of parallel browsers, live preview, proxies, stealth, and CAPTCHA solving are needed, the official recommendation is to use the Browser Use Cloud extension.
Limitations and comparison: the official [text cuts off] in 200 public BU A matched evaluation was conducted on 100 tasks (bu2-001 to bu2-100) in Bench V2.1, with measurements taken on 2026-10-14; all tools used the same agent (Codex CLI 0.144.6, GPT-6 Luna, medium reasoning, web search disabled) and the same frozen judge, each task was run once, and agent failures were not retried. The results show that no tool won on score, and the 95% confidence interval for every paired difference with Browser Harness includes zero. Browser Harness had the lowest median input tokens (2.1M, versus 3.3-6.7M) and the lowest median model cost ($0.042, versus $0.056-0.097, excluding browser, proxy, and judge costs); it was slower than Playwright MCP and Chrome DevTools MCP (median 9.0 minutes versus 8.3 and 8.7 minutes) and faster than agent-browser (11.2 minutes). This evaluation used only Codex for measurement and did not measure Claude Code, Cursor, Playwright CLI, or Claude in Chrome. Official recommendations: use Playwright when isolated, repeatable CI testing is needed; use Chrome DevTools MCP when performance tracing and DevTools debugging are needed; use Claude in Chrome only when using Claude exclusively and on a Pro, Max, Team, or Enterprise plan; use Cursor's built-in browser when the agent does not need a logged-in Chrome.