> ## Documentation Index
> Fetch the complete documentation index at: https://browseruse-0aece648-codex-clarify-browser-infrastructure.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Remote Browser

> Connect to Browser Infrastructure or another remote Chrome instance via CDP.

<a id="browser-use-cloud-browser-or-cdp-url" />

### Browser Infrastructure or a CDP URL

Browser Infrastructure provides hosted cloud browsers for AI agents. Use
the built-in Cloud connection or provide a CDP URL from any compatible browser:

```python theme={null}
from browser_use import Agent, Browser, ChatBrowserUse

# Simple: Use Browser-Use cloud browser service
browser = Browser(
    use_cloud=True,  # Automatically provisions a cloud browser
)

# Advanced: Configure cloud browser parameters
browser = Browser(
    cloud_profile_id='your-profile-id',  # Optional: specific browser profile
    cloud_proxy_country_code='us',  # Optional: supported proxy location
    cloud_timeout=30,  # Optional: 1–240 minutes; defaults to 60 when omitted
)

# Or use a CDP URL from any cloud browser provider
browser = Browser(
    cdp_url="http://remote-server:9222"  # Get a CDP URL from any provider
)

agent = Agent(
    task="Your task here",
    llm=ChatBrowserUse(),
    browser=browser,
)
```

**Prerequisites:**

1. Get an API key from [cloud.browser-use.com](https://cloud.browser-use.com/new-api-key)
2. Set BROWSER\_USE\_API\_KEY environment variable

**Cloud Browser Parameters:**

* `cloud_profile_id`: UUID of a browser profile (optional, uses default if not specified)
* `cloud_proxy_country_code`: Country code for a supported proxy location
* `cloud_timeout`: Requested session timeout in minutes (1–240; defaults to 60 when omitted)

See the [Browser Infrastructure quickstart](/cloud/browser/quickstart),
[CAPTCHA handling](/cloud/browser/captcha-handling), and
[pricing](https://browser-use.com/pricing) for the maintained product details.

**Benefits:**

* ✅ No local browser setup required
* ✅ Managed cloud infrastructure
* ✅ Session lifecycle APIs and timeouts
* ✅ Profile-based authentication state
* ✅ Browser automation over CDP
* ✅ Configurable proxy routing

### Third-Party Cloud Browsers

You can pass in a CDP URL from any remote browser

### Proxy Connection

```python theme={null}

from browser_use import Agent, Browser, ChatBrowserUse
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=ChatBrowserUse(),
    browser=browser,
)
```
