Skip to main content
This page is for browser-use 0.x. Current docs: Introduction. Upgrading: Migrating to 1.0. To stay on 0.x, pin it: pip install 'browser-use<1'.
@sandbox is removed in browser-use 1.0. In 1.0, run the agent anywhere with a cloud browser (Browser(), the default; see Browsers), or have Browser Use host the whole agent with the Cloud API.
Sandboxes are the easiest way to run Browser-Use in production. We handle agents, browsers, persistence, auth, cookies, and LLMs. It is also the fastest way to deploy - the agent runs right next to the browser, so latency is minimal.
Get your API key at cloud.browser-use.com/new-api-key — eligible new accounts receive $1 in one-time credits.

Basic Example

Wrap your function with @sandbox():

With Cloud Parameters

What each does:
  • cloud_profile_id - Use saved cookies/authentication from your cloud profile
  • cloud_proxy_country_code - Route through country-specific proxy for stealth (bypass captchas, Cloudflare, geo-blocks)
  • cloud_timeout - Maximum time browser stays open in minutes

For more parameters and events, see the other tabs in this section.