build-kernel-ts-sdk
Installation
SKILL.md
Build Kernel TS SDK
Build with the Kernel TypeScript SDK (@onkernel/sdk, generated from Kernel's OpenAPI spec by Stainless) and the React helper @onkernel/managed-auth-react. Kernel runs each browser as a unikernel-isolated VM and co-locates your code with the browser to remove CDP latency. The SDK and CLI surface the same API.
When to use this skill
Use this skill if the task involves any of:
- building or extending TypeScript code that imports
@onkernel/sdkor constructsnew Kernel(...) - driving a Kernel browser via
kernel.browsers.create,cdp_ws_url,kernel.browsers.playwright.execute, orkernel.browsers.computer.* - deploying a Kernel App with
kernel deployand invoking it viakernel.invocations.create(sync or async withinvocations.follow) - wiring Playwright, Stagehand, Browser Use, Claude Agent SDK, Vibium, Notte, Magnitude, Laminar, or Val Town to a Kernel browser
- using profiles (
profiles.*), browser pools (browserPools.*), credentials (credentials.*), or replays/file I/O (browsers.fs.*,browsers.replays.*) - implementing Managed Auth with
auth.connections.*and the React<KernelManagedAuth />component - scoping
KERNEL_API_KEYper project viadefaultHeaders: { 'X-Kernel-Project-Id': '…' } - debugging Kernel-specific failures:
browser.close()not cleaning up, sync-invocation 100 s timeout, default-context confusion, 409 profile conflicts
Do NOT use this skill for: