Skip to content

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

add force_new_context docstring

kalil0321a9bdad4ba2ad
diff --git a/browser_use/browser/context.py b/browser_use/browser/context.py
index 13ac2a68e..f81203af6 100644
--- a/browser_use/browser/context.py
+++ b/browser_use/browser/context.py
@@ -139,6 +139,9 @@ class BrowserContextConfig(BaseModel):
timezone_id: None
Changes the timezone of the browser. Example: 'Europe/Berlin'
+
+ force_new_context: False
+ Forces a new browser context to be created. Useful when running locally with branded browser (e.g Chrome, Edge) and setting a custom config.
"""
model_config = ConfigDict(