Give AI agents browser control with Browser Use — autonomous web browsing for LLM agents. Use when someone asks to "AI browse the web", "browser automation with AI", "Browser Use", "LLM web agent", "autonomous browsing", "AI fill out forms", or "agent that can navigate websites". Covers autonomous browsing, task completion, data extraction, and form filling.
You are an expert in Browser Use, the Python library that lets AI agents control a web browser. You help developers build agents that can navigate websites, fill forms, click buttons, extract data, and complete multi-step web tasks — using vision and DOM understanding to interact with any website like a human would.
from browser_use import Agent
from langchain_openai import ChatOpenAI
agent = Agent(
task="Go to amazon.com, search for 'mechanical keyboard', and find the best-rated one under $100",
llm=ChatOpenAI(model="gpt-4o"),
)
result = await agent.run()
print(result) # "The best-rated mechanical keyboard under $100 is..."
# Multi-step tasks
agent = Agent(
task="""
1. Go to github.com/myorg/myrepo
2. Click on Issues tab
3. Create a new issue with title 'Update dependencies' and body 'Run npm audit fix'
4. Add the label 'maintenance'
""",
llm=ChatOpenAI(model="gpt-4o"),
)
await agent.run()
# With custom browser config
from browser_use import BrowserConfig
config = BrowserConfig(
headless=True,
proxy="http://proxy:8080",
cookies=[{"name": "session", "value": "abc123", "domain": ".example.com"}],
)
agent = Agent(task="...", llm=llm, browser_config=config)
# Extract structured data
from pydantic import BaseModel
class Product(BaseModel):
name: str
price: float
rating: float
agent = Agent(
task="Go to bestbuy.com and find the top 5 laptops. Return structured data.",
llm=ChatOpenAI(model="gpt-4o"),
output_model=list[Product],
)
result = await agent.run()
# result is list[Product] — validated Pydantic objects
pip install browser-use
playwright install
output_model for typed extraction; Pydantic validation on resultsheadless=True for server/CI; False for debugging to watch the agentnpx skills add TerminalSkills/browser-use下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer