Create a Browser
telemetry: false / telemetry=False to disable it, or pass a
Kernel telemetry configuration object directly.
Replay recording is disabled by default. Set recording: true /
recording=True to enable replay recording for a headful browser session.
Profile Auth Checks
Saved profiles can start an asynchronous auth check for a site. The SDK returns a run immediately;wait() polls with short requests until the run completes.
TypeScript
compareFresh is enabled.
Playwright
The browser response includes a CDP WebSocket URL. Pass it directly to Playwright’sconnectOverCDP.
Magnitude
Magnitude can use a Playwright-connected browser. Create the OpenComputer browser first, connect over CDP, then hand the page to your Magnitude agent.TypeScript
Magnitude package names and constructors can vary by version. The
OpenComputer-specific step is stable: create a
Browser, connect to
cdpWsUrl with Playwright, then pass the resulting page or browser object to
Magnitude.Save and Load Profiles
Profiles persist browser state such as cookies and local storage across browser sessions. Profiles are scoped to your OpenComputer org; another org cannot list, load, or delete your profiles. Create a profile once:Authentication
The SDK uses your OpenComputer API key:For local development against a non-production Browser Sessions endpoint, set
OPENCOMPUTER_BROWSER_API_URL.