Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Remove profile args which prevent cookie usage

Magnus Müller2e874d00958e
diff --git a/browser_use/browser/profile.py b/browser_use/browser/profile.py
index 044a021b4..feaeb7720 100644
--- a/browser_use/browser/profile.py
+++ b/browser_use/browser/profile.py
@@ -128,8 +128,6 @@ CHROME_DEFAULT_ARGS = [
# '--force-color-profile=srgb', # moved to CHROME_DETERMINISTIC_RENDERING_ARGS
'--metrics-recording-only',
'--no-first-run',
- '--password-store=basic',
- '--use-mock-keychain',
# // See https://chromium-review.googlesource.com/c/chromium/src/+/2436773
'--no-service-autorun',
'--export-tagged-pdf',
diff --git a/examples/browser/real_browser.py b/examples/browser/real_browser.py
index 09fef6670..f56e811d1 100644
--- a/examples/browser/real_browser.py
+++ b/examples/browser/real_browser.py
@@ -8,7 +8,7 @@ from dotenv import load_dotenv
load_dotenv()
-from browser_use import Agent, Browser, ChatOpenAI
+from browser_use import Agent, Browser, ChatGoogle
# Connect to your existing Chrome browser
browser = Browser(
@@ -20,9 +20,9 @@ browser = Browser(
async def main():
agent = Agent(
- llm=ChatOpenAI(model='gpt-4.1-mini'),
+ llm=ChatGoogle(model='gemini-flash-latest'),
# Google blocks this approach, so we use a different search engine
- task='Visit https://duckduckgo.com and search for "browser-use founders"',
+ task='go to amazon.com and buy pens to draw on the whiteboard',
browser=browser,
)
await agent.run()