Example • Supported Agents • Configuration • Discord
import { VibeKit } from 'vibekit';
const vk = new VibeKit({
agent: 'codex',
config: {
openaiApiKey: '...',
githubToken: '...',
repoUrl: 'https://github.com/user/repo',
e2bApiKey: '...',
},
});
// Regular usage (no streaming)
const result = await vibeKit.generateCode("Create a React component");
// Streaming usage (with callbacks)
const result = await vibeKit.generateCode("Create a React component", {
onUpdate: (message) => console.log(message),
onError: (error) => console.error(error)
});
console.log(result);- OpenAI Codex
- Claude Code
export type AgentName = 'codex' | 'claude';
export type AgentConfig =
| {
agent: 'codex';
config: {
openaiApiKey: string;
githubToken: string;
repoUrl: string;
e2bApiKey: string;
e2bTemplateId?: string; // defaults to "super-codex"
model?: string; // defaults to codex-mini
sandboxId?: string; // if you want to resume an existing sandbox
};
}
| {
agent: 'claude';
config: {
anthropicApiKey: string;
githubToken: string;
repoUrl: string;
e2bApiKey: string;
};
}Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License. This means you are free to use, modify, and distribute the code, provided that you include the original license and copyright notice in any copies or substantial portions of the software. The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. For more details, please refer to the LICENSE file included in the repository.