Installation
Installation
Complete installation guide for the AI Red vs Blue Arena.
System Requirements
- Node.js: 18.0.0 or higher
- Package Manager: pnpm (recommended) or npm
- Docker: Optional, for Kestra orchestration
- Operating System: Windows, macOS, or Linux
Step 1: Clone the Repository
git clone <repository-url>cd "Agents Assemble"Step 2: Install Dependencies
Backend
cd backendpnpm installFrontend
cd frontendpnpm installStep 3: Environment Configuration
Backend Environment
Create backend/.env:
PORT=3001WS_PORT=3002CORS_ORIGIN=http://localhost:3000DATABASE_PATH=./data/arena.json
# LLM Provider API Keys (optional - uses mock if not provided)GROQ_API_KEY=your_groq_key_hereOPENAI_API_KEY=your_openai_key_hereANTHROPIC_API_KEY=your_anthropic_key_here
# Per-team Groq keys (optional)RED_TEAM_GROQ_API_KEY=your_red_team_keyBLUE_TEAM_GROQ_API_KEY=your_blue_team_key
# Kestra Integration (optional)KESTRA_URL=http://localhost:8080KESTRA_API_KEY=your_kestra_key_here
# Oumi Integration (optional)OUMI_API_URL=https://api.oumi.aiOUMI_API_KEY=your_oumi_api_key_here
# Cline IntegrationUSE_CLINE=trueFrontend Environment
Create frontend/.env.local:
NEXT_PUBLIC_API_URL=http://localhost:3001/apiNEXT_PUBLIC_WS_URL=ws://localhost:3002Step 4: Initialize Database
The database is automatically created on first run. To seed with default agents:
cd backendpnpm run seedStep 5: Start Services
Development Mode
Backend:
cd backendpnpm run devFrontend:
cd frontendpnpm run devUsing Automation Scripts
# Start all services.\scripts\start-all.ps1
# Stop all services.\scripts\stop-all.ps1Step 6: Verify Installation
# Run verification script.\scripts\verify-setup.ps1
# Or test end-to-end.\scripts\test-e2e.ps1Troubleshooting
Port Already in Use
If ports 3000, 3001, or 3002 are in use:
- Change ports in
.envfiles - Update
CORS_ORIGINin backend.env - Update
NEXT_PUBLIC_API_URLin frontend.env.local
Database Issues
If database errors occur:
- Delete
backend/data/arena.json - Restart backend (database will be recreated)
- Run seed script:
pnpm run seed
API Key Issues
The system works without API keys using mock providers. To use real LLMs:
- Get API keys from providers
- Add to
backend/.env - Restart backend
Next Steps
- Configuration Guide - Configure all settings
- Quick Start - Run your first match