Skip to content

browser-use

87,251 30 226 MIT
0.12.6 (2 Apr 2026) Nov 01 2024 8.9 million (month)

Browser-use is a Python library that enables AI agents to control web browsers using natural language instructions. It connects large language models (LLMs) to browser automation, allowing you to describe what you want done in plain English instead of writing explicit selectors and interaction code.

Key features include:

  • Natural language browser control Describe tasks like "go to Amazon and find the cheapest laptop under $500" and the AI agent will navigate, interact with elements, and extract the requested information.
  • Multi-step task execution Can handle complex workflows that require multiple pages, form filling, clicking, scrolling, and waiting for dynamic content.
  • Vision support Uses screenshot analysis (multimodal LLMs) to understand page layout and find elements visually, not just through DOM inspection.
  • Multiple LLM providers Works with OpenAI, Anthropic Claude, Google Gemini, and other LLM providers.
  • Playwright backend Uses Playwright under the hood for reliable browser automation across Chrome, Firefox, and Safari.
  • Structured output Can return extracted data in structured formats defined by Pydantic models.

Browser-use represents a new paradigm in web scraping where instead of writing brittle selectors, you describe the extraction task and let the AI figure out how to navigate and extract the data. This is especially useful for scraping diverse sites with varying layouts.

Highlights


ai-powerednatural-languageasync

Example Use


```python from browser_use import Agent from langchain_openai import ChatOpenAI import asyncio

async def main(): # Create an AI agent with a language model agent = Agent( task="Go to reddit.com/r/webscraping, find the top 5 posts " "from today, and extract their titles and scores", llm=ChatOpenAI(model="gpt-4o"), )

# Run the agent - it navigates and extracts automatically
result = await agent.run()
print(result)

# More complex multi-step task
agent = Agent(
    task="Go to example.com/login, log in with user@test.com "
         "and password 'test123', then navigate to the dashboard "
         "and extract all notification messages",
    llm=ChatOpenAI(model="gpt-4o"),
)
result = await agent.run()
print(result)

asyncio.run(main()) ```

Alternatives / Similar


skyvern new
21,046 1.0.29 (2026-04-02 14:42:44 ago) Feb 01 2024 compare
34,072 4.43.0 (2026-04-10 06:47:01 ago) Apr 25 2008 compare
14,506 1.58.0 (2026-01-30 15:09:24 ago) Feb 24 2021 compare
crawl4ai new
63,373 0.8.6 (2026-03-24 15:07:50 ago) May 01 2024 compare
12,519 3.5.5 (2024-02-17 17:18:36 ago) Sep 04 2020 compare
camoufox new
7,089 0.4.11 (2025-01-29 09:33:18 ago) Mar 01 2024 compare
nodriver new
4,003 0.48.1 (2025-11-09 05:57:23 ago) Jan 15 2024 compare
1,837 0.5.1 (2026-01-19 16:59:35 ago) Dec 28 2012 compare
23,278 1.76.0 (2026-04-09 09:41:03 ago) Jan 15 2024 compare
718 1.9.4 (2024-10-22 01:41:19 ago) Jul 22 2022 compare
4,193 3.5 (2020-06-16 13:27:02 ago) Apr 25 2014 compare
pydoll new
- 0.0.0 (2025-02-01 00:00:00 ago) Jun 01 2024 compare
firecrawl new
- 0.0.0 (2025-03-15 00:00:00 ago) Apr 01 2024 compare

Other Languages

stagehand new
22,012 3.2.1 (2026-04-10 21:10:37 ago) Oct 29 2024 compare
86,137 1.59.1 (2026-04-11 23:54:46 ago) Jan 23 2015 compare
rod new
6,853 v0.116.2 (2024-07-12 11:52:28 ago) Sep 23 2022 compare
12,937 chromedp (2026-04-01 00:05:30 ago) May 10 2021 compare
3,062 v2.4.0 (2026-01-08 05:29:21 ago) Jul 17 2018 compare
Was this page helpful?