Workers
A worker is a process that connects to the ModelReins coordinator, pulls jobs from the queue, and processes them using a configured provider.
Starting a worker
Section titled “Starting a worker”modelreins worker start --name my-laptop --provider ollamaWorker lifecycle
Section titled “Worker lifecycle”- Register — worker announces itself to the coordinator with its name, provider, and capabilities.
- Poll — worker checks the queue for jobs matching its provider.
- Process — worker sends the job to its provider and streams the result back.
- Report — worker marks the job complete and updates cost/token metrics.
Configuration
Section titled “Configuration”{ "worker": { "name": "my-laptop", "provider": "ollama", "concurrency": 2, "tags": ["local", "code-review"] }}Managing workers
Section titled “Managing workers”modelreins worker list # See all workersmodelreins worker info <id> # Details on one workermodelreins worker pause <id> # Stop picking up jobsmodelreins worker resume <id> # Resume picking up jobsmodelreins worker stop <id> # Disconnect and shut downTags and routing
Section titled “Tags and routing”Workers can have tags that routing rules match against. This lets you send specific job types to specific machines. See Routing for details.