Run coding agents in a secure sandbox
A simple SDK for safely running Claude Code and other coding agents in your app or workflow. Open-source and MIT licensed.
npm i @vibe-kit/sdk
Embed Claude Code, Codex, Gemini CLI, or OpenCode
import { VibeKit } from "@vibe-kit/sdk";
import { createE2BProvider } from "@vibe-kit/e2b";
const prompt = "Create a todo list";
const e2bProvider = createE2BProvider({
apiKey: process.env.E2B_API_KEY!,
templateId: "vibekit-claude",
});
const vibeKit = new VibeKit()
.withAgent({
type: "claude",
provider: "anthropic",
apiKey: process.env.ANTHROPIC_API_KEY!,
model: "claude-sonnet-4-20250514",
})
.withSandbox(e2bProvider);
vibeKit.on("update", updateSpy);
vibeKit.on("error", errorSpy);
const result = await vibeKit.generateCode({ prompt, mode: "code" });
console.log("Result:", result);
Secure and Private
Runs code in a secure sandbox and private sandbox.
Any LLM
Choose any model to power your coding agents.
Streaming
Supports streaming the agent output to your UI.
Code or Ask
Supports code generation or asking questions.
Github Support
Work on your codebase, create PRs and more.
Observability
Built-in OpenTelemetry tracing and metrics for monitoring.
Supports your favourite sandbox provider
Supports E2B and Daytona. Modal, Fly.io coming soon.
Use any compatible sandbox runtime that meets your security and isolation needs.




Use cases
Coding agents are adaptable by design. Run them wherever they're useful, across tools, workflows and environments you control.
Internal Tools
Use coding agents to support debugging, refactoring, or automation inside secure engineering environments. Useful for onboarding helpers, CI bots, and internal dev tools.
App Features
Add code generation or code Q&A to your product. Enable users to scaffold apps, generate components, or explore code with natural input.
Prototyping Workflows
Use coding agents to scaffold features, generate boilerplate, or explore different implementation paths. Useful for iterating on ideas.
Integrations
Let agents handle common setup tasks like adding analytics, wiring up authentication, or configuring SDKs. Skip boilerplate and speed up implementation.