startFromSnapshot.
Required API key scopes: browser.sessions.create, browser.sessions.read, browser.sessions.update, browser.sessions.stop, browser.sessions.snapshots.create, browser.sessions.logs.read.
Prerequisites
HYPERBROWSER_API_KEYexported in your shell and team browser-snapshot access enabled.@hyperbrowser/sdk+playwright-core(TypeScript) orhyperbrowser+playwright(Python) installed.
Browser session snapshots require VM-backed sessions and team snapshot access. Sessions started with
webBotAuth cannot be snapshotted. Snapshots of sessions that filled secrets are marked as containing secrets, and restoring them requires team owner/admin access or the secrets.use scope for API keys.Step 1: Warm Up & Capture a Snapshot
Step 2: Restore Workers, Extend Long Jobs & Inspect Events
Expected output
buildWarmSnapshot()logsCaptured snapshot: <snapshot-id>and stops the seed session cleanly.runFromSnapshot()prints the current active session count, confirms the worker opens directly athttps://app.example.com/workspace, extends the timeout by 30 minutes, and prints the session event log count.
Next Steps
- Browser Session Snapshots — snapshot constraints and region matching.
- Observability & Debugging — event logs, recordings, and live debugging.