What is VibeKit?
VibeKit is an open-source SDK designed to run coding agents like OpenAI Codex and Claude in secure sandboxes. It enables agents to write code, install packages, or open PRs safely, with built-in streaming, async tasks, and telemetry. MIT licensed and built with TypeScript, it offers zero lock-in. VibeKit allows developers to embed coding agents into their applications or workflows, supporting various sandbox providers such as E2B, Daytona, Modal, and Fly.io. It is ideal for creating internal tools, adding AI-powered features to apps, and streamlining prototyping workflows.
How to use VibeKit?
To use VibeKit, developers can install the SDK via npm (`npm i @vibe-kit/sdk`). They then import `VibeKit` and `VibeKitConfig` to set up the agent type (e.g., 'codex') and other configurations. An instance of `VibeKit` is created, and methods like `generateCode` are called with a prompt and mode. Callbacks (`onUpdate`, `onError`) can be provided to handle streaming output and errors from the agent.