Quickstart
Go from an empty project to a cloud browser you drive with Playwright.
1. Install
2. Create a client
Create an API key in the dashboard. If you omit apiKey, the client reads BCTRL_API_KEY from the environment.
3. Launch a runtime
A runtime is a cloud browser. Create it, then start it to get a connect URL:
start mints a fresh, run-scoped connectUrl and opens a run that records everything that happens.
4. Drive it (two options)
Use one controller at a time. See Connect with CDP and Hosted agents for the full surface.
5. Inspect the run
The runId from start lets you read events and open a live view while the browser runs:
6. Stop the runtime
Next
- Spaces - scope what a runtime can access
- Invocations - hosted agent actions
- Runs - events, live view, and recordings

