Create Kernel App
kernel create
Create a new Kernel application from a template. The CLI provides an interactive prompt to guide you through selecting a language and template, or you can specify all options via flags.
| Flag | Description |
|---|---|
--name <name>, -n | Name of the application directory to create. |
--language <language>, -l | Programming language: typescript (ts) or python (py). |
--template <template>, -t | Template to scaffold (see available templates below). |
If any option is omitted, the CLI will prompt you interactively.
Available templates
TypeScript templates
sample-app— Basic Kernel app with Playwright integrationcaptcha-solver— Demo of Kernel's auto-CAPTCHA solving capabilityanthropic-computer-use— Anthropic computer use agentopenai-computer-use— OpenAI Computer Using Agent (CUA)gemini-computer-use— Google Gemini computer use agentclaude-agent-sdk— Claude Agent SDK browser automation agentstagehand— Stagehand v3 SDK integrationmagnitude— Magnitude SDK integrationtzafon— Tzafon Northstar CUA Fast computer use agentyutori— Yutori n1.5 computer use agent
Python templates
sample-app— Basic Kernel app with Playwright integrationcaptcha-solver— Demo of Kernel's auto-CAPTCHA solving capabilityanthropic-computer-use— Anthropic computer use agentopenai-computer-use— OpenAI Computer Using Agent (CUA)gemini-computer-use— Google Gemini computer use agentclaude-agent-sdk— Claude Agent SDK browser automation agentopenagi-computer-use— OpenAGI computer use agentbrowser-use— Browser Use SDK integrationtzafon— Tzafon Northstar CUA Fast computer use agentyutori— Yutori n1.5 computer use agent
Examples
# Interactive mode (prompts for all options)
kernel create
# Create a TypeScript app with the sample template
kernel create --name my-app --language typescript --template sample-app
# Create a Python app with Browser Use
kernel create --name my-scraper --language python --template browser-use
# Create a TypeScript app with Stagehand (shorthand language flag)
kernel create --name my-agent --language ts --template stagehand
# Create a Python Computer Use app
kernel create --name my-cu-app --language py --template anthropic-computer-useNext steps
After creating your app:
-
Navigate to the project directory:
cd my-app -
Install dependencies:
- TypeScript:
npm install - Python:
uv venv && source .venv/bin/activate && uv sync
- TypeScript:
-
Authenticate with Kernel:
kernel login or export KERNEL_API_KEY=<YOUR_API_KEY> -
Deploy your app:
# TypeScript kernel deploy index.ts # Python kernel deploy main.py -
Invoke your app:
kernel invoke my-app action-name --payload '{"key": "value"}'
Some templates require environment variables (e.g.,
OPENAI_API_KEY, ANTHROPIC_API_KEY). Set them using --env or --env-file flags when deploying. See kernel deploy for details.