
Browser Use
Open-source Python library that lets an AI agent control a web browser to complete tasks.
- Stars
- 120k
- Forks
- 13.4k
- Licence
- MIT
- Language
- Python
- Last update
- 4 days ago
- Type
- Library
What it is
Browser Use is a Python library that connects a language model to a web browser so an AI agent can click, type, and navigate pages to finish a task you describe in plain language. You can run it locally with your choice of model, or use a cloud browser service from the same project. The README's example task is looking up a repository's star count, and a demo shows the agent booking a driving test.
- Ask an agent to look up information on a website and print the result
- Automate a multi-step web booking or form submission from a task description
- Run the same agent code on a local browser or a cloud browser by changing one parameter
Great for
- Python developers who want to prototype an AI agent that operates websites
- Teams automating repetitive multi-step web tasks such as lookups or form filling
- People who want to run the agent locally with their own LLM API key
- Users who need a cloud browser for environments without Chrome, such as Docker or CI
Not ideal for
- Non-programmers who want a no-code tool; the README's main path is Python code or an agent prompt
- Projects needing fully deterministic scripts, since the agent's behavior depends on a language model
- Anyone unwilling to pay for cloud browsers or manage API keys for the hosted options
How to get it
- 1
Install with a package manager
You'll need: Python 3.11 or newer · uv package manager · OpenAI API key or another supported LLM key
Install the library with uv
uv add browser-use - 2
Run it
- Add your OpenAI API key to a .env file
- Save the example code as agent.py
- Run uv run agent.py to start the agent
- Optionally set BROWSER_USE_API_KEY and enable the cloud browser line
- 3
Get the most out of it
- Switch to the BU2 model by using the ChatBrowserUse line in the example, which requires BROWSER_USE_API_KEY
- Use Browser(use_cloud=True) to run on a cloud browser without installing Chrome locally
- Consult the Python library docs at docs.browser-use.com for further options
Downloads
Strengths
- Works with a chosen LLM provider, and the README shows OpenAI as an example
- Same agent code runs locally or on a cloud browser with a single change
- MIT licensed and actively pushed
Trade-offs
- Depends on a paid or API-keyed language model and, for cloud features, a Browser Use API key
- Cloud browser pricing and hosted features are described by the vendor and sit outside the open-source code
- The README is truncated, so some details of setup and configuration are not confirmed here
How it compares
| Project | Stars | Type | Level | Updated | Best for |
|---|---|---|---|---|---|
| browser-use (this) | 120k | Library | intermediate | 4 days ago | Python developers who want to prototype an AI agent that operates websites |
| stagehand | 25.9k | Library | intermediate | 6 days ago | Developers building browser agents that must work on sites they do not control |
| browser-harness | 18.8k | Dev tool | beginner | 4 days ago | Developers who already use Claude Code, Codex or Cursor and want the agent to act in their own logged-in Chrome |
| invisible_dots | 32.4k | AI model / agent | intermediate | 6 days ago | Developers who want a self-hosted agent and are comfortable with a command-line setup |
| CloakBrowser | 32.7k | Library | beginner | 4 days ago | Python or JavaScript developers already using Playwright who need automation to get past bot checks |
| camofox-browser | 12.1k | App | intermediate | 4 days ago | Developers building AI agents that need to read or interact with websites |
Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.