ConfigHub · Durable config for coding agents

Learn ConfigHub, step by step.

Ship faster with coding agents—with durable config from Zero to Cloud. Start offline with zero servers, add an optional Local Hub when you want previews, and scale seamlessly to Cloud Hub.

Deploy your appShip cleanly to Vercel, Fly, Heroku, Unikraft, or Kubernetes—and migrate across hosts keeping your approved config.
Check & fix your envCatch drift and mystery .env changes across chats; every setting keeps its value and why, with clean cub agent undo.
Get & share the right envPreview safely, approve production on your terms, and share working staging envs in memory without .env files in Slack.
Copy & adapt working setupsReuse proven starters and linked defaults across projects while keeping each app’s own overrides.
Before you start10 seconds · macOS & Linux · MIT-licensed AI plugin v0.99.48 (~4.8 MB) · Zero Hub offline to Cloud Hub

Install the free, open-source plugin

Start offline with zero servers and no account (Security review →). Add an optional Local Hub or scale straight to Cloud Hub whenever you need one.

claude plugin marketplace add confighubai/confighub-mini-plugin && claude plugin install confighub@confighub

On first use in a folder, checks the last 30 days of local Claude Code transcripts so you can ask why last week’s edit happened (set CUB_MINI_EARLIER_SESSIONS=lazy for on-demand only, =0 to opt out, or CUB_MINI_MODE=team to disable backfill and enforce strict prod holds every time). Add --scope project for one repo only.

Part 1 · Zero Hub (offline, zero servers)

~4 minutes · Zero Hub
Step 12 minutes

No more fiddly env variables — give every chat a memory

The moment

Yesterday’s chat flipped a setting for a sale and left it uncommitted. Today’s fresh chat picks up right where you left off—no hunting through .env files.

Try this
  1. In Claude Code, Codex, or Antigravity, ask:
    Create app-config.json with {"cache": false}, then turn cache to true for Saturday’s sale and leave it uncommitted.
  2. Open a brand-new chat in the same folder and ask:
    Why is the cache on?

    Or inspect directly via /confighub:why cache or cub agent why cache.

What you’ll see
╭─ ConfigHub · Why cache changed ───────────────────────────────────────╮
│ └── app-config.json · cache (true in the file now)                    │
│     ├── false → true  session sess-1                                  │
│     └── asked: "Create app-config.json ... for Saturday’s sale..."    │
├───────────────────────────────────────────────────────────────────────┤
│ recorded locally in ~/.confighub (offline, no hub needed)             │
╰───────────────────────────────────────────────────────────────────────╯
What you just learned: Every setting keeps its value and why in ~/.confighub/agent-changes (30-day local retention; durable in PostgreSQL with a hub), even for uncommitted or .gitignored .env files—with automatic named-secret redaction (Security review).
Step 22 minutes

Agents make changes without breaking things (and you can always go back)

The moment

Let agents move fast without silently overwriting earlier tweaks, pushing straight to production, or making rollbacks painful.

Try this
  1. Keep earlier edits intact: Ask your fresh chat to set cache back to false. ConfigHub surfaces the Saturday sale reason before overwriting (10/10 uncommitted .env recovery; 0/190 silent undos vs. 144/190 without—method).
  2. Gate production writes: Zero Hub pauses direct prod secret/env writes (fly secrets set, heroku config:set, vercel env add ... production) so the agent asks first. Adding a Local or Cloud Hub enforces server-side approval (cub inbox approve + cub repo deliver).
  3. Lock sensitive keys: Freeze any key until you unlock it (inspect via cub agent card):
    cub agent lock STRIPE_MODE --reason "Keep test mode"
  4. Undo config edits alone: Revert agent config changes without touching source code:
    cub agent undo --dry-run
What you just learned: Every chat respects earlier decisions, production writes wait for your yes, sensitive keys stay locked, and config reverts stay clean.
Checkpoint 1 — You already have daily superpowers.

With Steps 1–2, every chat remembers why, earlier edits stay intact, direct production writes wait for you, and config-only undo is one command away—100% offline with zero servers. Stop here, continue to Part 2 for an optional Local Hub, or jump straight to Cloud Hub in Part 4.

Part 2 · Optional Local Hub (durable config & safe environments)

~6 minutes · Local Hub
Step 33 minutes

Preview ideas live without touching your files

The moment

You want to see a setting change running live in your app right now—keeping your repo spotless, leaving staging and production untouched, and finding that exact preview again tomorrow in a new chat.

Try this
  1. Inside an app folder (like a tiny greeter app), type:
    /confighub:staging

    On first use, this starts an optional Local Hub (cub local start via confighub/cub-server — Apple Silicon Mac, ~125 MB, loopback 127.0.0.1, no Docker or account; Linux and Intel Macs use Cloud Hub or K8s/kind).

  2. Ask your agent:
    Try a warmer greeting in preview.
What you’ll see
╭─ ConfigHub · greeter ─────────────────────────────────────────────────╮
│ ├── preview     ● http://127.0.0.1:49210  GREETING="Welcome!"         │
│ ├── staging     ✓ ready (agent updates)   GREETING="Hello, world!"    │
│ └── production  ✓ in sync (protected)     GREETING="Hello, world!"    │
├───────────────────────────────────────────────────────────────────────┤
│ repo files untouched · tomorrow’s chat still finds the preview URL    │
╰───────────────────────────────────────────────────────────────────────╯
What you just learned: This is durable config. Your settings now live above individual chats, files on disk, and any single host. Your preview runs on its own local port, tomorrow’s chat still knows where it is and why, and—as you’ll see in Part 3—that same durable config is what lets your settings survive disposable sandboxes and move cleanly when you switch services. (You can also run a preview yourself anytime with cub env preview --staging.)
Step 43 minutes

Let agents ship to staging while you approve production

The moment

You want your coding agent to iterate at full speed in staging, while production rolls out cleanly on your schedule and your approval.

Try this
  1. Ask your agent to promote the warmer greeting to staging—it updates immediately.
  2. Now ask your agent to promote that change to production. Instead of writing straight to production, ConfigHub queues it cleanly at ⏳ waiting.
  3. Review the exact diff and reason, then approve it yourself:
    cub inbox list --card
Card badgeWhat it meansWhat you do
⏳ waitingReady for your yes (prod approval, sandbox promotion, upgrade)Review & approve (cub inbox list --card → cub inbox approve BASE/ORDER)
↻ syncing / ⚠ driftedDelivering to your host, or live host differs from approved configInspect 1:1 check (cub repo deliver --compare --card)
✓ recorded / ✓ in syncSaved to memory or matching your live hostNothing—you’re good
What you just learned: Speed and safety go together. Your agent moves fast in preview and staging, and production rolls out with a clear, human-approved diff every time.
Checkpoint 2 — A complete local workflow for solo builders.

You now have cross-session memory, isolated local previews, fast staging iteration, and human-approved production rollouts, ready to scale to Cloud Hub anytime. Continue to Part 3 when you connect live cloud hosts, sandboxes, or multiple apps.

Part 3 · Deploy anywhere & move services

~9 minutes · hosts & sandboxes
Step 53 minutes

Deploy apps to any service easily (and stay in sync)

Ship approved settings to Vercel, Fly.io, Heroku, Unikraft, or Kubernetes—and catch live host drift immediately without clicking through vendor dashboards.

Show Step 5 commands & host guides
Try this
  1. Connect your app’s host target: run /confighub:staging in Claude Code (or cub repo adopt . --name APP in your terminal), then follow your platform’s guide (Vercel · Fly · Heroku · Unikraft).
  2. Compare approved config against what is actually running live:
    cub repo deliver --compare --card
What you just learned: ConfigHub works beside Git and your hosting platform—your approved settings live in durable config rather than only inside one vendor’s dashboard.
Step 63 minutes

Keep your best settings when sandboxes vanish

Run coding agents inside disposable cloud sandboxes (like Daytona) and bring the winning setting—and why it worked—home before tearing the sandbox down.

Show Step 6 sandbox preview steps
Try this
  1. Run a preview inside a Daytona sandbox with staging’s settings (no production credentials or ConfigHub key inside the sandbox):
    cub env preview --staging --daytona SANDBOX
  2. Tear down the sandbox—then inspect your settings back in ConfigHub. The winning value and the reason it worked are still there, ready for your review (Daytona guide · CI & sandboxes).
What you just learned: Ephemeral chats and disposable sandboxes come and go; durable config—and the story of why each setting works—outlives them all.
Step 73 minutes

Migrate across services keeping your config

Move an app from Heroku to Fly.io or Vercel—or copy a proven baseline to a second service—keeping every environment, override, and reason intact.

Show Step 7 migration & copy steps
Try this
  • Move an existing app to a new host: Connect your new host target and deliver your approved durable config 1:1—keeping every environment (staging / production), value, and reason intact (Heroku → Fly/Vercel).
  • Copy & adapt a working setup for your next app:
    cub local copy EXISTING_APP NEW_APP

    Or apply a reusable 1-file starter with cub repo starter. Your new app (or a colleague’s fork) inherits shared defaults and reasons while keeping its own overrides (Starters · Colleague fork walkthrough).

What you just learned: Your configuration belongs to your app, not one platform’s dashboard. Migrating hosts or spinning up your next app stays fast, clean, and repeatable.

Part 4 · Cloud Hub, upgrades & growing up

5 minutes · when you’re ready
Step 85 minutes

Upgrade cleanly and grow into a team

Take upstream starter or Helm chart upgrades while keeping your overrides—or graduate straight from Zero Hub or Local Hub into a team Cloud Hub.

Show 5 ways to share & grow + Zero-to-Cloud comparison
Five ways to share or grow — Zero Hub until you want Cloud Hub
  1. Share what worked offline (Zero Hub): paste a secret-redacted diff card into Slack or a PR (cub agent changes --export-md diff.md), export a credential-free 1-file MIT starter (cub repo starter-export), or open a 1-file .claude/settings.json PR with an Approval Card (Sharing workflows →).
  2. Map any unfamiliar GitOps repo (read-only): run /confighub:inventory (or cub repo inventory) before anyone edits a file (Inventory).
  3. Show recorded reasons on every GitHub PR: add the GitHub PR review Action so teammates see every changed setting and why—even without a hub.
  4. Take upstream updates while keeping your overrides: when a starter or Helm chart updates, ConfigHub previews incoming changes while preserving your custom values and reasons.
  5. Graduate to Cloud Hub (opt-in): run /confighub:to-hub (or cub local to-hub) to copy local history into a Cloud Hub (self-hosted Helm + OIDC/SSO or confighub.com) so the exact same durable config becomes shared operational truth across your team and fleet (CLI command reference).
Same durable config1 app today (Zero Hub + Local Hub)1,000 apps tomorrow (Cloud Hub + cub)
Operational truthNo fiddly .env files—settings & reasons survive chats, sandboxes, and host switches.Query across every app, cloud, and cluster (cub resource list --where ..., cub unit blame).
Creation & reuseCopy a working app or let a colleague fork yours keeping their overrides.Golden bases across a fleet: push one fix to 50 services while each app’s overrides stay intact.
Built-in guardrailsAgents update staging, production waits for your yes, keys lock, easy cub agent undo.Named human approvers, per-agent keys, instant revocation, signed audit trail, OIDC/SSO.
Sandboxes to handLocal port previews, Friday replays, disposable Daytona sandboxes.Unattended CI agents running for weeks, plus OCI delivery to Argo CD / Flux.
What you just learned: You never have to start over. The same 10-second plugin grows smoothly from Zero Hub to optional Local Hub to Cloud Hub and a Kubernetes fleet.
Always easy to go back — zero lock-in.
  • Undo config edits alone: Run cub agent undo to revert only config changes while keeping your source code, or roll back to any approved revision.
  • Export plain files anytime: Run cub repo back-to-git to write everything back to plain files in your repo.
  • Uninstall cleanly: Run cub local uninstall --delete-data and rm -rf ~/.confighub/agent-changes—Git and your host keep working as normal (Going back guide →).
Cheat sheetEverything you unlocked on one card (7 nouns · 6 slash commands)

Commands at a glance

Commands at a glance (15 commands)
What you want to doCommand
See everything ConfigHub can do in this repo/confighub:help (or cub agent card --guide)
See why a setting changed/confighub:why SETTING (or cub agent why SETTING)
Summarize all agent config edits in this folder/confighub:changes (or cub agent changes)
Lock a sensitive key against agent editscub agent lock KEY --reason "..."
Export a redacted diff card for Slack or a PR (Zero Hub)cub agent changes --export-md diff.md
Export non-secret defaults & reasons as a 1-file MIT startercub repo starter-export --out starter.yaml
Build & validate an immutable OCI Config Bundle (K8s 1.36+)cub bundle build config --out dist/app.oci (Story 31)
Undo only config edits (leave code untouched)cub agent undo --dry-run (or cub agent undo)
Add previews, staging, and gated production (Local Hub)/confighub:staging (or cub local start)
Review & approve changes waiting for youcub inbox list --card → cub inbox approve BASE/ORDER
Check live host vs. approved config (1:1 drift)cub repo deliver --compare --card
Copy & adapt a working setup for a new appcub local copy APP NEW_APP (or cub repo starter)
Map an unfamiliar GitOps repo (read-only)/confighub:inventory (or cub repo inventory)
Copy local history into a Cloud Hub/confighub:to-hub (or cub local to-hub)
Remove everything cleanlycub local uninstall --delete-data (Going back)

Next: Three 5-minute exercises · Starters & GitOps AI packs (Flux · Argo CD · Sveltos) · Guides by stack · Words (Glossary) · All docs