Start in Zero Hub mode with the offline plugin. Step up to a Local Hub on your laptop or a Cloud Hub (confighub.com or self-hosted Helm) only when you hit one of the moments below.
| Stage | When this happens | What you use | What you get |
|---|---|---|---|
| Zero Hub | You open an unfamiliar repository | /confighub:inventory (cub repo inventory) | What the repo deploys and what deploys it, before anyone edits a file (inventory) |
| Zero Hub | A teammate reviews an agent PR | GitHub review Action or cub agent changes --export-md diff.md | Automatic PR comment or redacted diff card showing each changed setting and its recorded reason |
| Zero Hub | You need field locks, config-only undo, OCI Config Bundles, or memory-only env sharing | cub agent lock/undo, cub bundle, cub env share/join/exec | Freeze keys, revert only config edits, pack K8s 1.36+ OCI bundles (> 1 MiB), and share staging envs with zero .env on disk |
| Local Hub | You want safe agent experiments & gated production | /confighub:staging (cub local start) | Isolated preview + staging copy your agent edits freely; live gated behind cub inbox approve (new app) |
| Local Hub | An upstream chart/version updates | cub repo upgrade | Preview incoming changes while preserving your overrides and reasons (keep your changes, Helm charts) |
| Local Hub | Your app deploys to Vercel, Fly, Heroku or Unikraft Cloud | /confighub:staging in the app's folder (on Unikraft, --unikraft SERVICE) | Approving a production change puts it live; unapproved changes wait (Next.js on Vercel, Rails on Fly, Heroku, Unikraft) |
| Local Hub | You run the app yourself | /confighub:staging, then cub env preview --staging | Your app runs the way it already does, with staging's settings; your files are not changed (an app you already have) |
| Local Hub | You start a second app | cub local start-from APP, cub repo starter, or cub repo adopt --pattern APP (starters) | New apps inherit proven defaults and reasons while keeping their own overrides |
| Local Hub | Your agent works in a Daytona sandbox | /confighub:staging, then cub env preview --staging --daytona SANDBOX | Your app runs in the sandbox with staging's settings, with no credential or ConfigHub key there (Daytona) |
| Local / Remote | Agents run in CI or sandboxes | Ephemeral hub per run | Isolated hub per job that outputs changes for human review (hub per agent run, CI) |
| Cloud Hub | Teammates or long-running agents join | /confighub:to-hub (cub local to-hub to confighub.com or self-hosted Helm) | Per-agent keys, instant revocation, named human approvers, signed records, fleet queries (from laptop to Cloud Hub, unattended agents) |
| Cloud Hub | Clusters pull via Argo CD or Flux | GitOps over OCI | Clusters pull exact approved releases (GitOps over OCI, cluster drift vs. Git) |
(All cub mini ... commands remain supported as a silent compatibility alias.)