Skip to content

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

30sec is a little harsh, lower it

Nick Sweeting7aefb50b4d6b
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index 423c17bff..bdc91489c 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -288,11 +288,11 @@ class Agent(Generic[Context]):
'⚠️⚠️⚠️ Agent(sensitive_data=••••••••) was provided but BrowserContextConfig(allowed_domains=[...]) is not locked down! ⚠️⚠️⚠️\n'
' ☠️ If the agent visits a malicious website and encounters a prompt-injection attack, your sensitive_data may be exposed!\n\n'
' https://docs.browser-use.com/customize/browser-settings#restrict-urls\n'
- 'Waiting 30 seconds before continuing... Press [Ctrl+C] to abort.'
+ 'Waiting 10 seconds before continuing... Press [Ctrl+C] to abort.'
)
if sys.stdin.isatty():
try:
- time.sleep(30)
+ time.sleep(10)
except KeyboardInterrupt:
print(
'\n\n 🛑 Exiting now... set BrowserContextConfig(allowed_domains=["example.com", "example.org"]) to only domains you trust to see your sensitive_data.'