Escape the limitations of no-code builders and the complexity of starting from scratch.
VoltAgent is an open-source TypeScript framework for creating and managing AI agents. It provides modular components to build, customize, and scale agents with ease. From connecting to APIs and memory management to supporting multiple LLMs, VoltAgent simplifies the process of creating sophisticated AI systems. It enables fast development, maintains clean code, and offers flexibility to switch between models and tools without vendor lock-in.
Create a new VoltAgent project in seconds using the create-voltagent-app
CLI tool:
npm create voltagent-app@latest
This command guides you through setup.
You'll see the starter code in src/index.ts
to get you started with the VoltAgent framework.
import { VoltAgent, Agent } from "@voltagent/core";
import { VercelAIProvider } from "@voltagent/vercel-ai"; // Example provider
import { openai } from "@ai-sdk/openai"; // Example model
// Define a simple agent
const agent = new Agent({
name: "my-agent",
description: "A helpful assistant that answers questions without using tools",
// Note: You can swap VercelAIProvider and openai with other supported providers/models
llm: new VercelAIProvider(),
model: openai("gpt-4o-mini"),
});
// Initialize VoltAgent with your agent(s)
new VoltAgent({
agents: {
agent,
},
});
Afterwards, navigate to your project and run:
npm run dev
Your agent is now running! To interact with it:
Click the VoltAgent Console link in your terminal output (or copy-paste it into your browser).