-
Remote Code Upload and Execution (#3490)
发布于
2025-11-01 02:20:00 +00:00 | 2766 次提交 在此版本后已推送到 mainSummary by cubic
Adds sandboxed remote code execution with SSE streaming and first-class
cloud browser parameters (profile, proxy country, timeout) to simplify
remote runs and cloud configuration. Also replaces legacy globals with a
client-based flow and updates docs, examples, and tests.-
New Features
-
Remote execution: @sandbox decorator packages code and closures via
cloudpickle, streams logs/results via SSE, and supports callbacks
(browser created, instance ready, log, result, error). -
Cloud browser params: Pass cloud_profile_id, cloud_proxy_country_code,
and cloud_timeout directly to Browser/BrowserSession (auto-enables
use_cloud). Supports extra headers on create/stop. -
Typed event models for SSE, type-preserving result parsing
(Pydantic/dataclasses/enums), and a new AgentHistoryList.load_from_dict
helper. -
Migration
-
Replace get_cloud_browser_cdp_url/stop_cloud_browser_session with
CloudBrowserClient().create_browser(CreateBrowserRequest(...)) and
stop_browser(). -
Prefer cloud_* params over cloud_browser; cloud_browser remains as
alias for use_cloud. -
Set BROWSER_USE_API_KEY for remote/cloud usage; update imports to use
browser_use.browser.cloud.cloud and browser_use.browser.cloud.views.- New dependency: cloudpickle.
Written for commit
0159108e11.
Summary will update automatically on new commits.下载附件
-