skills/voltagent-core-reference/SKILL.md
--- name: voltagent-core-reference # prettier-ignore description: Reference for the VoltAgent class: constructor options, lifecycle methods, and runtime behavior. license: MIT metadata: author: VoltAgent version: "1.0.0" repository: https://github.com/VoltAgent/skills --- # VoltAgent Core Reference Reference for the VoltAgent class in `@voltagent/core`. Source files: - packages/core/src/voltagent.ts - packages/core/src/types.ts --- ## Options Overview `VoltAgentOptions` supports: -
npx skillsauth add VoltAgent/skills skills/voltagent-core-referenceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Reference for the VoltAgent class in @voltagent/core.
Source files:
VoltAgentOptions supports:
agents: Record of Agent instances to register.workflows: Record of Workflow or WorkflowChain instances.memory: Default Memory used for agents and workflows.agentMemory: Default Memory for agents (falls back to memory).workflowMemory: Default Memory for workflows (falls back to memory).toolRouting: Global ToolRoutingConfig defaults.triggers: VoltAgentTriggersConfig handlers.server: Server provider factory (for example honoServer()).serverless: Serverless provider factory for fetch runtimes.voltOpsClient: Shared VoltOpsClient instance.observability: VoltAgentObservability instance.logger: Shared Logger instance.mcpServers: Record of MCP servers or factories.a2aServers: Record of A2A servers or factories.checkDependencies: Set to false to skip dependency checks.Deprecated options:
portautoStartcustomEndpointsenableSwaggerUIVOLTAGENT_PUBLIC_KEY and VOLTAGENT_SECRET_KEY if not provided.registerAgent(agent), registerAgents(agents)registerWorkflow(workflow), registerWorkflows(workflows)registerTrigger(name, config), registerTriggers(triggers)getAgent(id), getAgents(), getAgentCount()getWorkflow(id), getWorkflows(), getWorkflowCount()getObservability()startServer(), stopServer(), getServerInstance()serverless() to access the serverless providershutdown() for graceful shutdown, shutdownTelemetry() for observabilityimport { VoltAgent } from "@voltagent/core";
import { honoServer } from "@voltagent/server-hono";
const app = new VoltAgent({
agents: { agent },
workflows: { workflow },
server: honoServer(),
});
await app.startServer();
development
Look up VoltAgent documentation embedded in node_modules/@voltagent/core/docs for version-matched docs. Use for API signatures, guides, and examples.
data-ai
VoltAgent architectural patterns and conventions. Covers agents vs workflows, project layout, memory, servers, and observability.
tools
Skill for creating AI agent projects using the VoltAgent framework. Guide for CLI setup and manual bootstrapping.
data-ai
Example TaskFlow authoring pattern for inbox triage. Use when messages need different treatment based on intent, with some routes notifying immediately, some waiting on outside answers, and others rolling into a later summary.