Skip to content

Install

Kernel ships two installation paths: a CLI for project scaffolding and deployment, and a TypeScript SDK for programmatic browser control.

CLI (macOS via Homebrew)

bash
brew install kernel/tap/kernel

Upgrade an existing install:

bash
brew upgrade kernel/tap/kernel

npm/pnpm global alternative:

bash
npm install -g @onkernel/cli
# or
pnpm install -g @onkernel/cli

Verify the install:

bash
kernel --version
# requires >= v0.16.0

Authenticate:

bash
kernel login

This opens a browser flow. Poll kernel auth to confirm the session is active.

TypeScript SDK (for programmatic use)

bash
npm install @onkernel/sdk

The SDK is published at @onkernel/sdk under the Apache-2.0 license.

Set your API key as an environment variable:

bash
export KERNEL_API_KEY=your_api_key_here

Template Starter

Scaffold a new computer-use agent project:

bash
kernel create --template computer-use

This writes a starter agent.ts (and supporting files) into a new directory ready to deploy.