Operations runbook — Windows Installer
This guide describes how to use the unified Windows installer to set up a local AlphaSwarm environment quickly.
Overview
The windows-install.ps1 script automates the following steps:
- Verifies the Windows environment.
- Installs system dependencies via
winget: Python 3.11, Node.js, Terraform, k3d, and kubectl. - Installs
pnpmvianpm. - Assists with Docker Desktop installation.
- Sets up a Python virtual environment (
.venv) at the workspace root. - Installs core AlphaSwarm packages in editable mode:
alphaswarm_corealphaswarm_agentsalphaswarm_authalphaswarm_controlleralphaswarm(monolith)alphaswarm_cli
- Installs frontend dependencies for
alphaswarm_client. - Generates the local configuration (
.env.local). - Verifies the installation using
alphaswarm-cli setup verify.
Prerequisites
- A PC running Windows 10 (version 1809 or later) or Windows 11.
- Administrator privileges (to run
wingetand install system tools). winget(App Installer) installed from the Microsoft Store.- Git installed and the AlphaSwarm repositories cloned into a single workspace directory.
Installation
-
Open PowerShell as an Administrator.
-
Navigate to your AlphaSwarm workspace root:
cd path\to\alphaswarm-workspace -
Set the execution policy to allow running the script (if not already set):
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process -
Run the installer:
.\alphaswarm_platform\scripts\windows-install.ps1 -
Follow the prompts. If Docker is not installed, the script will install it and ask you to launch it manually.
Post-Installation
After the script completes successfully:
-
Activate the virtual environment:
.\.venv\Scripts\Activate.ps1 -
Start the local development stack:
cd alphaswarm
# If you have 'make' installed:
make dev
# Otherwise, use the direct docker command provided at the end of the installer script. -
Access the applications:
- Operator UI: http://localhost:3000
- API Documentation: http://localhost:3000/api/docs
Troubleshooting
winget not found
Ensure you have the "App Installer" from the Microsoft Store. Recent versions of Windows 10 and all Windows 11 versions include it by default.
Script execution disabled
If you get an error about scripts being disabled, run Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process in your PowerShell session before running the installer.
Docker not found or not running
Ensure Docker Desktop is running and WSL2 is enabled if required. The script needs a working Docker daemon to manage local containers.
Python Version Conflicts
The script targets Python 3.11 specifically via winget. If you have multiple versions, ensure the one in .venv is used (which the script handles by using absolute paths during installation).
Known gap: the alphaswarm monolith package's pyproject.toml declares
requires-python = ">=3.12" (the other five editable installs — alphaswarm_core,
alphaswarm_agents, alphaswarm_auth, alphaswarm_controller, alphaswarm_cli — only
need >=3.11). Installing alphaswarm[dev,auth,cli,paper] into the Python-3.11 .venv
the script creates will fail with a "requires a different Python" error from pip. Until
the installer is updated, install a 3.12 interpreter (winget install --id Python.Python.3.12) and either point the script's venv creation at it or re-create
.venv with py -3.12 -m venv .venv before step 6.