← Back to Notte

How do I connect my existing Playwright scripts to cloud browsers without rewriting them?

Notte supports standard CDP (Chrome DevTools Protocol) connections. You can point your existing Playwright or Puppeteer scripts at a Notte cloud browser session with minimal code changes.

How to connect:

  1. Create a Notte session via the API or SDK
  2. Get the CDP endpoint URL
  3. Connect your Playwright browser instance to that URL
  4. Your scripts run on Notte's cloud browser with all the platform benefits

What you get by running on Notte:

What doesn't change:

Example (Python):

from notte_sdk import NotteClient
from playwright.sync_api import sync_playwright

client = NotteClient()

with client.Session(timeout_minutes=10) as session:
    cdp_url = session.cdp_url()

    with sync_playwright() as p:
        browser = p.chromium.connect_over_cdp(cdp_url)
        page = browser.new_page()
        page.goto("https://example.com")

Docs at docs.notte.cc/concepts/sessions.