System Requirements
Before installing Harbor, ensure your system meets these requirements:Python Version
Python Version
Docker (for local execution)
Docker (for local execution)
- macOS/Windows: Docker Desktop
- Linux: Follow the official Docker Engine installation guide
Operating System
Operating System
- Linux (recommended for production)
- macOS (great for development)
- Windows (via WSL2 with Docker Desktop)
Memory & Storage
Memory & Storage
- RAM: 8GB minimum, 16GB+ recommended for concurrent evaluations
- Storage: 20GB+ free space for Docker images and task environments
- CPU: Multi-core processor for parallel execution
Installation Methods
Harbor can be installed usinguv (recommended) or pip.
Using uv (Recommended)
uv is a fast Python package installer and resolver. It’s the recommended way to install Harbor.Install uv
uv installed:Install Harbor
Verify installation
Using pip
You can also install Harbor using standard pip:Create a virtual environment (optional but recommended)
Install Harbor
Verify installation
Command-Line Aliases
Harbor provides convenient command aliases for faster typing:API Keys Setup
To use AI agents, you’ll need API keys from the respective providers.Anthropic (Claude)
Anthropic (Claude)
- Get an API key from Anthropic Console
- Set the environment variable:
~/.bashrc, ~/.zshrc, etc.):OpenAI
OpenAI
Google (Gemini)
Google (Gemini)
Other Providers
Other Providers
- OpenRouter:
export OPENROUTER_API_KEY=... - Together AI:
export TOGETHER_API_KEY=... - Replicate:
export REPLICATE_API_KEY=... - Hugging Face:
export HUGGINGFACE_API_KEY=...
Cloud Provider Setup
For cloud-based evaluation execution, configure your provider credentials.- Daytona
- Modal
- E2B
- Runloop
- GKE
- Sign up at daytona.io
- Get your API key from the dashboard
- Set the environment variable:
- Run evaluations:
Docker Configuration
For local execution, optimize Docker settings for Harbor:Resource Limits
Resource Limits
- Open Docker Desktop Settings
- Go to Resources
- Adjust:
- CPUs: Allocate enough for
--n-concurrenttrials - Memory: At least 2GB per concurrent trial
- Disk space: 50GB+ recommended
- CPUs: Allocate enough for
/etc/docker/daemon.json:Image Caching
Image Caching
Network Configuration
Network Configuration
Verification
Verify your Harbor installation is working correctly:Check version and help
List available datasets
Run a test evaluation
Troubleshooting
Python version error
Python version error
Python 3.12 or higher is requiredSolution: Upgrade Python using:- pyenv:
pyenv install 3.12 && pyenv global 3.12 - Official installer
- System package manager:
brew install python@3.12(macOS)
Docker daemon not running
Docker daemon not running
Cannot connect to the Docker daemonSolution:- Start Docker Desktop (macOS/Windows)
- Start Docker daemon:
sudo systemctl start docker(Linux) - Verify:
docker ps
Permission denied (Docker)
Permission denied (Docker)
Permission denied while trying to connect to DockerSolution (Linux):sudo.Module import errors
Module import errors
ImportError: No module named 'harbor'Solution:- Ensure you’re in the correct virtual environment
- Reinstall:
pip install --force-reinstall harbor - Check installation:
pip show harbor
API key not found
API key not found
API key not found for providerSolution:- Set environment variable:
export ANTHROPIC_API_KEY=... - Check it’s set:
echo $ANTHROPIC_API_KEY - Add to shell profile for persistence
Out of memory during evaluation
Out of memory during evaluation
- Reduce
--n-concurrentflag - Increase Docker memory limits
- Use cloud provider for large-scale runs
Development Installation
For contributing to Harbor or developing custom extensions:Clone the repository
Install with development dependencies
Run tests
Format and lint