ConfigHub · Durable config for coding agents

ConfigHub for Claude Code & Codex

Ship faster with coding agents—with durable config that remembers every setting and why it changed. Start offline with Zero Hub, add a Local Hub on your laptop when you want previews and production approvals, and graduate to a Cloud Hub (confighub.com or self-hosted Helm) when your team or fleet joins.

Free, open-source (MIT license) plugin for Claude Code & Codex that works offline in 10 seconds with zero background servers and zero accounts (Security review):

Install in 10 seconds · 60s video & 6 slides · 6 live demos · Learn step by step · Try in 5 minutes · Security review · PR review Action · Product overview

Zero Hub → Local Hub → Cloud Hub

StageWhat runsHow you startKey commands
Zero HubLocal hooks + ~5 MB plugin binary (no server, no account)claude plugin install confighub@confighubcub agent why/lock/undo, cub bundle, cub env share/join/exec, cub repo inventory/starter-export
Local HubFree local ConfigHub + PostgreSQL on 127.0.0.1 (no Docker, no account)/confighub:staging or cub local startcub env preview/try, cub repo adopt/set/upload/deliver, cub secret, cub inbox list/approve/refuse
Cloud HubShared confighub.com or self-hosted Helm + OIDC/SSO/confighub:to-hub or cub local to-hubSame 7 noun groups + fleet cub resource list, cub unit blame, cub unit set-guard, cub audit

Install

Install once (macOS & Linux only; Windows not yet supported)—works offline right away in Zero Hub mode. A lightweight Local Hub (~300 MB disk) installs only if you later type /confighub:staging or run cub local start.

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 on a Cloud Hub?
  • 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 the Local Hub on its own (SHA-256 checksums included).
  • Already a team or regulated org? Start directly on a Cloud 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 step up to a Local Hub (/confighub:staging) or Cloud Hub, 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 inbox list --card)
↻ syncing / ⚠ driftedLive host delivery state or 1:1 mismatch against your approved configInspect 1:1 live check (cub repo 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 inbox list --card) and 1:1 live host drift (cub repo deliver --compare --card)Decision inbox & approvals
Personal field locks & config-only undoFreeze sensitive keys before edits (cub agent lock) or revert config edits cleanly (cub agent undo)7-noun CLI & plain cub
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 (cub env exec / cub env shell --capture-on-exit, nono, google-ax)nono + Daytona sandbox guide
New 12-Factor & OCI Config Bundles (cub bundle)Auto-run --validate-config on every edit via .confighub-bundle.yaml, block secrets fail-closed, and pack deterministic OCI Image Volumes for K8s 1.36+ volumes[].image (even > 1 MiB)Story 30 (YAML) · Story 31 (OCI) · Story 32 (20 Grafana dashboards)
Share a working staging env in memory (cub env share / join)Pass staging config + X25519-sealed test keys or revocable Tier 3 ch_proxy_ tokens straight into memory with zero .env in Slack (works today against self-hosted agentauth-server; hosted confighub.com Provisional)Story 29
Interactive storyboards, silent videos & 6 runnable demosClick through 4 interactive storyboards, watch calm silent videos (1m 50s overview + focused clips), or run all 6 self-contained CLI demos locallyInteractive storyboards · Silent demos · Runnable scripts
Shareable redacted diffs & starter exportsExport secret-redacted HTML/Markdown PR cards (cub agent changes --export-md diff.md, --export-html) or a 1-file MIT starter (cub repo starter-export --out starter.yaml); --upload-diff and hosted confighub.com/auth.md (cub agent auth) are ProvisionalFrom laptop to Cloud 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)7-noun CLI & plain cub
Inspect an unfamiliar GitOps repo (read-only, Zero Hub)/confighub:inventory or cub repo inventoryInventory
Review agent PRs on GitHubPR review ActionGit & GitHub
Staging + gated production (Local Hub)/confighub:stagingVercel · Fly · Heroku · Unikraft
Team, CI, or self-hosted Helm + OIDC/SSO (Cloud Hub)/confighub:to-hub or cub local to-hubSelf-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)

The 7 canonical cub <noun> <verb> groups

Every workflow across Zero Hub, Local Hub, and Cloud Hub uses the same 7 noun groups:

Noun groupStageVerbs
cub envZero Hub (+ Hub preview)share, join, exec, preview, shell, try
cub bundleZero Hubinit, validate, build, inspect, podspec
cub agentZero Hub (+ Hub keys)why, changes, lock, undo, halt, card, permissions, checks, require-approval, reach, revoke, auth, setup
cub repoZero → Local/Cloudinventory, review, adopt, deliver, rollback, upload, set, status, drift, upgrade, starter, starter-export, deploy-from-hub, back-to-git
cub secretLocal / Cloud Hubset, list, files, pull, pull-key
cub inboxLocal / Cloud Hublist, approve, refuse, review
cub localLocal ↔ Cloudstart, stop, status, uninstall, connect, offer, copy, to-hub

Compatibility note: cub mini ... remains a silent compatibility alias for every command above (7-noun CLI & plain cub).

Commands in Claude Code

/confighub:help           1-screen menu of Zero/Local/Cloud Hub + the 7 cub noun groups
/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:inventory      read-only map of what this GitOps repository deploys
/confighub:staging        Zero → Local Hub: connect this folder for staging + gated production
/confighub:to-hub         Zero/Local → Cloud Hub: copy recorded history into a Cloud Hub

(Agent permissions, MCP watch levels, and starters are CLI commands: cub agent permissions, cub agent checks, and cub repo starter / cub local start-from.)

Licensing, security & downloads