browser-use

    browser-use/browser-use

    #116 this week

    Agents that use the browser.

    ai-agents
    llm
    testing
    ai-tools
    browser-automation
    browser-use
    playwright
    python
    Python
    MIT
    114.4K stars
    12.6K forks
    114.4K GitHub watchers
    Updated 9/13/2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Use Cases & Benefits

    • Enables AI agents to control web browsers and automate online tasks using Python and Playwright.
    • Provides seamless integration with stealth cloud browsers to bypass anti-bot protections like Cloudflare.
    • Use for automating complex web interactions such as online shopping and checkout processes.
    • Use for scraping job listings, managing applications, and automating multi-tab workflows.
    • Use for integrating browser automation into AI workflows with large language models and custom agents.

    About browser-use

    Shows a black Browser Use Logo in light color mode and a white one in dark color mode.

    Enable AI to control your browser

    Docs Browser-use cloud

    Discord Twitter Follow Twitter Follow Merch store Weave Badge

    Deutsch | Español | français | 日本語 | 한국어 | Português | Русский | 中文

    🤖 Quickstart

    With uv (Python>=3.11):

    #  We ship every day - use the latest version!
    uv pip install browser-use
    

    Download chromium using playwright's shortcut:

    uvx playwright install chromium --with-deps --no-shell
    

    Get your API key from Browser Use Cloud and add it to your .env file:

    BROWSER_USE_API_KEY=your-key
    

    Run your first agent:

    from browser_use import Agent
    from browser_use.llm import ChatBrowserUse
    
    agent = Agent(
        task="Find the number of stars of the browser-use repo",
        llm=ChatBrowserUse(),
    )
    agent.run_sync()
    

    Check out the library docs and cloud docs for more settings.

    Stealth Browser Infrastructure

    Want to bypass Cloudflare, or any other anti-bot protection?

    Simply go to Browser Use Cloud grab a BROWSER_USE_API_KEY and use the use_cloud parameter.

    from browser_use import Agent, Browser
    from browser_use.llm import ChatBrowserUse
    
    # Use Browser-Use cloud browser service
    browser = Browser(
        use_cloud=True,  # Automatically provisions a cloud browser
    )
    
    agent = Agent(
        task="Your task here",
        llm=ChatBrowserUse(),
        browser=browser,
    )
    

    Demos

    Task: Add grocery items to cart, and checkout.

    AI Did My Groceries



    Task: Read my CV & find ML jobs, save them to a file, and then start applying for them in new tabs, if you need help, ask me.

    https://github.com/user-attachments/assets/171fb4d6-0355-46f2-863e-edb04a828d04



    See more examples and give us a star!



    MCP Integration

    This gives Claude Desktop access to browser automation tools for web scraping, form filling, and more. See the MCP docs.

    {
      "mcpServers": {
        "browser-use": {
          "command": "uvx",
          "args": ["browser-use[cli]", "--mcp"],
          "env": {
            "OPENAI_API_KEY": "sk-..."
          }
        }
      }
    }
    

    Tell your computer what to do, and it gets it done.

    Twitter Follow Twitter Follow

    Made with ❤️ in Zurich and San Francisco

    Discover Repositories

    Search across tracked repositories by name or description