Skip to content
ConfigHub for coding agents

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 (plain fly deploy / vercel --prod are 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 on 127.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 to Fly, Vercel, Heroku, Unikraft, or Argo 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@confighub

Before 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=0 before first opening a folder to opt out (Security review).
  • Project-scoped install & marketplace check: The command above installs user-wide; add --scope project to limit to one repo. If you already installed confighub-skills, check claude plugin marketplace list first (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 /hooks in Codex to approve ConfigHub hooks (Codex setup).
  • Standalone local hub (no coding agent): install confighub mini on its own (SHA-256 checksums included).
  • Already a team or regulated org? Start directly on a shared hub (confighub.com or self-hosted Helm + OIDC/SSO) so full audit history lives in one place from day 1.

Try one setting (5 minutes, stay inside Claude)

  1. Open claude in any folder (uses app-config.json so strict .env permission 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.
  2. Open a fresh claude chat in the same folder and ask Why 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 / K8s

Measured vs. Git + CLAUDE.md (440 agent sessions, 10+ hostile inputs each):

  • Structural enforcement Git + prompts cannot provide: 13/13 vs 0/13 spoofed multi-agent delegations refused, 11/11 vs 1/11 unforgeable per-agent attribution, 10/10 vs 0/10 tampered turn traces flagged, 9/10 vs 1/10 staging keys blocked from prod, and 10/10 vs 5/10 shared queryable triggers.
  • Honest parity when teams maintain strict rules: Plain tools tied on 12 items (20/20) when handwritten CLAUDE.md / README rules 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), and 1/20 (avoided duplicate actions) vs 20/20 with ConfigHub (0 of 190 silent undos vs 144 of 190 without the plugin). (Full tables & limits →)

How to read every ConfigHub card

StateMeaningAction
⏳ waitingPaused safely for your decision (prod approval, sandbox promotion, starter v2, upgrade)Review & approve (cub mini waiting --card)
↻ syncing / ⚠ driftedLive host delivery state or 1:1 mismatch against your approved configInspect 1:1 live check (cub mini deliver --compare --card)
✓ recordedSaved 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:

PatternWhat is isolatedWhat ConfigHub makes durableGuide
Local settings previewApp settings + local port (not your external DB)Preview settings + reason survive across fresh chatsLocal preview
Daytona cloud sandboxDisposable cloud container/VMWinning setting + reason survive after the sandbox is deletedDaytona
Unikraft microVMSame immutable image in staging & prod1:1 gated config rollover when you approveUnikraft
Vercel / Fly / HerokuStaging vs. live production hostAgent updates staging; production waits (⏳) for your approvalVercel · Fly · Heroku

Add only what you need

MomentWhat you useGuide
Waiting & drift cardsReview 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 undoFreeze sensitive keys before edits (confighub mini lock) or revert config edits cleanly (confighub mini undo)cub mini & plugin commands
Safe sandbox boot & teardown captureBlock 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 bootstrapExport 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:inventoryInventory
Review agent PRs on GitHubPR review ActionGit & GitHub
Staging + gated production (1:1 live host delivery)/confighub:stagingVercel · Fly · Heroku · Unikraft
Team, CI, or self-hosted Helm + OIDC/SSO audit hubShared 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 app

cub 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