Deutsch | EspaΓ±ol | franΓ§ais | ζ₯ζ¬θͺ | νκ΅μ΄ | PortuguΓͺs | Π ΡΡΡΠΊΠΈΠΉ | δΈζ
- Direct your favorite coding agent (Cursor, ClaudeS, etc) to Agents.md
- Prompt away!
1. Create environment with uv (Python>=3.11):
uv init
2. Install Browser-Use package:
# We ship every day - use the latest version!
uv add browser-use
uv sync
3. Get your API key from Browser Use Cloud and add it to your .env
file (new signups get $10 free credits):
# .env
BROWSER_USE_API_KEY=your-key
4. Download chromium using playwright's shortcut:
uvx playwright install chromium --with-deps --no-shell
5. Run your first agent:
from browser_use import Agent, Browser, ChatBrowserUse
import asyncio
async def example():
browser = Browser(
# use_cloud=True, # Uncomment to use a stealth browser on Browser Use Cloud
)
llm = ChatBrowserUse()
agent = Agent(
task="Find the number of stars of the browser-use repo",
llm=llm,
browser=browser,
)
history = await agent.run()
return history
if __name__ == "__main__":
history = asyncio.run(example())
Check out the library docs and the cloud docs for more!
grocery-use-large.mp4
pc-use-large.mp4
π‘See more examples here β and give us a star!
Integrations, hosting, custom tools, MCP, and more on our Docs β
Made with β€οΈ in Zurich and San Francisco