Skip to main content
This tutorial explains how to configure a model and run a minimal agent that returns an answer in your terminal.
Complete the installation and obtain a Volcengine Ark API key first. This chapter covers only the minimal path to a first run; deploying to AgentKit, memory, knowledge bases, multi-agent, and evaluation are covered in their respective chapters.

Configure a model

Provide the credentials for calling the model in one of two ways. The simplest is an environment variable — only the API key is required.
With the API key set, VeADK uses the default doubao model on Volcengine Ark:
To use a different model, also set MODEL_AGENT_NAME, MODEL_AGENT_PROVIDER, and MODEL_AGENT_API_BASE.

Write your first agent

Create main.py:
main.py
Agent holds the model and instruction; with no arguments it uses the default model from config.yaml. agent.run(...) is asynchronous and returns the final text answer.

Run

The terminal prints the model’s answer, completing a minimal VeADK agent run.
Last modified on September 19, 2026