
Deutsch | Español | français | 日本語 | 한국어 | Português | Русский | 中文
With uv (Python>=3.11):
# We ship every day - use the latest version! uv pip install browser-useDownload chromium using playwright's shortcut:
uvx playwright install chromium --with-deps --no-shellGet your API key from Browser Use Cloud and add it to your .env file:
BROWSER_USE_API_KEY=your-keyRun your first agent:
frombrowser_useimportAgent, ChatBrowserUseagent=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.
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.
frombrowser_useimportAgent, Browserfrombrowser_useimportChatBrowserUse# Use Browser-Use cloud browser servicebrowser=Browser( use_cloud=True, # Automatically provisions a cloud browser ) agent=Agent( task="Your task here", llm=ChatBrowserUse(), browser=browser, )Task: Add grocery items to cart, and checkout.
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.
apply.to.jobs.8x.mp4
See more examples and give us a star!
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-..." } } } }
