Skip to main content
Create a browser session, then connect over CDP to automate. For an overview of session outputs, create APIs, and configuration options, see Browser Sessions.
1

Get your API key

Copy your key from Anchor UI.
2

Install dependencies

3

Create a session

The response includes 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

You should see a session ID, CDP URL, and the page title printed in your terminal.

Next steps