browser-use

browser-use/browser-use

๐ŸŒ Make websites accessible for AI agents. Automate tasks online with ease.

103k
Stars
11k
Forks
287
Open issues
440
Watchers
Python MITLast pushed Jul 7, 2026

Overview

browser-use is a Python library that allows for browser automation and accessibility enhancements specifically tailored for AI agents using tools like Playwright. It enables the seamless interaction of AI agents with web applications, facilitating automated task execution in the digital realm.

Categories

Tags

Similar tools

Install

pip install browser-use

README

Shows a black Browser Use Logo in light color mode and a white one in dark color mode.
The AI browser agent.
Browser-Use Package Download Statistics

Demos Docs Blog Merch Github Stars Twitter Discord Browser-Use Cloud

Browser Use CLI 3.0 is here. Give your coding agent a browser it can use reliably.

๐ŸŒค๏ธ Want to skip the setup? Use our cloud for faster, scalable, stealth-enabled browser automation!

๐Ÿค– Give our docs to your coding agent: llms-full.txt

๐Ÿ‘‹ Human Quickstart

1. Install Browser Use (Python>=3.11):

uv add browser-use
# or: pip install browser-use

2. [Optional] Get your API key from Browser Use Cloud:

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

3. Run your first agent:

Python Script:

import asyncio

from browser_use import Agent, BrowserProfile, ChatBrowserUse

async def main():
    agent = Agent(
        task="Find the number of stars of the browser-use repo",
        llm=ChatBrowserUse(model='openai/gpt-5.5'),
        # llm=ChatBrowserUse(model='bu-2-0'),  # Browser Use's optimized model
        # llm=ChatOpenAI(model='gpt-5.5'),
        # llm=ChatAnthropic(model='claude-opus-4-8'),  # Sonnet also works well.
    )
    history = await agent.run()

if __name__ == "__main__":
    asyncio.run(main())

Check out the library docs and the [cloud docs](https://docs.cloud.browser-use.com?u