This skill enables you to manage Kernel’s cloud browser platform from the CLI, automating browser sessions, app deployment, and infrastructure tasks.
npx playbooks add skill kernel/skills --skill kernel-cli
The Kernel CLI provides command-line access to Kernel's cloud browser platform for browser automation, serverless app deployment, and infrastructure management.
brew install kernel/tap/kernelnpm install -g @onkernel/cliVerify with kernel --version. Use kernel <command> --help as the source of truth for the installed version.
KERNEL_API_KEY environment variablekernel login for interactive OAuth# Authenticate
export KERNEL_API_KEY=your_api_key
# Create a browser session
kernel browsers create -o json
# Run Playwright automation (use `return` to get a value back)
kernel browsers playwright execute <session_id> '
await page.goto("https://example.com");
return await page.evaluate(() => document.title);
'
# Take a screenshot
kernel browsers computer screenshot <session_id> --to screenshot.png
# Cleanup
kernel browsers delete <session_id>
Before creating the first browser for a site, look up a configuration Kernel has already tested there. The CLI has no config registry command, so call the API with KERNEL_API_KEY. lookup is read-only.
TARGET_URL='https://www.example.com/'
curl -sS -X POST https://api.onkernel.com/config-registry/lookup \
-H "Authorization: Bearer $KERNEL_API_KEY" -H "Content-Type: application/json" \
-d "$(jq -n --arg url "$TARGET_URL" '{url: $url}')" | jq '{recommendation, guidance}'
Map a recommendation to kernel browsers create flags: browser.stealth to --stealth, browser.headless to --headless, browser.gpu to --gpu, and browser.viewport to --viewport WIDTHxHEIGHT@RATE (omit @RATE when there is no refresh_rate). For proxy.mode: "managed", create the proxy from proxy.create once, for example kernel proxies create --type isp --country US, and pass its ID with --proxy-id on every browser. For proxy.mode: "direct", pass --proxy-mode direct.
When recommendation is null or its type is no_recommendation, start an analysis and create the browser with --stealth for now. The analysis takes minutes, and its result answers the next lookup:
curl -sS -X POST https://api.onkernel.com/config-registry/resolve \
-H "Authorization: Bearer $KERNEL_API_KEY" -H "Content-Type: application/json" \
-d "$(jq -n --arg url "$TARGET_URL" --arg intent 'search for a product and open the first result' '{url: $url, intent: $intent}')" | jq '.analysis'
The config registry needs a Hobbyist plan or higher.
-o json plus jq for scripts; deploy and invoke emit JSONL rather than one JSON object.--project <id-or-name> or KERNEL_PROJECT when an API key can access multiple projects.# Rename, archive, or reactivate a project (provide at least one update)
kernel projects update <id-or-name> --name <new-name> -o json
kernel projects update <id-or-name> --status archived -o json
kernel projects update <id-or-name> --status active -o json
# Look up a soft-deleted API key
kernel api-keys get <id> --include-deleted -o json
# Inspect limits before changing the default project cap
kernel org limits get -o json
kernel org limits set --default-project-max-concurrent-sessions <n> -o json
For org limits set, 0 removes the default cap; the value cannot exceed the organization concurrency limit.
Rotate an API key interactively with kernel api-keys rotate <id>. Use --days-to-expire <1-3650> to set the replacement key lifetime and --expire-in-days <n> to set the old key's grace period (default 7 days; 0 revokes it immediately). The output contains the replacement plaintext key once: keep it out of logs, migrate callers during the grace period, and then verify the old key no longer works.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.