Skip to content

Multi-Machine

For larger deployments, run the coordinator on one machine and workers on as many machines as you want.

┌─────────────────┐
│ Coordinator │ ← Dashboard, job queue, worker registry
│ (server-1:7420) │
└────────┬────────┘
┌────┼────────────┐
│ │ │
┌───┴──┐ ┌───┴──┐ ┌───┴──┐
│Worker│ │Worker│ │Worker│
│Ollama│ │Claude│ │Laptop│
└──────┘ └──────┘ └──────┘

On the coordinator machine:

Terminal window
modelreins coordinator start --host 0.0.0.0 --port 7420

On each worker machine, point at the coordinator:

Terminal window
export MODELREINS_API_URL=http://coordinator-host:7420
export MODELREINS_API_KEY=your-shared-key
modelreins worker start --name $(hostname) --provider ollama
  • Always use MODELREINS_API_KEY to authenticate workers.
  • Use HTTPS (reverse proxy) for coordinator access over the internet.
  • Workers only need outbound access to the coordinator and their provider APIs.

Add workers at any time — they register automatically. Remove workers by stopping the process. The coordinator requeues any in-progress jobs from disconnected workers.

The easiest way to add machines to the mesh:

Terminal window
npx @mediagato/modelreins-companion install

See Companion App for details.