What is VibeKit
VibeKit is an open-source SDK designed to run coding agents, such as Codex and Claude Code, within secure sandboxes. It allows developers to embed these agents safely into their applications or workflows.
How to use VibeKit
VibeKit is available as an npm package. You can install it using npm i @vibe-kit/sdk
. Once installed, you can configure the SDK, specify the agent type (e.g., codex
), and use methods like generateCode
with a prompt and mode (code
) to interact with the agent. Callbacks are available for handling updates and errors.
Features of VibeKit
- Secure and Private: Runs code in a secure and private sandbox environment.
- Customizable: Allows customization of the environment and installation of packages.
- Any Model: Supports using any compatible model to power the coding agent.
- Streaming: Provides support for streaming the agent's output to the user interface.
- Code or Ask: Supports both code generation and answering questions.
- Github Support: Enables working on codebases and creating pull requests.
Use Cases of VibeKit
- Internal Tools: Integrate coding agents for debugging, refactoring, or automation in engineering environments, useful for onboarding helpers, CI bots, and internal dev tools.
- App Features: Add code generation or code Q&A capabilities to products, allowing users to scaffold apps, generate components, or explore code with natural language.
- Prototyping Workflows: Utilize agents to scaffold features, generate boilerplate, or explore implementation paths for faster iteration on ideas.
- Integrations: Let agents handle common setup tasks like adding analytics, wiring authentication, or configuring SDKs to speed up implementation.