Skip to content

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

hot-fix-local-true-if-no-cdp-url

Magnus Müller11a50db4fb9b
diff --git a/browser_use/browser/session.py b/browser_use/browser/session.py
index 15dd31200..9c0b180f7 100644
--- a/browser_use/browser/session.py
+++ b/browser_use/browser/session.py
@@ -274,6 +274,8 @@ class BrowserSession(BaseModel):
# if is_local is False but executable_path is provided, set is_local to True
if is_local is False and executable_path is not None:
profile_kwargs['is_local'] = True
+ if not cdp_url:
+ profile_kwargs['is_local'] = True
# Create browser profile from direct parameters or use provided one
if browser_profile is not None: