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: -
The agent returns an object with a
successstatus and amessagecontaining the results.
Quick start with a browser-loop agent
Run an autonomous Claude Sonnet 5 agent that switches between DOM tools (snapshot, find, click, fill, navigate, text) and computer-use tools (screenshot, pixel click, scroll, keyboard) in the same browser session.- Remix the Kernel browser loop val
- Add the following to Environment Variables:
KERNEL_API_KEY— from your Kernel dashboardANTHROPIC_API_KEY— from the Anthropic Console
- Run
check.tsto verify package compatibility and authenticate both APIs - Run
main.tsto execute the agent - Watch the live-view URL logged at startup and review the tool trace in Logs