Skip to main content
Need lower-level control than an agent task? Create a cloud browser and connect directly via Chrome DevTools Protocol (CDP). You get a stealth browser with residential proxy — use it with Playwright, Puppeteer, or any CDP client. When to use this:
  • You have existing Playwright scripts and want to run them on stealth infrastructure
  • You need pixel-perfect control (screenshots, specific click coordinates, form filling)
  • You want to combine agent tasks with manual browser automation
import asyncio
from playwright.async_api import async_playwright
from browser_use_sdk import AsyncBrowserUse

async def main():
    client = AsyncBrowserUse()
    browser = await client.browsers.create(proxy_country_code="us")

    try:
        async with async_playwright() as p:
            b = await p.chromium.connect_over_cdp(browser.cdp_url)
            page = b.contexts[0].pages[0]
            await page.goto("https://example.com")
            await page.screenshot(path="screenshot.png")
            await b.close()
    finally:
        await client.browsers.stop(browser.id)

asyncio.run(main())
See Browser Infrastructure for the full browser API and Pricing for browser session costs.