profiles.create, browser.sessions.create, browser.sessions.stop.
Prerequisites
HYPERBROWSER_API_KEY,PORTAL_EMAIL, andPORTAL_PASSWORDexported in your shell.@hyperbrowser/sdk+playwright-core(TypeScript) orhyperbrowser+playwright(Python) installed.
Step 1: Seed an Authenticated Profile
Run an initial session withpersistChanges: true.
Step 2: Fan Out Read-Only Workers
For concurrent scraping, mount the seeded profile withpersistChanges: false so parallel sessions never overwrite each other’s saved state:
Expected output
seedProfile()logsProfile seeded: <profile-id>and flushes the authenticated cookies and local storage into the profile when the session stops cleanly.- Each
scrapePage()worker boots already logged in and returns the rendered<main>text without overwriting the shared profile.
Next Steps
- Browser Profiles — profile lifecycle, forking, and cleanup.
- Credential Fill — inject stored logins without exposing plaintext secrets to your app.