# VoltAgent

> Open-source TypeScript framework for building and running AI agents in production

- Category: Agents & Automation / Agent Frameworks & Builders
- Language: TypeScript
- Licence: MIT
- Repository: https://github.com/VoltAgent/voltagent
- Website: https://voltagent.dev
- Canonical page: https://ai-tldr.dev/tools/voltagent/

## In short

VoltAgent is an open-source TypeScript framework for building AI agents that you can ship to production. It sits in the Agent Frameworks & Builders category of the Agents & Automation tools and is open-source, written in TypeScript and licensed MIT. To get started: create a new project.

## Overview

VoltAgent is an open-source TypeScript framework for building AI agents that you can ship to production. You define agents in code with typed roles, tools, memory, and a model provider, then connect them to multi-step workflows and teams of specialized sub-agents that work together under a supervisor.

The framework is provider-agnostic, so you can switch between OpenAI, Anthropic, Google, and other models by changing configuration instead of rewriting agent logic. It pairs with the VoltOps console, available as a cloud or self-hosted service, which gives you observability, evals, guardrails, and deployment tooling for the agents you build.

## What it does

- Core runtime (@voltagent/core) to define agents with typed roles, tools, memory, and model providers in one place
- Declarative workflow engine for describing multi-step automations, including human-in-the-loop suspend and resume
- Supervisor and sub-agent runtime for coordinating teams of specialized agents on a single task
- Zod-typed tool registry plus Model Context Protocol (MCP) support to connect external servers without extra glue code
- Built-in memory adapters, retrieval and RAG, voice (text-to-speech and speech-to-text), guardrails, and agent evals
- VoltOps console (cloud or self-hosted) for observability, tracing, prompts, and deployment of your agents

## Getting started

VoltAgent ships as npm packages with a project generator. The CLI scaffolds a starter project that registers both an agent and a workflow example, then runs a local server you can connect to from the VoltOps console.

1. Create a new project

   Use the create-voltagent-app CLI to scaffold a project. The command walks you through setup and generates starter code in src/index.ts.

```bash
npm create voltagent-app@latest
```

2. Define an agent

   In the generated code you create an Agent with instructions, a model provider, and tools, then register it with VoltAgent. You can attach persistent memory using an adapter such as LibSQL.

```typescript
import { VoltAgent, Agent } from "@voltagent/core";
import { openai } from "@ai-sdk/openai";
import { honoServer } from "@voltagent/server-hono";
import { weatherTool } from "./tools";

const agent = new Agent({
  name: "my-agent",
  instructions: "A helpful assistant that can check weather and help with various tasks",
  model: openai("gpt-4o-mini"),
  tools: [weatherTool],
});

new VoltAgent({
  agents: { agent },
  server: honoServer(),
});
```

3. Run the dev server

   Start the project from your terminal. The VoltAgent server starts an HTTP endpoint (default http://localhost:3141) that you can open in the VoltOps console to chat with and inspect your agent.

```bash
npm run dev
```

## When to use it

- Building production AI agents in TypeScript with code-level control over tools, memory, and model providers
- Coordinating multi-agent systems where specialized sub-agents work together under a supervisor
- Automating multi-step processes, including human-in-the-loop flows that can suspend and resume, with the workflow engine
- Grounding agent responses on your own data using built-in retrieval and RAG, then monitoring runs in the VoltOps console
