Skip to content

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

Add back Chromium arguments to browser launch configuration

neo7733f97b120edfc
diff --git a/browser_use/browser/browser.py b/browser_use/browser/browser.py
index cb48df801..277b4961b 100644
--- a/browser_use/browser/browser.py
+++ b/browser_use/browser/browser.py
@@ -183,6 +183,7 @@ class Browser:
"""Sets up and returns a Playwright Browser instance with anti-detection measures."""
browser = await playwright.chromium.launch(
headless=self.config.headless,
+ args=self.disable_security_args + self.config.extra_chromium_args,
proxy=self.config.proxy,
)
# convert to Browser