Installation¶
This guide covers all methods to install PolyBot.
Requirements¶
- Python: 3.11 or higher
- OS: Linux, macOS, or Windows (WSL recommended)
- Memory: 2GB RAM minimum
- Disk: 500MB for installation + data
PyPI Installation (Recommended)¶
The simplest way to install PolyBot:
Or with uv (faster):
Verify Installation¶
Docker Installation¶
Docker is ideal for production deployments.
Quick Start¶
# Clone the repository
git clone https://github.com/cryptuon/polybot
cd polybot
# Copy environment template
cp .env.example .env
# Edit .env with your credentials
# Start all services
docker compose up -d
Services¶
The Docker Compose setup includes:
| Service | Port | Description |
|---|---|---|
polybot |
8000 | Main application |
prometheus |
9090 | Metrics (optional) |
grafana |
3000 | Dashboards (optional) |
Enable monitoring with:
Persistent Data¶
Data is stored in Docker volumes:
- polybot-data: SQLite and DuckDB databases
- polybot-logs: Application logs
From Source¶
For development or customization:
# Clone repository
git clone https://github.com/cryptuon/polybot
cd polybot
# Install with uv (recommended)
uv sync
# Or with pip
pip install -e ".[dev]"
Running from Source¶
Building the Frontend¶
The Vue.js dashboard requires Node.js:
Platform-Specific Notes¶
macOS¶
Install Python via Homebrew:
Ubuntu/Debian¶
Windows¶
We recommend using WSL2 for the best experience:
- Install WSL2 with Ubuntu
- Follow Linux installation steps
Native Windows is supported but may have limitations with NNG sockets.
Post-Installation¶
After installation, you need to:
- Configure credentials: See Configuration
- Initialize databases:
polybot db init - Set up authentication:
polybot auth
Upgrading¶
PyPI¶
Docker¶
From Source¶
Troubleshooting¶
Common Issues¶
ModuleNotFoundError: No module named 'polybot'
NNG socket errors on Windows
Permission denied for IPC sockets
For more help, see FAQ or open an issue.