ConfigHub · Durable config for coding agents

Six real-host guides · Claude Code, Codex CLI & Google Antigravity

Six real-host guides, one screen each

Every guide below follows the same pattern: one prompt to paste in Claude Code, Codex CLI, or Google Antigravity, the status card you'll see in chat, your single approval command, and complete on-site step-by-step commands so you never need to bounce to raw GitHub files.

Choose your way in: 5-minute first look · Step-by-step tutorial · 6-slide Agentic Ops story · Guides by host (this page)

New here? Deploy your first app · Bring your own app · Going back

Starting from a brand-new local app? (4 steps)
  1. Create & link the host app first (in your own terminal): run vercel link (for Vercel) or fly launch --no-deploy (for Fly.io) so the folder has its linked project / fly.toml. (Remember: cub repo deliver sends approved settings; your host CLI deploys your code.)
  2. Attach staging + gated production: run /confighub:staging in Claude Code (or cub repo adopt . --name shop), then start a fresh chat so the agent picks up its scoped key. Sandbox note: /confighub:staging starts a Local Hub and writes .claude/settings.local.json with localhost-only sandbox networking so agents cannot hit prod directly — run npm install or host CLIs in your own terminal.
  3. Iterate in staging & approve production: let the agent tune staging freely and propose production edits; approve in your own terminal with cub inbox list --card → cub inbox approve BASE/ORDER.
  4. Deliver settings & deploy code: run cub repo deliver shop to push approved settings 1:1 to Vercel/Fly, then deploy code via vercel --prod or fly deploy.

1. Next.js on Vercel (with Stripe test vs. live keys)

Connect a linked Vercel project and Stripe test defaults so Claude updates preview & staging freely while live payment keys and production cache stay gated behind your approval (⏳).

Try a 30-second price cache and Stripe test mode in Vercel preview and staging for the sale. Keep production at 60s until I approve it.
╭─ ConfigHub · Vercel preview, staging & live prod ──────────────╮
│ ├── preview     ● Vercel preview     EDGE_CACHE_SECONDS=30 · STRIPE_MODE=test ✓ │
│ ├── staging     ✓ updated by agent   EDGE_CACHE_SECONDS=30 · STRIPE_MODE=test ✓ │
│ └── production  ⏳ waiting for you   EDGE_CACHE_SECONDS=60 · live keys kept     │
│                 ├── live host target: Vercel production (fra1)   │
│                 └── your gate: cub inbox approve BASE/ORDER     │
╰────────────────────────────────────────────────────────────────╯

Prerequisites: Vercel CLI (vercel link in your app folder), Python 3 (used by the provider helper scripts), then /confighub:staging in Claude Code. Set CUB_MINI_STARTERS when enabling built-in YAML starters; pass --live to cub repo adopt when connecting direct live delivery as in the walkthrough. Get the exact BASE/ORDER ID from cub inbox list. (Stripe payment defaults · Full walkthrough →)

Step-by-step terminal commands (stay on-site)
vercel link && cub repo adopt . --name shop --live
cub repo set shop EDGE_CACHE_SECONDS=30 STRIPE_MODE=test --variant staging --change-desc "Sale preview + test keys"
# --fleet applies the base change to staging immediately and queues production for your approval
cub repo set shop EDGE_CACHE_SECONDS=30 --variant base --fleet --change-desc "Promote to staging and queue production approval"
cub inbox list --card   # copy the exact BASE/ORDER ID printed here
cub inbox approve shop-base/ORDER_ID
cub repo deliver shop && cub repo deliver shop --compare --card

2. Fly.io (Rails, Node/Express, or any fly.toml app — Machine rollover, zero image rebuilds)

Roll approved production settings across Fly Machines one at a time while keeping stopped standbys stopped and keeping secrets on Fly. Zero Hub (plugin alone) works today with zero repo changes even if your app keeps config in .env + fly secrets (and holds fly secrets set -a api-production).

Verified scope, caveats & sandbox notes

Hub-driven Machine rollover reads non-secret keys from .env / fly.toml [env] (keep Fly-reserved FLY_* variables out of adopted app config). Live runs in Rails & Node on Fly verified both Rails (shop & cart) and two-app Node/Express (node-stg + node-prd on 0.11.24-mini.53, preserving the exact Fly image digest across staging rollover, prod approval, and rollback); multi-Machine process groups remain untested. Running /confighub:staging writes .claude/settings.local.json with autoAllowBashIfSandboxed: true by default (set CUB_MINI_AUTO_ALLOW_BASH=0 or CUB_MINI_MODE=team to keep Bash prompts).

Set APP_SUPPORT_HOURS to Daily in staging on Fly. Propose the same change for production and show me the approval command.
╭─ ConfigHub · Fly Machine rollover ─────────────────────────────╮
│ ├── staging     ✓ updated by agent   APP_SUPPORT_HOURS="Daily" │
│ └── production  ⏳ waiting for you   APP_SUPPORT_HOURS="Wkdays"│
│                 ├── live host target: Fly app (same image)     │
│                 └── your gate: cub inbox approve BASE/ORDER    │
╰────────────────────────────────────────────────────────────────╯

Prerequisites: flyctl auth whoami, a fly.toml with an [env] block, and /confighub:staging. Get the exact BASE/ORDER ID from cub inbox list. Full guide →

Step-by-step terminal commands (single app or separate staging + production Fly apps)
# Single Fly app (Rails, Node/Express, Go, Python — reads [env] in fly.toml):
cub repo adopt . --name support-api --live
cub repo set support-api APP_SUPPORT_HOURS=Daily --variant staging --change-desc "Weekend support hours"
cub repo set support-api APP_SUPPORT_HOURS=Daily --variant base --fleet --change-desc "Promote to staging + wait on prod"
# Person runs approve & deliver in their own terminal (deliver pushes live; --compare checks 1:1 parity):
cub inbox list --card   # copy the exact BASE/ORDER ID printed here
cub inbox approve support-api-base/ORDER_ID
cub repo deliver support-api && cub repo deliver support-api --compare --card

# Two separate Fly apps (each folder has its own fly.toml + .env):
cub repo adopt ./app-stg --name api-staging --approve && cub repo deliver api-staging
cub repo adopt ./app-prd --name api-production --approve && cub repo deliver api-production --compare --card

3. Moving off Heroku to Fly, Vercel, or Unikraft (compare settings before moving anything)

Compare Heroku config vars against Fly or Vercel from cub repo deliver --compare in Zero Hub mode — without starting a Local Hub or changing either host. It reads variable names via each host CLI and generates a safe credential-copy command that never prints secret values. (The Unikraft compare and shared-base adoption steps below use a Local Hub.)

Compare my Heroku app HEROKU_APP with Fly app FLY_APP without changing anything, and show me the safe secret copy command.
╭─ ConfigHub · Compare · Heroku ↔ Fly ───────────────────────────╮
│ ├── APP_SUPPORT_HOURS   Heroku: "Daily" · Fly: missing  ⚠ diff │
│ ├── WEB_CONCURRENCY     Heroku: "4"     · Fly: "4"      ✓ match│
│ └── secrets (3)         ✓ safe copy line generated (unprinted) │
╰────────────────────────────────────────────────────────────────╯

Prerequisites: Heroku CLI (heroku auth:whoami) plus flyctl or vercel CLI. Full Heroku move guide →

Step-by-step terminal commands (stay on-site)
# Zero Hub — read-only host compare:
cub repo deliver --compare --heroku HEROKU_APP --fly FLY_APP
cub repo deliver --compare --heroku HEROKU_APP --vercel VERCEL_PROJECT
# Local Hub Unikraft compare & shared-base adoption:
cub repo deliver HEROKU_APP --unikraft UK_SERVICE --compare --card
cub repo adopt . --name migrated-api --pattern base-api && cub inbox list --card

4. Daytona & Ephemeral Sandboxes (guard boot & keep what worked)

Let your agent run load tests and tune settings inside a disposable Daytona or nono OS sandbox while keeping tuned settings after teardown and blocking live production keys before boot.

Run my queue load test inside a Daytona test sandbox with Stripe test mode only, block any live production keys, and save any batch-size change before deleting it.
╭─ ConfigHub · Sandbox handoff · shop ───────────────────────────╮
│ ├── boot check  ✓ --mode test       stripe=test (live keys blocked)│
│ ├── teardown    ✗ sandbox deleted   container & local disk wiped  │
│ ├── changed     ✓ captured diff     BATCH_SIZE: 120 → 240         │
│ └── saved       ⏳ waiting for you  staging=240 · prod=120        │
│                 └── review anytime: cub inbox list --card         │
╰────────────────────────────────────────────────────────────────╯

Under the hood: Attached folders pull non-secret settings from <app>-staging at boot (--pull/--no-pull), resolve .confighub/connections.yaml in test mode, and capture diffs even on SIGTERM preemption—both via cub env exec and persistent shells (eval "$(cub env shell --capture-on-exit)"). Verified live on a real EU Daytona sandbox syncing directly into cub inbox list --card. Safe nono + Daytona guide → · Daytona / Unikraft / Google AX templates → · Full Daytona walkthrough →

Step-by-step terminal commands (stay on-site)
cub agent lock STRIPE_MODE --reason "Keep test mode"
nono run -- cub env exec --app shop --mode test --connections .confighub/connections.yaml --capture -- daytona exec -- npm run load-test
# Or in a persistent sandbox shell (captures on EXIT / SIGTERM):
eval "$(cub env shell --app shop --env sandbox --mode test --capture-on-exit)"
cub inbox list --card   # or: cub env exec --list
cub agent undo --dry-run   # revert only config if needed

5. Unikraft Cloud MicroVM (same image, gated config rollover)

Rehearse an incident notice or flag in staging on the exact same immutable image; approving rolls Unikraft production instances over without rebuilding the image.

Turn on the incident banner in Unikraft staging on the same image and propose it for production.
╭─ ConfigHub · Unikraft live rollover ───────────────────────────╮
│ ├── staging     ✓ updated by agent   INCIDENT_BANNER="Delayed" │
│ └── production  ⏳ waiting for you   INCIDENT_BANNER="Normal"  │
│                 ├── live host target: Unikraft production      │
│                 └── your gate: cub inbox approve BASE/ORDER    │
╰────────────────────────────────────────────────────────────────╯

Prerequisites: Unikraft CLI (kraft), Local Hub (/confighub:staging). Get the exact BASE/ORDER ID from cub inbox list. Full Unikraft walkthrough →

Step-by-step terminal commands (stay on-site)
cub repo adopt . --name shop-uk --live
cub repo set shop-uk INCIDENT_BANNER=Delayed --variant staging --change-desc "Incident notice"
cub repo set shop-uk INCIDENT_BANNER=Delayed --variant base --fleet --change-desc "Promote notice"
cub inbox list --card   # copy the exact BASE/ORDER ID printed here
cub inbox approve shop-uk-base/ORDER_ID && cub repo deliver shop-uk --compare --card

6. Platform & GitOps Teams: Self-Hosted Helm + OIDC (Cloud Hub)

For 40+ Helm releases on Argo CD or Flux, the PR is the gate today: run the standalone Zero Hub inventory binary plus the zero-local-install GitHub PR review Action so every PR shows layered value diffs and reasons while Argo CD or Flux keep syncing from Git. When you want deeper governance, graduate to signed OCI delivery or a self-hosted Cloud Hub with OIDC (Dex, Okta, Entra ID, Keycloak, or GitHub OIDC).

Verified scope, caveats & sandbox notes

The standalone inventory binary works offline with no plugin, no hub, and no 12-chart Local Hub cap, supporting layered helm.valueFiles (review@v0 renders up to 12 Applications per single ApplicationSet and counts the rest). Classify releases using Workshop flattening verdicts (safe-to-flatten charts move to signed OCI delivery via cub helm on Argo CD 3.1+; unsafe-to-flatten charts stay explicitly render-late). Automated cub repo deploy-from-hub Git repointing is Kustomize only (Cloud Hub Helm OCI uses cub helm rendered Units).

For application-level structured YAML and K8s 1.36+ immutable OCI Image Volumes (cub bundle), see Story 30, Story 31, Story 32, and the 6-slide Agentic Ops visual story → Want copy-ready repo files (.claude/settings.json + AGENTS.md + MCP pairing)? See the Flux, Argo CD & Sveltos AI starter packs →

Map what this GitOps repository deploys with /confighub:inventory, then check what changed in values-prod.yaml (or propose a Kustomize overlay change for approval).
╭─ ConfigHub · Argo CD signed OCI bundle & PR audit ─────────────╮
│ ├── Git → Hub   ✓ uploaded + reason  replicas: 2 → 4           │
│ ├── Approval    ⏳ waiting for you   prod stays at 2           │
│ │               └── your gate: cub variant approve BASE/ORDER  │
│ └── Argo CD     ✓ cluster sync       pulls approved OCI bundle │
╰────────────────────────────────────────────────────────────────╯

Self-hosted Helm + OIDC (zero outbound data): Install charts/confighub-hub with your OIDC issuer (Okta, Entra ID, Dex, Keycloak, or GitHub OIDC), then approve production changes via cub inbox approve BASE/ORDER (or cub variant approve + cub release publish on a Cloud Hub; every approval binds to an exact revision hash). Self-hosted Helm chart guide → · Hub security review → · Cloud Hub overview →

Step-by-step terminal commands (stay on-site)
helm upgrade --install confighub ./charts/confighub-hub -n confighub --create-namespace -f values-oidc.yaml
cub auth login --server https://confighub.internal.example.com
cub repo record-pr --space platform-audit --repo ORG/REPO --pr 412 --base main --head HEAD --from-github
# Approve a pending production ChangeOrder on the Cloud Hub (publishes signed OCI bundle for Argo CD / Flux):
cub variant approve APP-base --change-order APP-base/ORDER --note "Approved under OIDC/SSO"
cub release publish APP-live --revision ChangeOrder:APP-base/ORDER

Platform team workflow: CLI vs. Web UI

Query live resources, inspect field lineage, guard sensitive settings, and approve or publish ChangeOrders from Terminal:

cub resource list --where "Labels.cluster = 'prod-eu'"
cub unit blame app --space APP-live
cub unit set-guard app --space APP-live --guard ":app:spec.template.spec.containers.*.image=Compliance=Locked"
cub variant approve APP-base --change-order APP-base/ORDER --note "Approved under OIDC/SSO"
cub release publish APP-live --revision ChangeOrder:APP-base/ORDER

Note: Local Hub via confighub/cub-server already ships the Web UI and Postgres on 127.0.0.1; Cloud Hub (hosted on confighub.com or self-hosted via charts/confighub-hub) adds team OIDC/SSO, RBAC, and multi-host fleet reach.