--- title: "Remote Browser" description: "" icon: "cloud" mode: "wide" --- ### Browser-Use Cloud Browser or CDP URL The easiest way to use a cloud browser is with the built-in Browser-Use cloud service: ```python from browser_use import Agent, Browser, ChatOpenAI # Use Browser-Use cloud browser service browser = Browser( use_cloud=True, # Automatically provisions a cloud browser # cdp_url="http://remote-server:9222" # CDP URL from your favorite browser provider like Onkernel, AnchorBrowser, HyperBrowser, BrowserBase, Steel.dev, etc. ) agent = Agent( task="Your task here", llm=ChatOpenAI(model='gpt-4.1-mini'), browser=browser, ) ``` **Prerequisites:** 1. Get an API key from [cloud.browser-use.com](https://cloud.browser-use.com) 2. Set BROWSER_USE_API_KEY environment variable **Benefits:** - ✅ No local browser setup required - ✅ Scalable and fast cloud infrastructure - ✅ Automatic provisioning and teardown - ✅ Built-in authentication handling - ✅ Optimized for browser automation ### Third-Party Cloud Browsers Get a CDP URL from your favorite browser provider like Onkernel, AnchorBrowser, HyperBrowser, BrowserBase, Steel.dev, etc. ### Proxy Connection ```python from browser_use import Agent, Browser, ChatOpenAI from browser_use.browser import ProxySettings browser = Browser( headless=False, proxy=ProxySettings( server="http://proxy-server:8080", username="proxy-user", password="proxy-pass" ) cdp_url="http://remote-server:9222" ) agent = Agent( task="Your task here", llm=ChatOpenAI(model='gpt-4.1-mini'), browser=browser, ) ```