Work with coding agents using durable config that remembers every setting and why it changed. Each lesson takes 2–5 minutes, and you can stop after Lesson 2 or Lesson 4 with local config history in place.
Stop juggling mystery .env files and dashboards; every setting keeps its value and why across chats.
Change things without breaking
Test ideas in isolated previews, keep earlier edits intact, and approve production on your terms.
Deploy to any service
Ship cleanly to Vercel, Fly, Heroku, Unikraft, or Kubernetes, and migrate across services keeping your config.
Always easy to go back
Roll back a setting, undo only config edits via your plugin binary (mini undo), or export plain files and leave anytime.
Setup · Quick plugin install
~10 seconds
Before you start10 seconds · macOS & Linux · runs only on your laptop, no servers or account
Install the MIT plugin repo (free local binary)
Start with just the plugin (Security review). Runs offline on your machine with no account, no background servers, and no Docker.
claude plugin marketplace add confighubai/confighub-mini-plugin && claude plugin install confighub@confighub
On first use in a folder, reads the last 30 days of local Claude Code transcripts so you can ask why last week’s edit happened (opt out: CUB_MINI_EARLIER_SESSIONS=0). Add --scope project to install for one repo only.
Clones release branch v0 (bin/confighub checks bin/SHA256SUMS for archive integrity before unpacking; compare against GitHub Releases for release provenance). Run /hooks once in Codex to approve ConfigHub hooks (Codex setup).
Part 1 · Your laptop, zero servers
~4 minutes · plugin only
Lesson 12 minutes
No more fiddly env variables: give every chat a memory
The moment
Fiddly .env files and config tweaks are the easiest thing to lose track of. Yesterday’s chat turned on a setting for a weekend sale and left it uncommitted. Today you open a fresh chat, and instead of hunting through .env files or guessing why the flag is on, your agent picks up right where you left off.
Try this
Open Claude Code (or Codex) in any folder and ask:
Create app-config.json with {"cache": false}, then turn cache to true for Saturday’s sale and leave it uncommitted.
Close that chat, open a brand-new chat in the same folder, and ask:
Why is the cache on?
You can also type /confighub:why cache in Claude Code, or run ~/.codex/confighub/bin/confighub mini changes in Codex.
Illustrative output
ConfigHub · Why cache changed (offline, no hub needed)Recorded locally
File & key
app-config.json · cache (true in file now)
Change
false -> true (session sess-1)
Recorded ask
"Create app-config.json with {"cache": false}, then turn cache to true for Saturday’s sale and leave it uncommitted."
What you just learned: Your settings now have a memory that outlives any single chat. Git tracks committed code; ConfigHub quietly records each setting change and the reason behind it locally (~/.confighub/agent-changes, 30-day local retention; durable in PostgreSQL once connected to a hub), even for uncommitted edits or .env files Git ignores. (Pattern-based secret redaction skips named secrets and credentials; avoid pasting unnamed secrets, see Security review.)
Lesson 22 minutes
Agents make changes without breaking things (and you can always go back)
The moment
You want your coding agent to make changes fast, without breaking your app, silently overwriting an earlier tweak, pushing straight to production, or making it hard to go back if you don’t like the result.
Try this
Keep earlier edits intact: In that fresh chat, ask your agent to turn cache back to false. In Claude Code, ConfigHub surfaces the earlier value and your Saturday sale reason before overwriting it. (In the separate 190-run-per-arm silent-undo evaluation, ConfigHub recorded 0/190 silent undos vs 144/190 without the plugin; see evidence & method.)
Approve production on your terms: The plugin alone refuses direct production secret/env commands (fly secrets set, heroku config:set, vercel env add ... production, unikraft instances run -e) once so the agent pauses and asks you (plain fly deploy / vercel --prod are not blocked by hooks); adding a hub in Part 2 enforces a hard server-side approval gate where the agent proposes and you approve (cub mini approve BASE/ORDER) and deliver (cub mini deliver) in your terminal.
Lock sensitive keys: Freeze any key you want untouched until you say otherwise (resolves your Claude or Codex plugin binary):
BIN="$HOME/.claude/plugins/marketplaces/confighub/plugins/confighub/bin/confighub"
[ -x "$BIN" ] || BIN="$HOME/.codex/confighub/bin/confighub"
"$BIN" mini lock STRIPE_MODE --reason "Keep test mode"
Inspect active locks and recent reasons anytime with "$BIN" mini card; unlock later with "$BIN" mini lock --unlock STRIPE_MODE.
Undo only config edits cleanly: Preview reverting agent config changes while leaving your source code untouched:
What you just learned: Guardrails come from hooks rather than prompt instructions. Every chat builds on your earlier decisions, production writes wait for your yes, sensitive keys stay locked, and config reverts stay clean.
Checkpoint 1: Local plugin memory and guardrails.
With just Lessons 1 and 2, every chat remembers why, earlier edits stay intact, direct production writes wait for you, and config-only undo is one command away, with zero ConfigHub network calls and zero servers. Stop here if you like, or continue to Part 2 for live previews and a dedicated staging-and-production workflow.
Part 2 · Durable config & safe environments
~6 minutes · local hub
Lesson 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 tracked app files unchanged, leaving staging and production untouched, and finding that exact preview again tomorrow in a new chat.
Try this
Inside an app folder (like a tiny greeter app), type:
/confighub:staging
On first use, this installs the lightweight local hub (cub mini) on your laptop (sets autoAllowBashIfSandboxed: true in .claude/settings.local.json unless CUB_MINI_MODE=team; zero account or Docker). On Codex CLI, run ~/.codex/confighub/bin/confighub mini get, export the printed cub PATH, then run cub mini adopt . --name greeter.
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 mini preview --staging.)
Lesson 43 minutes
Let agents ship to staging while you approve production
The moment
You want your coding agent to iterate freely in staging, while production rolls out cleanly on your schedule and your approval.
Try this
Ask your agent to promote the warmer greeting to staging; it updates immediately.
Now ask your agent to promote that change to production. Instead of writing straight to production, ConfigHub queues it cleanly at Waiting.
Review the exact diff and reason, then approve it yourself using the order ID printed by waiting --card:
cub mini waiting --card
cub mini approve BASE/ORDER --note "Approved for production"
Card status
What it means
What you do
Waiting
Ready for your yes (prod approval, sandbox promotion, upgrade)
Review & approve (cub mini waiting --card)
Drifted
Live host (Vercel, Fly, Unikraft) differs from approved settings
Inspect 1:1 check (cub mini deliver --compare --card)
Recorded
Saved to memory or matching your live host
Nothing, you’re good
What you just learned: Staging iteration stays fast while production remains gated. Your agent moves quickly 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 right on your laptop. Continue to Part 3 when you connect live cloud hosts, sandboxes, or multiple apps.
Part 3 · Deploy anywhere & move services
~9 minutes · beyond your laptop
Lesson 53 minutes
Deploy apps to any service easily (and stay in sync)
The moment
Deploying an app shouldn’t mean clicking through fiddly env-variable screens on every cloud dashboard. Whether your app runs on Vercel, Fly.io, Heroku, Unikraft, or Kubernetes, you want to deploy cleanly with your approved settings, and know immediately if anything live ever drifts.
Try this
Connect your app’s host target: run /confighub:staging in Claude Code (or cub mini adopt . --name APP in your terminal), then follow your platform’s guide (Vercel · Fly · Heroku · Unikraft).
Compare approved config against what is actually running live:
cub mini deliver --compare --card
What you just learned: ConfigHub works beside Git and your hosting platform, never replacing them. And because your approved settings live in durable config rather than only inside one vendor’s dashboard, you stay in sync today and stay free to move hosts tomorrow.
Lesson 63 minutes
Keep your best settings when sandboxes vanish
The moment
You run coding agents inside disposable cloud sandboxes (like Daytona) so they can experiment freely. When the agent finds the winning setting and the sandbox is deleted, you want that setting, and the reason it worked, waiting for you back home.
Try this
Run a preview inside a Daytona sandbox with staging’s settings (replace SANDBOX with your sandbox name; no production credentials or ConfigHub key inside the sandbox):
cub mini preview --staging --daytona SANDBOX
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 are meant to come and go. Your durable config, and the story of why each setting works, outlives them all.
Lesson 73 minutes
Migrate across services keeping your config
The moment
You’re ready to move an app to a new host (say, Heroku to Fly.io or Vercel), or launch a second service that shares your proven baseline settings, without hand-copying 30 env vars or losing the history behind them.
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 to Fly or Vercel).
Launch your next app, or let a colleague fork yours:
/confighub:start-from EXISTING_APP
Your new app (or a colleague’s fork of your app) inherits shared defaults and reasons while keeping its own overrides, so when you ship updates later, they get your improvements without losing their changes. On Codex CLI, run cub mini adopt . --name NEW_APP --pattern EXISTING_APP (Starters · Colleague fork walkthrough).
What you just learned: Configuration lives in durable config instead of a single host dashboard, so migrating across services or spinning up your next app is fast, clean, and repeatable.
Part 4 · Teams, upgrades & growing up
5 minutes · when you’re ready
Lesson 85 minutes
Upgrade cleanly and grow into a team
The moment
An upstream starter or Helm chart ships a new release (and you want the upgrade while keeping all your overrides), or teammates, pull requests, and CI agents join the project.
Five ways to share or grow: zero account needed until you want a team hub
Share what worked offline (zero account): paste a secret-redacted diff card into Slack or a PR (using your plugin binary mini changes --export-md diff.md), export a credential-free 1-file YAML starter (mini starter-export . --out starter.yaml), or open a 1-file .claude/settings.json PR with an Approval Card (Sharing workflows).
Map any unfamiliar GitOps repo (read-only): run /confighub:inventory in Claude Code, or ~/.codex/confighub/bin/confighub mini inventory in Codex, before anyone edits a file (Inventory).
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.
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.
Graduate from laptop to team (opt-in): run /confighub:to-hub in Claude Code, or cub mini copy APP --to-context shared in Codex/Terminal, to copy your current local settings and written reasons into a shared hub (self-hosted Helm + OIDC/SSO or commercial confighub.com; earlier laptop-only revisions stay on the laptop) so team governance shares one source of truth across your fleet (cub mini vs. cub).
Same durable config
1 app today (plugin + local hub)
Team fleet (shared hub + cub)
Operational truth
No 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 & reuse
Start a second 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 guardrails
Agents update staging, production waits for your yes, keys lock, easy undo.
Named human approvers, per-agent keys, instant revocation, signed audit trail, OIDC/SSO.
Sandboxes to hand
Local port previews, Friday replays, disposable Daytona sandboxes.
Unattended CI agents running for weeks, plus OCI delivery to Argo CD / Flux.
What you just learned: The same local plugin scales from one developer’s laptop to a team and Kubernetes fleet without changing workflows.
Reversible and exportable at any point.
Made a change you don’t like? Run mini undo via your plugin binary (or cub mini undo once the local hub is installed) to revert only config edits while keeping your code, or roll back to any earlier approved setting. Want to stop using ConfigHub completely? Export your settings as plain files, run cub mini uninstall --delete-data, and delete local plugin records with rm -rf ~/.confighub/agent-changes. Your repo, Git history, and hosting platform keep working as normal (Going back guide).
Cheat sheetEverything you unlocked on one card
Commands at a glance
Plugin-only commands (mini lock, mini undo, mini changes, mini starter-export) run from ~/.claude/plugins/marketplaces/confighub/plugins/confighub/bin/confighub (Claude Code) or ~/.codex/confighub/bin/confighub (Codex CLI). To download and start the local hub from terminal or Codex, run "$BIN" mini get (or type /confighub:staging in Claude Code); hub commands then run via cub mini.
What you want to do
Command
See why a setting changed
/confighub:why SETTING
Summarize all agent config edits in this folder
/confighub:changes
Lock a sensitive key against agent edits (plugin binary)
bin/confighub mini lock KEY --reason "..."
Export a redacted diff card for Slack or a PR (plugin binary)
bin/confighub mini changes --export-md diff.md
Export non-secret defaults & reasons as a 1-file YAML starter (plugin binary)
bin/confighub mini starter-export . --out starter.yaml
Undo only config edits (leave code untouched; plugin binary)