-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Michael Goetz edited this page Jun 14, 2025
·
4 revisions
This guide provides detailed instructions for installing and setting up the Multi-Agent Framework.
- Python: 3.10 or higher
- Memory: 4GB RAM minimum (8GB recommended)
- Storage: 500MB for framework + space for your projects
- OS: Linux, macOS, or Windows 10/11
# Check Python version
python --version # Should be 3.10+
# Check pip
pip --version
# Git (for source installation)
git --versionYou'll need at least one LLM provider API key:
- Google Gemini: Get API key
- Anthropic Claude: Get API key
- OpenAI: Get API key
Coming Soon! Once published, you'll be able to install with:
pip install multi-agent-frameworkgit clone https://github.com/micgo/maf-standalone.git
cd maf-standalone# Create virtual environment
python -m venv venv
# Activate virtual environment
# On Linux/macOS:
source venv/bin/activate
# On Windows:
venv\Scripts\activate# Install in standard mode
pip install .
# Or install in editable mode (for development)
pip install -e .For contributors and developers:
# Clone and enter directory
git clone https://github.com/micgo/maf-standalone.git
cd maf-standalone
# Create and activate virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install with development dependencies
pip install -e ".[dev]"
# Install pre-commit hooks (optional)
pre-commit installNavigate to your project directory and run:
cd /path/to/your/project
maf initThis creates:
-
.maf-config.json- Project configuration -
.env.example- Template for API keys -
.maf/- Runtime directory containing:-
state.json- Framework state tracking -
message_queues/- Agent message queues
-
-
.maf_logs/- Log files
Copy the environment template:
cp .env.example .envEdit .env and add your API keys:
# Add at least one of these:
GEMINI_API_KEY=your_actual_gemini_key_here
ANTHROPIC_API_KEY=your_actual_claude_key_here
OPENAI_API_KEY=your_actual_openai_key_hereSecurity Note: Never commit .env to version control!
Check that MAF is properly configured:
maf configThis displays your current configuration and validates API keys.
# Check MAF version
maf --version
# Run help command
maf --help
# Test framework
python -m pytest tests/ # If installed from source# Start agents in test mode
maf launch --agents orchestrator
# Check agent status
maf status# Create a simple test task
maf trigger "Create a hello world function"
# Monitor progress
maf status --detailed# Error: ModuleNotFoundError: No module named 'multi_agent_framework'
# Solution: Ensure you've activated your virtual environment
source venv/bin/activate # Linux/macOS
venv\Scripts\activate # Windows# Error: No API keys configured
# Solution: Check .env file exists and contains valid keys
cat .env # Should show your API keys
# Verify keys are loaded
python -c "import os; print('GEMINI_API_KEY' in os.environ)"# Error: Permission denied when creating directories
# Solution: Ensure you have write permissions
chmod +w . # Make current directory writableCreate a test script to validate installation:
# test_installation.py
import sys
try:
import multi_agent_framework
print("✓ MAF imported successfully")
print(f"✓ Version: {multi_agent_framework.__version__}")
from multi_agent_framework.cli import main
print("✓ CLI module loaded")
import os
api_keys = ['GEMINI_API_KEY', 'ANTHROPIC_API_KEY', 'OPENAI_API_KEY']
configured = [k for k in api_keys if os.getenv(k)]
if configured:
print(f"✓ API keys configured: {', '.join(configured)}")
else:
print("✗ No API keys configured")
except Exception as e:
print(f"✗ Error: {e}")
sys.exit(1)Run with:
python test_installation.pyIf you encounter issues:
- Check the Troubleshooting Guide
- Search existing issues
- Ask in Discussions
- Create a new issue with:
- Error messages
- System information
- Steps to reproduce
- Read the Quick Start Tutorial
- Explore Configuration Options
- Learn about Architecture
- Browse CLI Commands