Scripts2026年3月29日·1 分钟阅读

Browser Use — AI Browser Automation

Open-source Python library for AI-driven browser automation. Works with Claude, GPT, and Gemini to fill forms, scrape data, and navigate websites.

TO
TokRepo精选 · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

uv init && uv add browser-use && uv sync
from browser_use import Agent, Browser, ChatBrowserUse
import asyncio

async def main():
    agent = Agent(
        task="Find the price of the mass of the largest meteorite found this year",
        llm=ChatBrowserUse(),
        browser=Browser(),
    )
    await agent.run()

asyncio.run(main())

介绍

Browser Use makes websites accessible to AI agents. Give it a task in natural language, and it controls a real browser — clicking, typing, scrolling, extracting data — using a DOM + Vision hybrid approach. Works with Claude, GPT, Gemini, and local models. 84,000+ GitHub stars, the standard open-source solution for AI browser automation.


Key Features

  • Multi-model support: Claude, GPT, Gemini, ChatBrowserUse (optimized), local models
  • Real browser control: Click, type, scroll, screenshot, navigate
  • Form automation: Job applications, data entry, checkout flows
  • Web research: Find, compile, and summarize information
  • Custom tools: Extensible architecture for specialized tasks
  • CLI interface: Persistent browser sessions from terminal

Supported Models

Model Best For
ChatBrowserUse Browser automation (purpose-built, cheapest)
Claude Sonnet Complex reasoning tasks
Gemini Flash Fast, cost-effective tasks
Local models Privacy-sensitive automation

CLI Usage

browser-use open https://example.com   # Navigate
browser-use state                       # See clickable elements
browser-use click 5                     # Click element #5
browser-use type "Hello world"          # Type text
browser-use screenshot output.png       # Capture page

Project Templates

# Generate a starter project
uvx browser-use init --template default
# Templates: default, advanced, tools

来源与感谢

Author: browser-use Repository: browser-use — ⭐ 84,800+ License: MIT Docs: docs.browser-use.com

Thanks to the Browser Use team for building the leading open-source AI browser automation library.

相关资产