Building AI Agents
A comprehensive guide to creating, configuring, and deploying autonomous AI agents with AgentForge.
On this page
Quick Start
AgentForge is a framework for building, testing, and deploying autonomous AI agents. It provides a unified API across multiple LLM providers.
npm install -g @agentforge/cli
agentforge init my-agent
cd my-agent
agentforge dev
Prerequisites
- Node.js 18+ — The runtime for running agents locally
- An API key — From OpenAI, Anthropic, or any supported provider
- Git — For version control and template management
Installation
AgentForge supports multiple installation methods. The npm package is recommended for most users.
npm install -g @agentforge/cli
Configuration
AgentForge uses a YAML configuration file at the root of your project. The CLI generates a default config during init.
Agents
An agent is an AI entity configured with a system prompt, a model, and a set of tools. Agents process tasks autonomously or within workflows.
const agent = new Agent({
name: 'research-assistant',
model: 'gpt-4o'
});
Tools
Tools are functions that agents can call during task execution. AgentForge includes built-in tools and supports custom tool creation.
Workflows
Workflows chain multiple agents and tools into multi-step processes. Each step receives the output of the previous step as context.
API Reference
AgentForge provides both REST and WebSocket APIs for managing agents programmatically.