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 template with Playwright integration for page title extractionadvanced-sample— Demonstrates advanced Kernel configurationsstagehand— Returns the first result of a specified Google searchcomputer-use— Implements Anthropic’s Computer Use API in a prompt loopcua— OpenAI Computer Using Agent (CUA) sample implementationgemini-cua— Google Gemini CUA sample implementationmagnitude— Magnitude framework integration
Python templates
sample-app— Basic template with Playwright integration for page title extractionadvanced-sample— Demonstrates advanced Kernel configurationsbrowser-use— Integrates the Browser Use for AI-powered web automationcomputer-use— Implements Anthropic’s Computer Use API in a prompt loopcua— OpenAI Computer Using Agent (CUA) sample implementation
Examples
Next steps
After creating your app:-
Navigate to the project directory:
-
Install dependencies:
- TypeScript:
npm install - Python:
uv venv && source .venv/bin/activate && uv sync
- TypeScript:
-
Authenticate with Kernel:
-
Deploy your app:
-
Invoke your app:
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.
