This quickstart guide will help you create, deploy, and run your first app on Kernel. You’ll launch a simple browser automation app using Playwright, Browser Use, Computer Use, or Stagehand.

Prerequisites

  • brew for the Kernel CLI
  • npm or pnpm to generate a sample Kernel app
  • A Kernel account with an API key

1. Download the sample app

npx @onkernel/create-kernel-app my-sample-app

2. Install the Kernel CLI

# Using brew
brew install onkernel/tap/kernel

# Using pnpm
pnpm install -g @onkernel/cli

# Using npm
npm install -g @onkernel/cli

Verify the installation exists:

which kernel

3. Set your Kernel API key

Configure your environment with your Kernel API key:

export KERNEL_API_KEY=<YOUR_API_KEY>

4. Deploy the sample app on Kernel

cd my-sample-app
kernel deploy index.ts # --env ANTHROPIC_API_KEY=XXX if Stagehand or Computer Use

5. Invoke the app

# Sample app
kernel invoke ts-basic get-page-title --payload '{"url": "https://www.google.com"}'

# Stagehand
kernel invoke ts-stagehand stagehand-task --payload '{"query": "Best wired earbuds"}'

# Computer Use
kernel invoke ts-cu cu-task --payload '{"query": "Search for the top 3 restaurants in NYC according to Pete Wells"}'

Next steps

Nice work! With Kernel, you:

  1. Developed an app that uses Playwright, Browser Use, Computer Use, or Stagehand
  2. Deployed and invoked it in the cloud

Our instant deployment capabilities mean you can iterate rapidly and get the benefits of using Kernel’s cloud platform without disrupting your development flow.

From here, you can:

Sample apps reference

These are the sample apps currently available when you run npx @onkernel/create-kernel-app:

TemplateDescriptionFrameworkQuery Parameters
sample-appReturns the page title of a specified URLPlaywright{ url }
browser-useCompletes a specified taskBrowser Use{ task }
stagehandReturns the first result of a specified Google searchStagehand{ query }
advanced-sampleImplements sample apps using advanced Kernel configsPlaywrightn/a
computer-useImplements an Anthropic Computer Use prompt loopAnthropic Computer Use API{ query }
cuaImplements an OpenAI CUA prompt loopOpenAI CUA API{ task }