# Browser Use

> Let AI agents control a real browser to complete web tasks from plain-language instructions

- Category: Agents & Automation / Computer & Browser Use
- Language: Python
- Repository: https://github.com/browser-use/browser-use
- Website: https://browser-use.com
- Canonical page: https://ai-tldr.dev/tools/browser-use/

## In short

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 sits in the Computer & Browser Use category of the Agents & Automation tools and is open-source, written in Python.

## 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.

1. Install with the native core

   Install the package with the [core] extra, which adds the native Browser Use runtime for your platform.

```bash
uv add "browser-use[core]"
# or: pip install "browser-use[core]"
```

2. 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.

```text
# .env
BROWSER_USE_API_KEY=your-key
# GOOGLE_API_KEY=your-key
# ANTHROPIC_API_KEY=your-key
```

3. Run your first agent

   Create an Agent with a task and an LLM, then run it asynchronously and print the final result.

```python
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())
```

4. Or use the terminal

   After installing the core extra, run the browser command to start the Browser Use terminal agent.

```bash
uv add "browser-use[core]"
browser
```

## 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
