Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
fix(cli): hide server console window on Windows
ShawnPanafd3db0615a70
diff --git a/browser_use/skill_cli/main.py b/browser_use/skill_cli/main.pyindex 96da3f7b5..81e5f9366 100755--- a/browser_use/skill_cli/main.py+++ b/browser_use/skill_cli/main.py@@ -272,11 +272,12 @@ def ensure_server(session: str, browser: str, headed: bool, profile: str | None,# Start server as background processif sys.platform == 'win32':- # Windows: use CREATE_NEW_PROCESS_GROUP+ # Windows: CREATE_NO_WINDOW prevents console window from appearing+ # CREATE_NEW_PROCESS_GROUP allows the process to survive parent exitsubprocess.Popen(cmd,env=env,- creationflags=subprocess.CREATE_NEW_PROCESS_GROUP | subprocess.DETACHED_PROCESS,+ creationflags=subprocess.CREATE_NEW_PROCESS_GROUP | subprocess.CREATE_NO_WINDOW,stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL,)