Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

How to install and configure VoltAgent in a project?

2025-08-24 1.3 K

initial preparation

The first thing you need to do is to make sure that you have installed the Node.js environment (LTS version is recommended). The installation process is mainly done through the CLI tool and the steps are as follows:

Installation steps

  • Create a project: Runningnpm create voltagent-app@latest my-voltagent-app
  • Selection Tools: Follow the prompts to choose a package manager (npm/yarn/pnpm)
  • Access to the catalog: cd my-voltagent-app

Environment Configuration

In the project root directory, create the.envfile to configure API keys, such as OpenAI:

OPENAI_API_KEY=sk-proj-你的密钥

Initiation of projects

(of a computer) runnpm run devLaunch a development server to support hot code updates. By default, the development server can be started via thehttp://localhost:3000Access to the debugging console.

caveat

For different LLM providers you need to configure the appropriate environment variables, refer to the official documentation voltagent.dev/docs for detailed parameters.

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish