Overview
Browser Use is a Python library that connects a large language model to a real browser. You describe a task in plain language, and the agent navigates pages, clicks, types, and reads content to get it done.
It is built for developers who want to automate web workflows that are hard to script with fixed selectors, such as filling forms, gathering data across sites, or running through a multi-step flow. You bring your own model (Browser Use's own model, OpenAI, Anthropic, or Google), and the library handles the browser action loop.
Within the computer-and-browser-use space, it focuses on giving the model a browser action set with recovery loops. The 0.13 release adds a beta agent backed by a Rust core, while the original Python agent stays available under the same package.
What it does
- Drives a real browser from natural-language tasks, no hand-written selectors required
- Model-agnostic: works with ChatBrowserUse, ChatOpenAI, ChatAnthropic, or Google models
- Beta agent (0.13) built on a Rust core with persistent tools and recovery loops
- BrowserProfile options like headless mode and allowed_domains to scope where the agent can go
- Async Python API that returns a run history you can inspect, including the final result
- Optional hosted cloud with stealth, proxy rotation, and 1000+ integrations for scaling
Getting started
Install Browser Use with the native core runtime (Python 3.11+), set an API key, then run your first agent.
Install with the native core
Install the package with the [core] extra, which adds the native Browser Use runtime for your platform.
uv add "browser-use[core]"
# or: pip install "browser-use[core]"Set your API key
Add your model or Browser Use Cloud key to a .env file. You can use a Browser Use, Google, or Anthropic key.
# .env
BROWSER_USE_API_KEY=your-key
# GOOGLE_API_KEY=your-key
# ANTHROPIC_API_KEY=your-keyRun your first agent
Create an Agent with a task and an LLM, then run it asynchronously and print the final result.
from browser_use.beta import Agent, BrowserProfile, ChatBrowserUse
import asyncio
async def main():
agent = Agent(
task="Find the number of stars of the browser-use repo",
llm=ChatBrowserUse(model='openai/gpt-5.5'),
browser_profile=BrowserProfile(
headless=False,
allowed_domains=["*.github.com"],
),
)
history = await agent.run()
print(history.final_result())
if __name__ == "__main__":
asyncio.run(main())Or use the terminal
After installing the core extra, run the browser command to start the Browser Use terminal agent.
uv add "browser-use[core]"
browserCommands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Fill in a job application from a resume and personal details
- Add a shopping list of items to an online grocery cart
- Research and gather information across multiple websites for a task
- Automate a repeatable multi-step web workflow that is hard to script with fixed selectors
How Browser Use compares
Browser Use alongside other open-source computer & browser use tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| Browser Use | ★ 105k | Let AI agents control a real browser to complete web tasks from plain-language instructions |
| Open Interpreter | ★ 65.9k | A lightweight coding agent that runs code on your own computer to carry out tasks from natural-language requests. |
| UI-TARS Desktop | ★ 38k | ByteDance's multimodal agent stack and desktop app that controls a computer's graphical interface using vision-language models. |
| Stagehand | ★ 23.5k | A TypeScript browser-automation SDK from Browserbase that mixes natural-language actions with normal code for reliable web agents. |
| Skyvern | ★ 22.4k | A tool that uses language models and computer vision to automate browser workflows without writing custom code for each website. |
| Cua | ★ 19.9k | Infrastructure for computer-use agents, providing sandboxes and SDKs that let agents control full desktops on macOS, Linux, and Windows. |
| Agent Zero | ★ 18.4k | A general-purpose personal agent framework that uses the computer, terminal, and code as its main tools to complete tasks. |
| Browser Use Web UI | ★ 16.2k | A user-friendly web UI, built on Gradio, that lets you control browser-use AI agents, pick from many LLMs, and use your own browser. |