browser-harness
The simplest, thinnest, and most powerful harness to control your real browser with your agent.
Decision gist · record as of 2026-08-14
Yes, if you need an LLM to control a real browser and want the agent to improve itself during execution. The package is actively maintained, has low install friction, carries a permissive MIT license, and is in early alpha (0.1.8) with no known vulnerabilities. Start with the setup prompt in the description or Browser Use Cloud if you want to avoid local Chrome setup. Not suitable if you need a stable, production-hardened API—the alpha status and self-modifying helper code mean workflows may shift as the agent learns.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Chrome or Chromium running with --remote-debugging-port enabled, or a Browser Use Cloud account; Python 3.11 or later.
- Low friction: pure Python wheel with four runtime dependencies (cdp-use, fetch-use, pillow, websockets).
- Active maintenance—released 19 days ago with commits through 2026-08-14.
License · maintenance · safety
MIT (permissive) — MIT license (permissive): you can use, modify, and distribute this package freely in commercial or private projects, with minimal restrictions.
last release 2026-07-26 (19 days) · last repo commit 2026-08-14 · 16,691 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,072,341 downloads/mo, #1,791 on PyPI
Alternatives
Verify before relying
pip install browser-harness
from browser_harness import connect
# Connect to Chrome at default CDP endpoint
browser = connect()
# Agent can now control the browser and write helpers as needed- Repository star count and its relevance to package stability
- Whether the package works with headless Chrome or requires a display
- Performance characteristics when controlling complex web applications
- How agent-generated helper code persists and is versioned across runs
What it is and what it does
Browser Harness is a thin CDP harness that lets an LLM agent control your real browser directly, with one websocket connection to Chrome and no middleware. The agent can write and edit helper code and domain-specific skills during execution, improving the harness on each run. It's designed for tasks where you need complete freedom—the agent discovers what's missing and adds it.
The package ships with a command-line interface, stores agent-editable helpers and skills in your config directory, and supports both local Chrome instances (via --remote-debugging-port) and Browser Use Cloud browsers for stealth, sub-agents, or headless deployment. It depends on cdp-use, fetch-use, pillow, and websockets to handle Chrome protocol communication, image capture, and real-time bidirectional messaging.
Use it for
- Let an LLM agent automate repetitive web tasks (file uploads, form filling, data entry) while it learns site-specific selectors and flows.
- Build domain skills for specific websites that the agent generates and improves iteratively.
- Deploy headless browser automation using Browser Use Cloud without managing local Chrome instances.
- Debug agent behavior by inspecting live browser state and letting the agent write custom helpers on the fly.
- Integrate browser control into multi-step AI workflows where the agent needs to interact with web applications dynamically.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need an LLM to control a real browser and want the agent to improve itself during execution.
The package is actively maintained, has low install friction, carries a permissive MIT license, and is in early alpha (0.1.8) with no known vulnerabilities. Start with the setup prompt in the description or Browser Use Cloud if you want to avoid local Chrome setup. Not suitable if you need a stable, production-hardened API—the alpha status and self-modifying helper code mean workflows may shift as the agent learns.
Install
browser-harness on PyPI
Before you install
Low friction: pure Python wheel with four runtime dependencies (cdp-use, fetch-use, pillow, websockets). Active maintenance—released 19 days ago with commits through 2026-08-14. Requires Python 3.11 or later.
Requires Chrome or Chromium running with --remote-debugging-port enabled, or a Browser Use Cloud account; Python 3.11 or later.
License in practice
MIT license (permissive): you can use, modify, and distribute this package freely in commercial or private projects, with minimal restrictions.
Quickstart
pip install browser-harness
from browser_harness import connect
# Connect to Chrome at default CDP endpoint
browser = connect()
# Agent can now control the browser and write helpers as needed
Verify before relying
- Repository star count and its relevance to package stability
- Whether the package works with headless Chrome or requires a display
- Performance characteristics when controlling complex web applications
- How agent-generated helper code persists and is versioned across runs
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagescdp-usefetch-usepillowwebsockets |
| Maintenance | Actively maintained 19 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,072,341 / month, #1,791 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaEnvironment :: ConsoleIntended Audience :: DevelopersProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Topic :: Internet :: WWW/HTTP :: BrowsersTopic :: Software Development :: Testing |
Evidence: browser_harness-0.1.8-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “llm browser automation”
- browser-harnessConnects an LLM agent directly to a real Chrome/Chromium browser via…
- browser-useBrowser Use is a Python library that lets AI agents automate web…
- browser-use-sdkPython SDK for controlling browsers programmatically through the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also mycdp · browser-use · cdp-use · deepagents · pychrome · cloakbrowser · marionette-harness · choreographer · browser-use-sdk · selenium