Appearance
Fresh 🌱
Val Town ​
Val Town is a serverless platform to run Typescript automations. You can think of it like Zapier for software developers.
Because Val Town can't launch a local browser, Kernel lets you use tools like Puppeteer, Playwright, or Stagehand on Val Town by connecting to a remote browser session hosted on Kernel's infrastructure.
Quick start with Puppeteer ​
- Create a free Kernel account and generate an API key from Settings → API Keys
- Remix the Kernel Puppeteer val
- Add your
KERNEL_API_KEYto the val's Environment Variables (left sidebar) - Click Run
- View logs for output
Quick start with Playwright ​
- Remix the Kernel Playwright val
- Add your
KERNEL_API_KEYto Environment Variables - Set
TMPDIRto/tmpto avoid Playwright file-system warnings - Click Run
- Check the logs for output
Quick start with Stagehand + Gemini ​
Run an autonomous browser agent powered by Gemini 2.5's computer use capabilities and Stagehand.
Remix the Kernel Stagehand + Gemini val
Add the following to Environment Variables:
KERNEL_API_KEY, from Kernel's API keys pageGOOGLE_API_KEY, from Google AI Studio
Import
runAgentinto your val and call it with a task, starting URL, and timeout:tsconst result = await runAgent( "Find the top Hacker News story and summarize it", "https://news.ycombinator.com", 120, );The agent returns an object with a
successstatus and amessagecontaining the results.