Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

voltagent-core-reference

FreeNo executable scriptsNot checked

Reference for the VoltAgent class: constructor options, lifecycle methods, and runtime behavior.

VoltAgentby VoltAgent★ 17 GitHub stars

About this skill

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:

  • 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:

  • port
  • autoStart
  • customEndpoints
  • enableSwaggerUI

Lifecycle Notes

  • Registers agents and workflows on construction.
  • Auto-starts the server if a server provider is supplied.
  • Applies default memory to agents and workflows.
  • Auto-configures VoltOps client from VOLTAGENT_PUBLIC_KEY and VOLTAGENT_SECRET_KEY if not provided.
  • Initializes MCP and A2A servers and starts MCP transports after server start.

Methods

  • 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 provider
  • shutdown() for graceful shutdown, shutdownTelemetry() for observability

Example

import { VoltAgent } from "@voltagent/core";
import { honoServer } from "@voltagent/server-hono";

const app = new VoltAgent({
  agents: { agent },
  workflows: { workflow },
  server: honoServer(),
});

await app.startServer();

Install voltagent-core-reference in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the voltagent-core-reference skill do?

Reference for the VoltAgent class: constructor options, lifecycle methods, and runtime behavior.

How do I install the voltagent-core-reference skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the voltagent-core-reference skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare voltagent-core-reference with