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 asyncio.get_event_loop for python 3.14 cli compatibilit
Laith Weinberger99a8674214ec
diff --git a/browser_use/skill_cli/main.py b/browser_use/skill_cli/main.pyindex d9d0a018b..b51dc5e9a 100755--- a/browser_use/skill_cli/main.py+++ b/browser_use/skill_cli/main.py@@ -1222,8 +1222,7 @@ def main() -> int:if args.command == 'doctor':from browser_use.skill_cli.commands import doctor- loop = asyncio.get_event_loop()- result = loop.run_until_complete(doctor.handle())+ result = asyncio.run(doctor.handle())if args.json:print(json.dumps(result))@@ -1337,9 +1336,9 @@ def main() -> int:port_arg = getattr(args, 'port_arg', None)if getattr(args, 'all', False):# stop --all- result = asyncio.get_event_loop().run_until_complete(tunnel.stop_all_tunnels())+ result = asyncio.run(tunnel.stop_all_tunnels())elif port_arg is not None:- result = asyncio.get_event_loop().run_until_complete(tunnel.stop_tunnel(port_arg))+ result = asyncio.run(tunnel.stop_tunnel(port_arg))else:print('Usage: browser-use tunnel stop <port> | --all', file=sys.stderr)return 1@@ -1349,7 +1348,7 @@ def main() -> int:except ValueError:print(f'Unknown tunnel subcommand: {pos}', file=sys.stderr)return 1- result = asyncio.get_event_loop().run_until_complete(tunnel.start_tunnel(port))+ result = asyncio.run(tunnel.start_tunnel(port))else:print('Usage: browser-use tunnel <port> | list | stop <port>', file=sys.stderr)return 0