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
small docs tweaks
Nick Sweetingbbd53a013037
diff --git a/docs/customize/real-browser.mdx b/docs/customize/real-browser.mdxindex 3234003e2..5857197ad 100644--- a/docs/customize/real-browser.mdx+++ b/docs/customize/real-browser.mdx@@ -65,7 +65,6 @@ from browser_use import Agent, BrowserSession# Then connect using the process IDsession = BrowserSession(browser_pid=12345) # Replace with actual Chrome PID-await session.start()agent = Agent(task="Your task here",@@ -83,7 +82,6 @@ from browser_use import Agent, BrowserSession# Connect to a playwright serversession = BrowserSession(wss_url="wss://your-playwright-server.com/ws")-await session.start()agent = Agent(task="Your task here",@@ -101,7 +99,6 @@ from browser_use import Agent, BrowserSession# Connect to Chrome via CDPsession = BrowserSession(cdp_url="http://localhost:9222")-await session.start()agent = Agent(task="Your task here",@@ -119,20 +116,20 @@ from browser_use import Agent, BrowserSession, BrowserProfile# Configure to use your Chrome installationprofile = BrowserProfile(- # Path to your Chrome executable (optional)+ # Path to a specific Chromium-based executable (optional)executable_path='/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', # macOS# For Windows: 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe'# For Linux: '/usr/bin/google-chrome'- # Use a custom profile directory+ # Use a specific data directory on disk (optional)user_data_dir='~/.config/browseruse/profiles/default',- profile_directory='Default',++ # set any other browser-use or playwright launch_persistnet_context config...headless=False)# If no executable_path provided, uses Playwright/Patchright's built-in Chromiumsession = BrowserSession(browser_profile=profile)-await session.start()agent = Agent(task="Your task here",@@ -145,12 +142,13 @@ agent = Agent(<Warning>When using any browser profile, the agent will have access to:- - All your logged-in sessions and cookies+ - All its logged-in sessions and cookies- Saved passwords (if autofill is enabled)- Browser history and bookmarks- Extensions and their dataAlways review the task you're giving to the agent and ensure it aligns with your security requirements!+ Use `Agent(sensitive_data={'https://auth.example.com': {x_key: value}})` for any secrets, and restrict the browser with `BrowserSession(allowed_domains=['https://*.example.com'])`.</Warning>## Best Practices@@ -166,7 +164,7 @@ agent = Agent(2. **Limit domain access**: Restrict which sites the agent can visit:```pythonprofile = BrowserProfile(- allowed_domains=['github.com', '*.github.com'],+ allowed_domains=['example.com', 'http*://*.github.com'],# ... other settings)```