Skip to content

Install CLI

The clustercode CLI is the primary way to bootstrap workers and manage your connection to the orchestrator.

  • Node.js 22+ and npm 10+
  • macOS, Windows, or Linux

The CLI is published to the GitHub Package Registry. Configure the scope, then install:

Terminal window
npm config set @clustercode:registry https://npm.pkg.github.com
npm install -g @clustercode/cli
Terminal window
clustercode --version

The CLI handles:

CommandPurpose
clustercode loginAuthenticate via browser OAuth or API token
clustercode workerConfigure tenant and start the worker
clustercode doctorCheck system health
clustercode onboardGuided setup wizard
clustercode configManage CLI configuration
clustercode statusShow current state

The CLI stores files in ~/.clustercode/:

FilePurpose
credentials.jsonAPI key + email from authentication
worker.jsonWorker ID, tenant, and orchestrator URL
config.jsonUser preferences (e.g. WORKER_NAME)
Getting Started Concepts Guides CLI Self-Hosting Reference Links