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: default cloud connect proxy to US, validate country codes
ShawnPana9fd3d81f8b7a
diff --git a/browser_use/skill_cli/commands/cloud.py b/browser_use/skill_cli/commands/cloud.pyindex bc2aa4869..11d0248ff 100644--- a/browser_use/skill_cli/commands/cloud.py+++ b/browser_use/skill_cli/commands/cloud.py@@ -130,9 +130,15 @@ def _ensure_cloud_profile() -> str:return new_id+_VALID_PROXY_CODES = {'us', 'uk', 'fr', 'it', 'jp', 'au', 'de', 'fi', 'ca', 'in'}++def _get_cloud_connect_proxy() -> str | None:- """Return the cloud connect proxy country code from config, or None."""- return _read_config().get('cloud_connect_proxy')+ """Return the cloud connect proxy country code. Defaults to 'us'."""+ val = _read_config().get('cloud_connect_proxy', 'us')+ if isinstance(val, str) and val.lower() in _VALID_PROXY_CODES:+ return val.lower()+ return Nonedef _get_cloud_connect_timeout() -> int | None: