Register a Worker
A worker is a machine running Podman (or Docker) that executes containers on behalf of the orchestrator. Registration is a one-time step where the CLI selects a tenant and generates a worker identity.
Prerequisites
Section titled “Prerequisites”- CLI installed and authenticated (
cropscode login) - Podman (or Docker) installed and running on this machine
- Network access to the orchestrator (outbound only — no inbound ports needed)
Quick path
Section titled “Quick path”cropscode onboardThe onboard wizard checks everything (auth, tenant selection, orchestrator reachability, container runtime, disk/memory) and fixes issues automatically.
Manual path
Section titled “Manual path”Start the worker
Section titled “Start the worker”cropscode workerOn first run, the CLI:
- Checks your authentication
- Fetches available tenants from the orchestrator
- Lets you pick a tenant (or auto-selects if there’s only one)
- Saves the worker config to
~/.cropscode/worker.json - Starts the worker daemon
On subsequent runs, it reads the saved config and starts immediately.
Verify
Section titled “Verify”cropscode statusYou should see:
User: you@example.com Worker: a1b2c3d4 Tenant: your-tenant Orchestrator: console.cropscode.io Connection: ConnectedThe worker also appears in the orchestrator dashboard under the Workers panel.
Health check
Section titled “Health check”Run cropscode doctor at any time to verify the worker’s health:
cropscode doctorIt checks: authentication, worker registration, orchestrator connectivity, WSL2 (Windows only), container runtime (Podman/Docker), disk space, and available memory.
Multi-machine setup
Section titled “Multi-machine setup”Repeat these steps on each machine you want to connect. Workers connect outbound — no inbound ports needed, works behind NAT and firewalls.
Next steps
Section titled “Next steps”- Quickstart — launch your first container
- Self-hosting: Requirements — hardware and network requirements
- Self-hosting: Worker Agent — how the agent works internally