If your app runs on Heroku, ConfigHub gives you what a Heroku pipeline gives you, with your coding agent doing the work: a staging copy of the app's config vars that your agent changes at once, and a production copy that changes only when you approve. Approving puts the change live on your Heroku app.
Moving off Heroku to Fly or Vercel right now? Jump straight to the zero-hub read-only compare. To try staging + approval locally with a stand-in and no account, follow the Heroku walkthrough.
You need Claude Code or Codex CLI with the ConfigHub plugin, heroku login, and a folder with a Heroku Git remote (heroku git:remote -a APP).
Connect: Run /confighub:staging in Claude Code (or /confighub:staging --heroku APP if there is no Git remote).
127.0.0.1; remove anytime with cub local uninstall --delete-data).Raise WEB_CONCURRENCY to 8 in production. Checkout times out under load. Staging updates at once; production waits.cub inbox approve APP (full path printed by step 1). Confirm once that approved settings go to Heroku; ConfigHub sets the changed vars (Heroku restarts the app on change).Run cub repo deliver APP --staging once in your terminal and answer y. After that, every staging change your agent makes goes to the pipeline's staging app automatically:
DATABASE_URL, REDIS_URL, etc.) stay on Heroku.HEROKU_* vars stay untouched.Step 1 reports how many settings it left on Heroku.
Diff Heroku against Fly or Vercel without installing or starting a local hub, and without changing either host. Uses the confighub binary bundled with the Claude Code / Codex plugin (or cub if you already have the CLI installed):
# In Claude Code, simply ask:
# "Compare my Heroku app HEROKU_APP with Fly app FLY_APP without changing anything."
# Or run directly in Terminal:
cub repo deliver --compare --heroku HEROKU_APP --fly FLY_APP
# or, after `vercel link` in the app's folder:
cub repo deliver --compare --heroku HEROKU_APP --vercel PROJECTWrites nothing, never prints credential values, and prints missing/differing non-secret vars plus a safe credential copy command.
Once production is live on Fly or Vercel, connect a separate staging app on the new host (e.g., FLY_STAGING_APP or Vercel Preview environment) and run /confighub:staging in that folder—or copy the same staging vars via cub repo deliver --compare --heroku HEROKU_STAGING_APP --fly FLY_STAGING_APP before retiring your Heroku pipeline.
From a connected app (APP), preview the move plan first (writes nothing):
cub repo deliver APP --fly FLYAPP --compare
# or, after `vercel link`:
cub repo deliver APP --vercel PROJECT --compareThe plan lists:
HEROKU_*).One terminal command to copy credentials directly from Heroku to the new host before cutover:
heroku config:get and passes it to fly secrets set or vercel env add --sensitive.DATABASE_URL, etc.) since the new host needs its own database.Run the same command without --compare in your terminal and confirm y:
cub repo deliver APP --compare — read-only drift check against Heroku.cub repo deliver APP — re-apply last approved settings (no-op if unchanged).cub repo deliver APP --staging --compare — read-only drift check against staging.cub repo rollback APP --reason "Why" — propose undoing the last approved change.Never run against a real Heroku or Fly account. Each release runs the full path against CLI stand-ins:
| Path | Covered against stand-ins |
|---|---|
| Pipeline connect & approval | Read-only connect, staging edit, production wait, approve, idempotent re-deliver, manual drift, rollback |
| Staging delivery | Agent refused first confirmation; auto-delivery on staging edits |
| Move to Fly / Vercel | Heroku + flyctl stand-ins with 2-Machine Fly app; read-only --compare + safe copy line |