Connect with CDP
A browser runtime is controlled through a connection: a short-lived lease that points your automation framework at the live browser.
Use connections for external tools such as Playwright, Puppeteer, Chrome debuggers, or other CDP-compatible clients. Use invocations when BCTRL should run hosted AI work inside the runtime.
Flow
- Create a space.
- Launch a browser runtime.
- Create a CDP connection.
- Pass the WebSocket URL to your browser framework.
- Inspect the current run through events, commands, artifacts, live view, and recording.
Launch a runtime
Create a CDP connection
The endpoint URL is returned only by the create call. Connection list responses contain metadata, not signed attach URLs.
Drive it with Playwright
Drive it with Puppeteer
Revoke a connection
Connections expire automatically. Delete one early when you hand off control or finish the attach window.
Already-open connections finish according to the underlying lease. New attaches are refused.
Stop the runtime
Stopping a runtime tears down the browser and prevents new connection attaches.

