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 venv --python 3.12
source .venv/bin/activate2. Install Browser-Use package:
# We ship every day - use the latest version!
uv pip install browser-use3. 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-shell5. Run your first agent:
from browser_use import Agent, ChatBrowserUse
agent = Agent(
task="Find the number of stars of the browser-use repo",
llm=ChatBrowserUse(),
)
agent.run_sync()Check out the library docs for more!
Want to bypass anti-bot detection or run a fleet of agents on the cloud? Use our hosted stealth browsers.
Follow steps 1-3 above, and pass in a Browser made with the use_cloud parameter.
from browser_use import Agent, Browser, ChatBrowserUse
browser = Browser(
use_cloud=True, # Automatically provisions a cloud browser
)
agent = Agent(
task="Find the number of stars of the browser-use repo",
llm=ChatBrowserUse(),
browser=browser,
)
agent.run_sync()Optional: Follow the link in the console to watch the remote browser.
Check out the cloud docs for more!

