Skip to main content

Quick Start

Get started with officeLLM by building a simple multi-agent system in just a few steps.

Prerequisites

  • Node.js 18+
  • TypeScript
  • API keys for your preferred LLM providers

1. Installation

2. Set up environment variables

Create a .env file with your API keys:

3. Create your first agents

4. Initialize and run

5. Expected output

Next Steps

Common Issues

“Provider type not registered”
  • Use supported types: 'openai' | 'anthropic' | 'gemini' | 'openrouter'
  • Check API key is set
“Task execution failed”
  • Verify API keys are valid
  • Check the model name is correct
  • Review system prompts
TypeScript errors
  • Use as const for provider types: type: 'openai' as const