Browser Sessions
Thebrowser() primitive launches a stealthed Chrome instance and returns a CDP WebSocket URL. Connect Playwright or Puppeteer to automate pages with anti-bot stealth active.
How It Works
Stealth Features
Sessions apply stealth via Chrome flags and emulation scripts:
Sessions use direct Chrome spawn (the same as the scrape engine), so all stealth features are applied identically.
Usage
CLI
Resource Usage
- Each session uses ~300MB memory (Chrome process)
- Sessions are isolated from the scrape/crawl pool
- Default timeout: 5 minutes (configurable via
timeoutMs)
Related
- Browser Sessions Guide - Full examples
- API Reference - Options and types
- Browser Pool - Shared pool used by scrape/crawl

