Quick setup with Claude Agent SDK
Get started with Claude Agent SDK and Kernel using our pre-configured app template:TypeScript or Python as the programming language.
Then follow the Quickstart guide to deploy and run your Claude Agent SDK automation on Kernel’s infrastructure.
Prerequisites
Claude Code Installation
The Claude Agent SDK requires Claude Code to be installed. Choose one of the following methods:When deploying to Kernel, the app automatically installs Claude Code on the remote infrastructure.
API Keys
You’ll need:- ANTHROPIC_API_KEY: Get from the Anthropic Console
- KERNEL_API_KEY: Get from the Kernel Dashboard
Running locally
Deploying to Kernel
Deploy and invoke the app on Kernel’s infrastructure:How it works
- Browser Creation: A Kernel browser session is created with stealth mode enabled
- MCP Server: An in-process MCP server is created with an
execute_playwrighttool - Agent Execution: The Claude Agent SDK runs with access to the Playwright tool
- Task Completion: Claude autonomously uses the tool to complete the given task
- Cleanup: The browser session is deleted when done
Example tasks
Benefits of using Kernel with Claude Agent SDK
- No local browser management: Run Claude Agent SDK automations without installing or maintaining browsers locally
- Scalability: Launch multiple browser sessions in parallel for concurrent AI agents
- Stealth mode: Built-in anti-detection features for reliable web interactions
- Session state: Maintain browser state across runs via Profiles
- Live view: Debug your Claude agents with real-time browser viewing
- Cloud infrastructure: Run computationally intensive AI agents without local resource constraints
Next steps
- Check out live view for debugging your Claude Agent SDK automations
- Learn about stealth mode for avoiding detection
- Learn about Playwright Execution for running Playwright code in the browser VM
- Learn how to properly terminate browser sessions
- Learn how to deploy your Claude Agent SDK app to Kernel

