Kernel is a serverless browser automation platform. It runs full Chrome instances in the cloud and provides a simple WebSocket/HTTP API.
Because Val Town can’t launch a local browser, Kernel lets you use tools like Puppeteer or Playwright by connecting to a remote browser session hosted on Kernel’s infrastructure.
Quick start with Puppeteer
Section titled “Quick start with Puppeteer”- Remix this Kernel starter val
- Create a free Kernel account and generate an API key from Settings → API Keys
- Add it to your val’s Environment Variables (left sidebar) as
KERNEL_API_KEY
- Click Run on
puppeteer.ts
- View logs for output
Quick start with Playwright
Section titled “Quick start with Playwright”Kernel also supports Playwright sessions.
Steps are nearly identical:
- Remix this Kernel starter val
- Add your
KERNEL_API_KEY
to Environment Variables - Set
TMPDIR
to/tmp
to avoid Playwright file-system warnings - Click Run on
playwright.ts
- Check the logs for output