ConfigHub for Claude Code & Codex
Ship faster with coding agents, with durable config that remembers every setting and why it changed. Spin up isolated previews, approve production rollouts on your terms, and carry your config across chats, sandboxes, hosts, and service migrations.
Free, open-source (MIT license) plugin for Claude Code & Codex that works offline in 10 seconds with zero background servers to start and zero accounts (Security review):
- Remember why every setting changed: Records the exact change, reason, and prompt across sessions (
.env, JSON/YAML, Kubernetes, Helm, Terraform) with pattern-based secret redaction (30-day local retention in~/.confighub/agent-changes; durable in PostgreSQL once connected to a hub), so the next chat builds on your work instead of undoing it. - 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 (plainfly deploy/vercel --prodare not blocked by hooks); adding a hub (/confighub:staging) 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 (Limits). Also supports key locks (cub mini lock) and config-only undo (cub mini undo). - Preview, ship, and migrate cleanly (
/confighub:staging): Adds a free local hub on127.0.0.1(server + PostgreSQL, ~300 MB disk / ~70 MB RAM; configures Claude Code’s sandbox in.claude/settings.local.json) to keep isolated previews and staging separate from human-approved production, deliver 1:1 toFly,Vercel,Heroku,Unikraft, orArgo CD/Flux(read-only inventory covers Helm & Kustomize; governed OCI delivery is Kustomize only), and migrate across services keeping your config.
Install in 10 seconds · Learn step by step · Try in 5 minutes · Security review · PR review Action · Product overview
Install
Install once (macOS & Linux only; Windows not yet supported), works offline right away with zero background servers. A lightweight local hub (cub mini, ~300 MB disk) installs only if you later type /confighub:staging for previews or staging/production approvals.
claude plugin marketplace add confighubai/confighub-mini-plugin && claude plugin install confighub@confighubBefore you install (transparency):
- 30-day transcript backfill: On first use in a folder, the plugin reads the last 30 days of local Claude Code session transcripts (storing prompts and up to 1,500 chars of replies locally) so your very first chat can explain why last week’s setting changed. Set
CUB_MINI_EARLIER_SESSIONS=0before first opening a folder to opt out (Security review).- Project-scoped install & marketplace check: The command above installs user-wide; add
--scope projectto limit to one repo. If you already installedconfighub-skills, checkclaude plugin marketplace listfirst (migration note).- Free & open source: Free, open-source (MIT) plugin and local hub, stays free and offline (SHA-256 checksums).
Using Codex CLI, standalone local hub, or already a team?
- Codex CLI: run
curl -sSfL https://raw.githubusercontent.com/confighubai/confighub-mini-plugin/main/install-codex.sh | bash, then/hooksin Codex to approve ConfigHub hooks (Codex setup). - Standalone local hub (no coding agent): install
confighub minion its own (SHA-256 checksums included). - Already a team or regulated org? Start directly on a shared hub (
confighub.comor self-hosted Helm + OIDC/SSO) so full audit history lives in one place from day 1.
Try one setting (5 minutes, stay inside Claude)
Open
claudein any folder (usesapp-config.jsonso strict.envpermission rules never block you) and ask:Create app-config.json with {"cache": false}, then turn cache to true for Saturday’s sale and leave it uncommitted.Open a fresh
claudechat in the same folder and askWhy is the cache on?(or type/confighub:why cache):╭─ 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) │ ╰───────────────────────────────────────────────────────────────────────╯
(Full five-minute guide · Three guided exercises on the web)
How ConfigHub fits beside Git & your host
Git tracks committed code. Claude or Codex edits files and runs commands. When you add a hub (/confighub:staging), ConfigHub holds the durable settings above ephemeral chats, sandboxes, and deploys, with a 1:1 mapping to your live host and an approval gate your agent cannot bypass:
Git (your code) ConfigHub (settings + reasons + 1:1 live mapping)
───────────────────── ────────────────────────────────────────────────────────
server.js shared defaults ─┬─▶ preview (temp local test copy)
package.json ├─▶ staging (agent edits freely)
└─▶ production ⏳ waits for YOUR yes
└── 1:1 target: Fly / Vercel / K8sMeasured vs. Git +
CLAUDE.md(440 agent sessions, 10+ hostile inputs each):
- Structural enforcement Git + prompts cannot provide:
13/13vs0/13spoofed multi-agent delegations refused,11/11vs1/11unforgeable per-agent attribution,10/10vs0/10tampered turn traces flagged,9/10vs1/10staging keys blocked from prod, and10/10vs5/10shared queryable triggers.- Honest parity when teams maintain strict rules: Plain tools tied on
12items (20/20) when handwrittenCLAUDE.md/READMErules and tool-by-tool allowlists were present and read.- Real-world default guardrails: When handwritten rules were missing, unread, or overly broad, plain setups dropped to
0/20(production held),0/20(reasons recorded),0/20(risky MCP calls gated), and1/20(avoided duplicate actions) vs20/20with ConfigHub (0of190silent undos vs144of190without the plugin). (Full tables & limits →)
How to read every ConfigHub card
| State | Meaning | Action |
|---|---|---|
⏳ waiting | Paused safely for your decision (prod approval, sandbox promotion, starter v2, upgrade) | Review & approve (cub mini waiting --card) |
↻ syncing / ⚠ drifted | Live host delivery state or 1:1 mismatch against your approved config | Inspect 1:1 live check (cub mini deliver --compare --card) |
✓ recorded | Saved to cross-session memory (~/.confighub or hub) | No action needed |
Sandboxes & real hosts
ConfigHub pairs with ephemeral runtimes and real hosts, keeping what survives after a chat closes, a sandbox is deleted, or a container redeploys:
| Pattern | What is isolated | What ConfigHub makes durable | Guide |
|---|---|---|---|
| Local settings preview | App settings + local port (not your external DB) | Preview settings + reason survive across fresh chats | Local preview |
| Daytona cloud sandbox | Disposable cloud container/VM | Winning setting + reason survive after the sandbox is deleted | Daytona |
| Unikraft microVM | Same immutable image in staging & prod | 1:1 gated config rollover when you approve | Unikraft |
| Vercel / Fly / Heroku | Staging vs. live production host | Agent updates staging; production waits (⏳) for your approval | Vercel · Fly · Heroku |
Add only what you need
| Moment | What you use | Guide |
|---|---|---|
| Waiting & drift cards | Review gated changes (cub mini waiting --card) and 1:1 live host drift (cub mini deliver --compare --card) | Decision inbox & approvals |
| Personal field locks & config-only undo | Freeze sensitive keys before edits (confighub mini lock) or revert config edits cleanly (confighub mini undo) | cub mini & plugin commands |
| Safe sandbox boot & teardown capture | Block live keys in --mode test, pull staging defaults at boot, resolve .confighub/connections.yaml (env://, 1password://, vault://), and capture diffs on exit or SIGTERM (env exec / env shell --capture-on-exit, nono, google-ax) | nono + Daytona sandbox guide |
| Shareable redacted diffs & agent bootstrap | Export secret-redacted HTML/Markdown reports (cub mini changes --export-html); --upload-diff and zero-install confighub.com/auth.md (agent-auth) are Provisional (preview hosted endpoint not yet live on confighub.com) | From plugin to shared hub |
Teams & Kubernetes fleet governance (cub) | Query across clusters (cub resource list --where ...), trace field lineage (cub unit blame), and attach field guards (cub unit set-guard) | cub mini and plain cub |
| Inspect an unfamiliar GitOps repo (read-only, no install needed) | /confighub:inventory | Inventory |
| Review agent PRs on GitHub | PR review Action | Git & GitHub |
| Staging + gated production (1:1 live host delivery) | /confighub:staging | Vercel · Fly · Heroku · Unikraft |
| Team, CI, or self-hosted Helm + OIDC/SSO audit hub | Shared hub (confighub.com or Helm) | Self-hosted Helm · PR audit hub |
ConfigHub never replaces Git, your host, or Argo CD / Flux, they still run and deliver your app. (Why not just Git? · All 11 steps)
Commands in Claude Code
/confighub:why LOG_LEVEL ASCII trace of every change to one setting and what was asked
/confighub:changes ASCII summary of what agents changed in this folder and why
/confighub:staging connect this folder for staging + approval-gated production
/confighub:inventory read-only map of what this GitOps repository deploys
/confighub:permissions what your agents may run
/confighub:checks how closely MCP tool calls are watched
/confighub:to-hub copy recorded history into a hub
/confighub:start-from APP start a new app inheriting shared defaults from an existing appcub is ConfigHub’s CLI for any hub (hosted or self-hosted); cub mini is its local-hub helper subcommand (cub mini and plain cub).
Licensing, security & downloads
- Open source (MIT): Plugin, hooks, YAML starters (LICENSE), Web UI, Go SDK, JS SDK.
- Local hub (
cub mini): Free, open-source (MIT) local hub (no account or Docker; SHA-256 download). Remove anytime withcub mini uninstall --delete-dataandrm -rf ~/.confighub/agent-changes. - Shared / Enterprise hub: Hosted on confighub.com or self-hosted via Helm + OIDC.
- Security & limits: Security (plugin) · Security (hub) · Limits · Report security issues privately to
security@confighub.com· Docs index · Walkthroughs · Kubernetes Workshop