
Kernel Typescript Sdk
For building browser automation in TypeScript using Kernel's hosted browser infrastructure. You write Playwright code that executes server-side in remote browser VMs rather than running locally, which means no dependency installation and easy parallelization. The SDK covers everything from basic browser session management to browser pools, persistent profiles, and managed auth connections. One thing to know: binary data like screenshots won't serialize through the execute method, you need to use dedicated APIs like captureScreenshot instead. If you just need to run a quick command, stick with kernel-cli, but for building actual automation tools or packaging scripts as API-invocable actions, this is the right choice.
- skills.sh installs
- 427
- GitHub stars
- 13
- last updated
- Aug 21, 2026
Install
$ npx -y skills add kernel/skills --skill kernel-typescript-sdk --agent claude-codeInstalls into .claude/skills of the current project.
Files
Kernel TypeScript SDK
When to Use This Skill
Use this skill to create and automate Kernel browser sessions from TypeScript, persist browser state with profiles, route sessions through proxies, or package automation as Kernel actions.
For one-off kernel ... commands, use the kernel-cli skill instead.
Install and Initialize
npm install @onkernel/sdk
# Only CDP-based automation also needs a local Playwright client:
npm install playwright-core
import { Kernel } from "@onkernel/sdk";
const kernel = new Kernel(); // Reads KERNEL_API_KEY from the environment.
Request and response fields use snake_case (timeout_seconds, session_id, cdp_ws_url). SDK methods use JavaScript casing (deleteByID, captureScreenshot).
Choose an Automation Path
Prefer server-side Playwright with kernel.browsers.playwright.execute() for most automation. Code runs beside the browser with low latency and does not require a local Playwright installation.
Use a CDP connection when a local library must control Playwright directly or when debugging interactively. Connect with browser.cdp_ws_url and reuse the browser's existing context.
Sponsors
Details
- Repository
- github.com/kernel/skills
- Categories
- Backend & APIs, Testing & QA, DevOps & CI/CD, Automation & Workflows
- First seen
- Jun 3, 2026