Single Server
The simplest deployment: everything on one server.
npm install -g @mediagato/modelreinsmodelreins init --mode serverStart the coordinator
Section titled “Start the coordinator”modelreins coordinator start --port 7420Start workers on the same machine
Section titled “Start workers on the same machine”# Local provider workermodelreins worker start --name local-worker --provider ollama
# Cloud provider workerANTHROPIC_API_KEY=sk-ant-... modelreins worker start --name cloud-worker --provider claudeSystemd service (Linux)
Section titled “Systemd service (Linux)”modelreins service install --coordinatormodelreins service install --worker local-worker --provider ollamaThis creates systemd units that start on boot and restart on failure.
Reverse proxy
Section titled “Reverse proxy”Put the dashboard behind nginx with HTTPS:
server { listen 443 ssl; server_name modelreins.example.com;
ssl_certificate /etc/ssl/certs/modelreins.pem; ssl_certificate_key /etc/ssl/private/modelreins.key;
location / { proxy_pass http://localhost:7420; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; }}Docker
Section titled “Docker”docker compose up -dSee the docker-compose.yml in the repository for a complete single-server setup.