Skip to content

clustercode worker

Terminal window
clustercode worker
# or, the same command under another name:
clustercode connect

The worker command selects a tenant (if needed) and starts the worker on this machine.

clustercode connect is an alias of clustercode worker: it takes the same options and behaves identically, so use whichever name you prefer.

On first run, it walks you through setup:

  1. Checks that you’re logged in (prompts to run clustercode login if not)
  2. Fetches the tenants your account can access
  3. If you have more than one, lets you pick which to join
  4. Starts the worker

On later runs, it reuses your saved selection and starts immediately.

FlagDescription
--podmanUse Podman as the container engine
--dockerUse Docker as the container engine
--prereleaseUse the latest prerelease worker agent
--agent-version <version>Pin an exact worker agent version (e.g. 1.0.0-alpha.4)
-v, --verboseVerbose worker agent logging
--doctorRun clustercode doctor first, then connect

If you don’t pass either engine flag, the worker uses whichever supported engine it finds on the machine. Pass one — not both — to force the choice.

Add --doctor to run the health checks on the way in:

Terminal window
clustercode connect --doctor

This runs the full clustercode doctor flow first — including its offer to run clustercode onboard when a check fails — and connects the worker once doctor has finished. It’s the quickest way to fix setup issues and get online in one step.

  • Issues left unresolved — you declined the fix, the fix didn’t clear them, or there’s no terminal to ask — produce a warning, and the worker connects anyway. The worker still enforces its hard prerequisites itself (being logged in, having a tenant, having a container engine), with the same errors as without --doctor.
  • Cancelling a doctor prompt (Ctrl+C or Esc) stops without connecting.
  • Invalid flags, such as --podman --docker together, are rejected straight away, before doctor runs.

--doctor works the same on clustercode worker --doctor.

The worker connects outbound to the orchestrator — no inbound ports, no firewall rules, works behind NAT. If the connection drops, it reconnects automatically.

Leave the command running to keep the worker online; stop it with Ctrl+C.

Terminal window
clustercode status

Your worker also appears in the dashboard under the Workers panel.