What Is Browser-use?
Browser-use is an open-source Python library for AI browser agents. It gives a task to a model, and the model performs it in a real browser by writing Python code. The core mechanism is a persistent REPL, browser-harness helpers, and raw Chrome DevTools Protocol (CDP). The library runs on any LLM, either locally or through Browser Use Cloud. It is MIT licensed, written in Python, and has 122k stars on GitHub at the time of writing.
The official description: "Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API."
Key Capabilities
The agent works by having the model write a cell (e.g., new_tab(url); bu.click(41); js(...)), the REPL runs it on Chrome via CDP, and output is sent back to the model. This loop continues until the task is finished.
Browser-use can navigate the web like a human: find an available slot, pick a date and time, handle CAPTCHAs, and book a driving test. Demos are available on the showcase page.
There are three paths to use it:
Path 1: Fully Hosted Cloud Scale up with a hosted agent and stealth browsers. Infrastructure includes profiles, recordings, and data policies. Cloud browsers cost $0.06 per browser-hour and include stealth, CAPTCHA solving, and residential proxies. A hosted agent API is also available. New signups with Google, GitHub, or Microsoft get $1 cloud credit.
Path 2: CLI Automate your own browser tasks. Install with
uv tool install browser-use==1.0.8, then runbrowser-use skill installto register the skill.Path 3: Python Library Run the open-source agent locally from your own code. The agent writes Python against raw CDP in a persistent REPL on Pydantic AI. Requires Python 3.11 or newer.
The library uses a default model bu-4.0 on the Browser Use gateway. One API key pays for both the model and the cloud browser. Cloud browsers print an interactive live-view link to stderr by default; you can open it automatically with Browser(live_view=True) or hide it with False.
Telemetry is enabled by default. Anonymous library_auth events record missing keys, login outcomes, available keys, and browser starts. These events contain no API keys, login URLs, or account identifiers.
How to Start
Path 1: Fully Hosted Cloud Get an API key at cloud.browser-use.com and follow the API quickstart docs.
Path 2: CLI Paste this prompt into Claude Code, Codex, Hermes, OpenClaw, or your favorite agent:
Install browser-use with `uv tool install browser-use==1.0.8`, run `browser-use skill install` to register the skill, and connect it to my browser. If setup or connection fails, run `browser-use --doctor` and follow its output and the error message.
Path 3: Python Library Install with uv or pip in a venv:
uv init --python 3.12 my-agent && cd my-agent
uv add 'browser-use==1.0.8'
uv run browser-use login
Or with pip:
python3 -m venv .venv && source .venv/bin/activate
pip install 'browser-use==1.0.8'
browser-use login
Alternatively, set the BROWSER_USE_API_KEY environment variable. In a notebook, use browser_use.login().
Important: Pin the exact version (==, never >=). Releases move fast and can break APIs. An exact pin keeps your code working and prevents a bad release from reaching you.
After login, use the Agent class:
from browser_use import Agent
result = Agent('Find the number of stars of the browser-use repo').run_sync()
print(result.final_result())
Without a key, an interactive desktop run opens Browser Use login and continues after approval. Over SSH or on Linux without a desktop, it prints a link and a device code to approve on any device.
Who Is This For?
For developers building AI agents that need to interact with real browsers. For those who want an open-source, flexible browser automation library that works with any LLM. For builders who need stealth browsers, CAPTCHA handling, and scalable cloud infrastructure. For anyone who wants to give a model a task and let it control a browser via Python code.
Closing
Browser-use is an MIT-licensed Python library with 122k stars on GitHub. It provides a simple but powerful mechanism: a model writes Python, a REPL executes it on Chrome via CDP. Whether you use the fully hosted cloud, the CLI, or the Python library, you get a battle-tested foundation for AI browser agents.
Top comments (0)