create-voltagent
БесплатноБез исполняемых скриптовНе проверенSkill for creating AI agent projects using the VoltAgent framework. Guide for CLI setup and manual bootstrapping.
от VoltAgent★ 17 звёзд на GitHubОб этом скилле
Create VoltAgent Skill
Complete guide for creating new VoltAgent projects. Includes the CLI flow and a full manual setup.
Official documentation: https://voltagent.dev/docs/
Start Here
When a user wants to create a VoltAgent project, ask:
"How would you like to create your VoltAgent project?"
- Automatic Setup - run
npm create voltagent-app@latestand handle prompts - Interactive Guide - walk through each step and confirm choices
- Manual Installation - set up dependencies and a full working example
Based on their choice:
- Option 1: run the CLI, capture server and provider choices, and finish setup
- Option 2: gather server, provider, and API key, then run the CLI
- Option 3: follow the manual steps below
Before You Start
- Node.js 20+ (>= 20.19.0 recommended)
- Git (optional, for auto git init)
- An API key for your model provider (not needed for Ollama)
Fast Path
Create a new VoltAgent project with one command:
npm create voltagent-app@latest
Other package managers:
pnpm create voltagent-app@latest
yarn create voltagent-app@latest
bun create voltagent-app@latest
CLI Flow
The create-voltagent-app command:
- Asks for a project name (default:
my-voltagent-app) - Prompts for a server framework (Hono or Elysia)
- Prompts for an AI provider (OpenAI, Anthropic, Google, Groq, Mistral, Ollama)
- Prompts for an API key when required
- Installs dependencies and scaffolds the project
- Writes
.env,README.md,tsconfig.json,tsdown.config.ts, and Docker files - Initializes a git repo when available
CLI Walkthrough
Run:
npm create voltagent-app@latestWhen prompted:
- Choose a server (Hono recommended or Elysia)
- Choose an AI provider
- Enter your API key (skip if using Ollama)
Start the dev server:
cd <your-project-directory> npm run devIf you chose Ollama:
ollama pull llama3.2
CLI Flags and Examples
Create in a specific directory:
npm create voltagent-app@latest my-voltagent-app
Download an example from the VoltAgent repo:
npm create voltagent-app@latest -- --example with-workflow
pnpm / yarn / bun equivalents:
pnpm create voltagent-app@latest -- --example with-workflow
yarn create voltagent-app@latest -- --example with-workflow
bun create voltagent-app@latest -- --example with-workflow
Notes:
- Examples are pulled from https://github.com/voltagent/voltagent/tree/main/examples
- Some package managers require
--before--example. - After an example download, run
npm installandnpm run dev.
Generated Layout
my-voltagent-app/
|-- src/
| |-- index.ts
| |-- tools/
| | |-- index.ts
| | `-- weather.ts
| `-- workflows/
| `-- index.ts
|-- .env
|-- .voltagent/
|-- Dockerfile
|-- .dockerignore
|-- .gitignore
|-- README.md
|-- package.json
|-- tsconfig.json
`-- tsdown.config.ts
If you run the docs sync script in this repo, you may also see packages/core/docs generated.
Env Keys
The CLI writes .env with your provider key (or a placeholder). Common keys:
OPENAI_API_KEY=...
ANTHROPIC_API_KEY=...
GOOGLE_GENERATIVE_AI_API_KEY=...
GROQ_API_KEY=...
MISTRAL_API_KEY=...
OLLAMA_HOST=http://localhost:11434
VOLTAGENT_PUBLIC_KEY=...
VOLTAGENT_SECRET_KEY=...
Manual Setup (Full)
If you prefer not to use the CLI, follow these steps:
Step 1: Create the project directory
mkdir my-voltagent-app && cd my-voltagent-app
npm init -y
mkdir -p src/tools src/workflows .voltagent
Step 2: Install dependencies
Choose one server package:
npm install @voltagent/core @voltagent/libsql @voltagent/logger @voltagent/server-hono @voltagent/cli ai zod dotenv
or
npm install @voltagent/core @voltagent/libsql @voltagent/logger @voltagent/server-elysia @voltagent/cli ai zod dotenv
Dev dependencies:
npm install -D typescript tsx tsdown @types/node @biomejs/biome
Step 3: Add scripts to package.json
{
"scripts": {
"dev": "tsx watch --env-file=.env ./src",
"build": "tsdown",
"start": "node dist/index.js",
"lint": "biome check ./src",
"lint:fix": "biome check --write ./src",
"typecheck": "tsc --noEmit",
"volt": "volt"
}
}
volt is the VoltAgent CLI. Use it for project utilities (for example init, deploy, eval, prompts, tunnel, update).
Step 4: Configure TypeScript
Create tsconfig.json:
{
"compilerOptions": {
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "bundler",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"outDir": "dist",
"skipLibCheck": true
},
"include": ["src"],
"exclude": ["node_modules", "dist"]
}
Step 5: Add tsdown config
Create tsdown.config.ts:
import { defineConfig } from
Установить create-voltagent в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл create-voltagent?
Skill for creating AI agent projects using the VoltAgent framework. Guide for CLI setup and manual bootstrapping.
Как установить скилл create-voltagent?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл create-voltagent запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic