Skip to main content
Drive a Gravix browser from your own tooling — Playwright, Puppeteer, or anything that speaks the Chrome DevTools Protocol. cdp_endpoint opens a tokened bridge into the running browser: connect with the returned URL and your driver sees a normal Chromium. CLI and cURL examples use $RT and browser b1 (Sessions).

Connect Playwright

The response carries port, path, and token (minted when you don’t supply one). The bridge is reachable through the runtime’s service-port host — wss://{port}-{runtime_id}.service.gravixlayer.ai{path}?token={token} — the same convention as live view. Each bridge accepts multiple concurrent driver connections; cdp_endpoint_stop tears it down.
Closing the driver’s connection leaves the Gravix browser running — that is what makes mixed control (SDK + your driver on the same session) work. Driver-level Browser.close calls are rejected so a stray client cannot kill the shared session. Use cdp_endpoint_stop to retire the bridge, and browser.close to close the browser itself.