Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Add Browser initialization to README quickstart example
Cursor Agentcaf50d2f34af
diff --git a/README.md b/README.mdindex 4e9fb553a..ca1499db1 100644--- a/README.md+++ b/README.md@@ -65,17 +65,22 @@ BROWSER_USE_API_KEY=your-key**3. Run your first agent:**```python-from browser_use import Agent, ChatBrowserUse+from browser_use import Agent, Browser, ChatBrowserUse# from browser_use import ChatGoogle # ChatGoogle(model='gemini-3-flash-preview')# from browser_use import ChatAnthropic # ChatAnthropic(model='claude-sonnet-4-6')import asyncioasync def main():+ browser = Browser()+ # browser = Browser(headless=True) # Run headless (no visible window)+ # browser = Browser(use_cloud=True) # Use a stealth browser on Browser Use Cloud+agent = Agent(task="Find the number of stars of the browser-use repo",llm=ChatBrowserUse(),# llm=ChatGoogle(model='gemini-3-flash-preview'),# llm=ChatAnthropic(model='claude-sonnet-4-6'),+ browser=browser,)await agent.run()