1
Get your API key
Copy your key from Anchor UI.
2
Install dependencies
.mjs, or set "type": "module" in package.json.3
Create a session
id, cdp_url, and live_view_url. Use live_view_url to embed the browser in your app. Pass identities or browser.profile in the request body to start authenticated — see Browser Sessions.4
Connect and automate
5
End the session
Closing the connection does not end the session. End it so it stops running:
You should see a session ID, CDP URL, and the page title printed in your terminal.
Next steps
- Browser Sessions — sync vs async vs batch, configuration links
- Async sessions — create without blocking on provisioning
- Embedded Browser Live UI — use
live_view_urlin your product - API Reference — full create request schema

