Skip to content
ConfigHub · Durable config for coding agents

ConfigHub · Claude Code, Codex & Antigravity

Durable config from Zero to Cloud for coding agents and swarms.

Start offline with zero servers and scale seamlessly to Cloud Hub — with an optional Local Hub whenever you need one.

  • The everyday basics: deploy your app, check & fix your env, get & share the right env, and copy & adapt working setups across projects.
  • Cross-session & swarm memory: every chat and parallel swarm worker sees what changed and why before a commit.
  • Isolated previews & OCI bundles: test config tweaks safely or pack validated YAML into immutable OCI bundles.
  • Gated production & in-memory sharing: agents edit staging fast while prod waits for your approval, with no .env files in Slack.
Session 1 · Agent A Uncommitted edit

You:"Bump k8s/app.yaml replicas to 4 for Friday's flash sale."

Saved in ConfigHub · k8s/app.yaml · replicas: 2 -> 4
Session 2 · Agent B Fresh chat

You:"Trim anything oversized in k8s/app.yaml."

ConfigHub injects prior receipt: Session 1 raised replicas from 2 to 4 for Friday's flash sale.
Result · Config protected 0 silent overwrites

"Kept replicas at 4 for Friday's sale. Ready to reset to 2 once it ends."

Zero Hub · ~/.confighub
How it works ->

Quick start · Zero Hub

Install in one command.

One drop-in install on macOS or Linux. Starts working in your next chat with zero servers or accounts.

Collision check, next-chat tip, transcript opt-out & Team Mode

Official org & collision check: confighubai/confighub-mini-plugin is ConfigHub's official AI org. Run claude plugin marketplace list first if confighub-skills is already installed, and resolve any name collision before adding.

Next chat & footprint: hooks activate in your next chat (~20 ms median pre-tool locally, ~100-175 ms once a Local Hub is attached). Optional Local Hub uses official confighub/cub-server (Evaluation License, localhost PostgreSQL + Web UI, no Docker), and /confighub:staging limits Claude's sandbox network to localhost (run npm install or host CLIs in your own terminal).

Transcript opt-out & Team Mode: set CUB_MINI_EARLIER_SESSIONS=lazy (on-demand), =0 (off), or CUB_MINI_MODE=team (no backfill, strict prod hold on every attempt, Bash prompts kept). Add --scope project to limit install to one repo.

Choose your coding agent
claude plugin marketplace add confighubai/confighub-mini-plugin && claude plugin install confighub@confighub
MIT-licensed AI plugin v0.99.48 Hands-on lab

ConfigHub cookbook

Five workflows: Zero Hub to Cloud Hub.

Start with zero servers, add a Local Hub when you want previews and approvals, and step up to a Cloud Hub when your team joins.

Track why a setting changed

Edit a file uncommitted, then ask a fresh chat why it changed.

Zero Hub 0 servers
Open in lab ->
Chat 1 Make an uncommitted edit
Create app-config.json with {"cache": false}, then set cache to true for Saturday's sale and leave it uncommitted.
Chat 2 Fresh chat or parallel agent
Why is the cache on in app-config.json?

ConfigHub replies: Recalls false and the reason via /confighub:why or cub agent why. Lock keys with cub agent lock; undo config alone with cub agent undo.

Share staging in memory or pack an OCI bundle

Share envs without .env in Slack (Story 29), or build OCI bundles (Story 31).

Zero Hub No .env in Slack
Read Story 29 ->
In-memory env share Story 29 · Key-to-key handoff
cub env share shop --variant staging --mode test --max-requests 50 --server "$CONFIGHUB_SERVER" --approve-wait
cub env join "$INVITE_URL" --as bob -- npm run dev

3-layer boundary: Injects staging config and sealed/capped test keys into memory with zero .env on disk. Core holds non-secret config only (auth.md).

OCI config bundles Story 31 · New 12-Factor YAML -> OCI
cub bundle init && cub bundle validate && cub bundle build

What happens: Validates structured YAML (--validate-config) and packs immutable OCI bundles for K8s 1.36+ Image Volumes (Story 31 ->).

Preview a change without touching files

Run a local preview on its own port, or replay Friday's prod config.

Local Hub 127.0.0.1
Preview guide ->
Chat 1 Start an isolated preview
Show me my app as it is and a local preview with the heading "Evening collection." Give me both links and keep the preview running for tomorrow.
Chat 2 Next day or Friday replay
What local previews are running right now, and what changed in each one?

What happens: Local Hub serves the preview on 127.0.0.1 and lets tomorrow's chat inspect it or replay Friday's production settings.

Let agents edit staging while you approve prod

Scoped keys keep staging fast while prod waits for your terminal.

Local Hub Approval gate
Approvals guide ->
Agent chat Update staging & propose prod
Set APP_SUPPORT_HOURS to Daily in staging, propose it for production, and show me the approval command.
Your terminal Review & approve production
cub inbox list --card
cub inbox approve BASE/ORDER

What happens: Staging updates immediately while prod blocks self-approval until you confirm. Use cub repo deliver for host sync.

Keep tuned settings after sandboxes vanish

Benchmark flags in Daytona, Unikraft, or nono without losing winners on exit.

Local -> Cloud Hub Swarm-safe
Sandbox guides ->
Sandbox wrapper Run in test mode & capture diff
cub env exec --app shop --mode test --capture -- daytona exec -- npm test

Or ask your agent: benchmark 120 vs 240 in Daytona and save the winning change before teardown.

After teardown Saved hub record
Live keys
Blocked via --mode test and cub agent lock
Winning diff
BATCH_SIZE: 120 -> 240 with rationale
Review queue
Saved in cub inbox list --card; graduate via cub local to-hub
Open recipes Zero app deps

Another stack? Generate a recipe.

ConfigHub inspects your repo and drafts a zero-dependency connection recipe and setup PR.

Any coding agent Generate a connection recipe
Read https://confighub.github.io/helm-expt/ai-agents/recipes/template.md, inspect this repo, and draft a ConfigHub connection recipe and setup PR for our stack.

One ConfigHub · Zero lock-in

Alice ships it. Bob hardens it. Same durable config at every stage.

Start offline with Zero Hub. Step up only when previews, teammates, or SSO require it (export plain YAML anytime via cub repo back-to-git).

Alice ships with agents

ConfigHub records every config edit and reason locally across Claude Code, Codex, Antigravity, and swarms.

Alice shares a Config Receipt

Exports a redacted PR diff (cub agent changes --export-md) or 1-file starter (cub repo starter-export).

Bob hardens & reuses

Adds limits and prod approval gates, then publishes the hardened starter for the next app.

Stage 1 · Zero Hub

Plugin alone

MIT v0.99.48 0 servers

Client-only plugin (~4.8 MB, ~20 ms hook, offline). Cross-session memory, key locks, config-only undo, in-memory env share, and OCI bundles.

Start: claude plugin install confighub@confighub
Stage 2 · Local Hub (127.0.0.1)

Local server + Web UI

confighub/cub-server Apple Silicon Mac ~125 MB · No Docker

Local server, PostgreSQL, and Web UI bound to loopback 127.0.0.1 (Evaluation License, no cloud account; Linux & Intel Mac use Cloud Hub or cub server install). Adds isolated previews, staging/live copies, scoped keys, prod approvals, and 1:1 host delivery.

Start: cub plugin install confighub/cub-server && cub server local up (or /confighub:staging)
Stage 3 · Cloud Hub (Remote / Hosted)

Cloud or self-hosted VPC

confighub.com Self-hosted Helm + OIDC

Team governance, PR-triggered isolated envs, named human approvers, CI agents, signed audit trails, and fleet truth with plain cub.

Start: /confighub:to-hub or cub local to-hub
7 cub command groups, 6 slash commands & 5-step data flow
cub env Zero Hub (+ Hub preview)
share, join, exec, preview, shell, try
cub bundle Zero Hub
init, validate, build, inspect, podspec
cub agent Zero Hub (+ Hub keys)
why, changes, lock, undo, halt, card, permissions, checks, require-approval, reach, revoke, auth, setup
cub repo Zero -> Local / Cloud
inventory, review, adopt, deliver, rollback, upload, set, status, drift, upgrade, starter, starter-export, deploy-from-hub, back-to-git
cub secret Local / Cloud Hub
set, list, files, pull, pull-key
cub inbox Local / Cloud Hub
list, approve, refuse, review
cub local Local <-> Cloud
start, stop, status, open, uninstall, connect, offer, copy, to-hub
/confighub:* 6 Claude slash commands
help, why, changes, inventory, staging, to-hub

Compatibility: legacy cub mini ... commands remain supported as a silent alias. Full CLI reference -> · 4 interactive storyboards ->

  1. 1. ComponentShared base defaults & starter rules
  2. 2. SpaceStaging & live environment variants
  3. 3. UnitApp settings + protected overrides
  4. 4. RevisionPinned snapshot + who & why
  5. 5. ReleaseDelivered to Fly, Vercel, or K8s
Architecture boundary: Git, hosts, GitOps, vaults, swarms & cluster agents

Scope & hard-gate boundary: ConfigHub does not deploy your app or scaffold code; cub repo deliver sends approved settings while your host CLI or GitOps controller deploys code. Server-side production approval enforces a hard gate when raw host prod credentials stay out of the agent's shell (otherwise use CUB_MINI_MODE=team or run deploys in your own terminal). New app to host (4 steps) ->

Tool
What stays where it is
What ConfigHub adds
Git
Source code, Dockerfiles, PR reviews, and commit history.
Uncommitted setting reasons, cross-session memory, and durable environment copies above files.
Cloud hosts (Vercel, Fly, Heroku, Unikraft)
Runtime execution, TLS, scaling, and secret storage.
1:1 approved config delivery, live drift checks (cub repo deliver --compare), and cross-service migration.
Helm
Upstream charts and chart versioning.
Preserves custom values and reasons across chart upgrades (~12 large charts per Local Hub; use a Cloud or VPC Hub for 40+). Helm guide
Argo CD / Flux / Sveltos
Cluster reconciliation and rollout controllers (Argo CD 3.1+ for OCI).
Read-only repo inventory (no 12-chart cap), PR review Action (up to 12 Apps/AppSet), GitOps AI starter packs, and Kustomize OCI delivery. Argo onboarding
Secrets & API brokers (Vault, 1Password, Secret Manager, LiteLLM)
Plaintext secrets, KMS rotation, and LLM gateway billing stay in your vault or gateway (or an optional self-hosted agentauth-server dev relay; hosted confighub.com relay is Provisional).
3-layer boundary: ConfigHub Core stores structured non-secret config, wiring, and approvals only; the runtime CLI spoke resolves refs strictly into child process memory. auth.md
Direct cluster agents (kubectl-ai, kubernetes-mcp-server)
Ad-hoc read-only cluster diagnostics and live inspection.
Versioned desired state, isolated preview/staging forks, policy triggers, and human-approved production rollouts so agents never hold direct write access to live prod clusters. Agentic Ops slides
Swarm boards & agent orchestrators (c3agent, google/ax, Temporal)
Task briefs, @mentions, queues, retries, heartbeats, sandboxes, and code collaboration.
Transparent cross-worktree config memory & undo guards across Claude Code, Codex & Antigravity (Zero Hub), 3-way config merge & scoped worker keys (Local Hub), and multi-host approval gates + versioned swarm prompts/models (Cloud Hub). Swarms pitch deck (5 slides) · Swarms guide · c3agent · Google AX · Cross-console swarms
Open-source repos, licensing & 440-session benchmark

440-session vendor-run benchmark vs. plain Git + CLAUDE.md (Nov 2026, two models, 10+ hostile inputs each): handwritten rules tied on 12 items when strict per-tool allowlists were present and read, but dropped to 0/20 vs 20/20 on holding production and recording reasons when rules were missing or broad, 0/13 vs 13/13 on spoofed multi-agent delegation, 0/10 vs 10/10 on tampered traces, and 1/10 vs 9/10 on scope isolation. Full benchmark tables, method & limits ->

10/10

Sessions kept uncommitted config + reason across fresh chats (Nov 5 run).

40/40

Autonomous runs made zero direct prod edits behind a hub gate (Oct 24 run).

0/190

Silent undos on live-cluster conflict checks vs. 144/190 without ConfigHub (Evidence).

Full benchmarks & limits

Try ConfigHub on your next agent session.