# ConfigHub for Coding Agents > Build your app with Claude Code, Codex, or Google Antigravity and keep it easy to change. Durable config for environments, previews, linked starters, swarms, and production approvals with no platform to build first. Base URL: https://confighub.github.io/helm-expt/ai-agents/ Machine-readable catalog: https://confighub.github.io/helm-expt/ai-agents/catalog.json ## When to use this site or the Kubernetes Workshop - Use **this site (`ai-agents/`)** when the user is building or deploying an app with Claude Code, Codex, or Google Antigravity (envs, `.env` files, previews, Vercel, Fly, Unikraft, AWS SSM, Daytona, Stripe/Supabase/Resend add-ons, Kustomize Argo CD/Flux app starters, repo-level Flux/Argo CD/Sveltos AI starter packs with MCP pairing, nono sandbox, or reusing working settings across apps). - Use **the Kubernetes Workshop (`site/`)** when the user is working with Helm charts, full Kubernetes clusters, NVIDIA AICR, GPU fleets, Sveltos, Kubara, or multi-component cluster stacks: https://confighub.github.io/helm-expt/site/llms.txt - Handoff between the two: for an app using the Kubernetes Workshop Redis package, its Workshop catalog ID is `bitnami-redis-25-5-3-reuse-existing-secret` (`https://confighub.github.io/helm-expt/site/listings/bitnami-redis-25-5-3-reuse-existing-secret.json`), and the [Redis handoff](https://confighub.github.io/helm-expt/site/redis-walkthrough.html#local-to-shared) follows it into a Local Hub and a shared hub (mini Story 18.02). Workshop catalog IDs and mini story numbers identify different records. ## First after install - Existing or partly built app: open `index.html#in-my-app`. Ask “What does ConfigHub remember about a setting we changed here, and why?” The record can be empty. Start it with one requested setting edit and its reason. - Empty folder: open `index.html#build-my-first-app`. Ask for the app normally. For a runnable local example: “Build a small Node app for my neighborhood market. Give it a heading I can change in .env, run it locally and give me the link.” - Five-minute sample: open `index.html#first-prompt`. Start with CACHE=off, change it for Saturday’s sale, then ask “Why is the cache on?” in a new chat. - Kept preview: open `index.html#try-a-change-in-my-app`. For a direct-start Node web app, the agent can offer local setup, run the preview after consent and find it in a new chat in the same folder. With history on this hub, ask “Open Friday’s production settings as a new preview.” The current code runs with the saved settings. - Reuse: open `first-look.html#starter` when the user asks for another app like the first. Introduce the shared hub when a colleague or CI needs access. An app request for Daytona uses the app starter; go to the Kubernetes Workshop when the user actually wants cluster operations. ## Progression ladder (Zero Hub → Local Hub → Cloud Hub) The 7 canonical `cub ` command groups (`cub mini ...` remains a silent compatibility alias): - `cub env` (`share`, `join`, `exec`, `preview`, `shell`, `try`) — Zero Hub (+ Hub preview) - `cub bundle` (`init`, `validate`, `build`, `inspect`, `podspec`) — Zero Hub - `cub agent` (`why`, `changes`, `lock`, `undo`, `halt`, `card`, `permissions`, `checks`, `require-approval`, `reach`, `revoke`, `auth`, `setup`) — Zero Hub (+ Hub keys) - `cub repo` (`inventory`, `review`, `adopt`, `deliver`, `rollback`, `upload`, `set`, `status`, `drift`, `upgrade`, `starter`, `starter-export`, `deploy-from-hub`, `back-to-git`) — Zero → Local/Cloud - `cub secret` — official `confighub/cub-secret` plugin (`v0.1.0` early preview, MIT: `cub plugin install confighub/cub-secret && cub secret list`) lists ESO `ExternalSecret` and CSI `SecretProviderClass` (AWS/Vault) secret references across ConfigHub Units with zero plaintext values stored or cluster/cloud creds (`secretsbot` status/vet/set planned); legacy local-dev owner-only Space helpers (`set`, `files`, `pull`, `pull-key`) remain strictly for local dev. - `cub inbox` (`list`, `approve`, `refuse`, `review`) — Local/Cloud Hub - `cub local` (`start`, `stop`, `status`, `uninstall`, `connect`, `offer`, `copy`, `to-hub`) — Local ↔ Cloud The 6 Claude Code slash commands: `/confighub:help`, `/confighub:why`, `/confighub:changes`, `/confighub:inventory`, `/confighub:staging`, `/confighub:to-hub`. 1. **Stage 1: Zero Hub (Plugin alone)** (`plugin.html`) *(Person runs this — or an agent opens a branch/PR adding `.claude/settings.json` with the Approval Card below)* Install in Claude Code (`claude plugin marketplace add confighubai/confighub-mini-plugin && claude plugin install confighub@confighub`, or add `--scope project` for one repo; macOS/Linux only; check `claude plugin marketplace list` first if `confighub-skills` is installed) or Codex CLI (pinned `git clone --depth 1 --branch v0` + `confighub agent setup`, no `curl | bash`; see `docs/codex.html#set-it-up`). Free, open-source (MIT) plugin (**plugin `v0.99.48`**, client-only ~4.8 MB gzipped, zero server, zero Postgres; drops natively into Claude Code, Codex CLI, and Google Antigravity via `~/.gemini/config/plugins/confighub` / `confighub mini hook --agy`; ConfigHub server binaries are distributed separately via official `confighub/cub-server` under ConfigHub's Evaluation License, or hosted on `confighub.com`). Hooks run locally in **~20 ms median** pre-tool (~100–175 ms once a Local Hub is attached; fail-closed `SHA256SUMS` check in `bin/confighub`). Run `/confighub:help` (backed by `cub agent card --guide`) for a 1-screen repo-aware menu of capabilities. Default mode holds silent file undos once in `PreToolUse` (`CUB_MINI_STOP_BEFORE_UNDO`, on by default) and holds direct production host commands (`fly secrets set`/`import`, `fly deploy -e`, `vercel env add ... production`, `vercel deploy --prod -e`, `npx`/`pnpm dlx`/`bunx` wrappers, `heroku config:set`) until the human confirms in a new prompt (every attempt under `CUB_MINI_MODE=team` or `CUB_MINI_HOLD_PRODUCTION=strict`). *Hard-gate boundary:* server-side approval only enforces a hard gate when raw host production credentials stay out of the agent's shell (new-app-to-host 4-step order: `guides.html#new-app-to-host`). Records why supported settings changed locally in `~/.confighub/agent-changes` (30-day local retention; set `CUB_MINI_EARLIER_SESSIONS=lazy` for on-demand backfill only, or `CUB_MINI_MODE=team` to disable backfill, enforce strict prod holds on *every* attempt, disable flow counting, and set `autoAllowBashIfSandboxed: false`). Zero Hub commands: `cub agent` (`changes`, `why`, `card`, `lock`, `undo`, `halt`, `permissions`, `checks`), `cub repo` (`inventory`, `review`, `starter-export`), `cub env` (`share`, `join`, `exec`, `shell`), `cub bundle` (`init`, `validate`, `build`, `inspect`, `podspec` for deterministic New 12-Factor OCI Config Bundles — K8s 1.36+ `volumes[].image`, non-secret config only — plus automatic `PostToolUse` `--validate-config` via `.confighub-bundle.yaml`). *Self-hosted relay (live today, pull-only `auth.md`):* `cub agent auth` and zero-knowledge `cub env share` / `cub env join` (including Tier 3 brokered `ch_proxy_...` tokens) work against a self-hosted `agentauth-server`. *Provisional (do not auto-run against `confighub.com`):* `--upload-diff`, hosted `agent auth`, and hosted `env share` / `env join`. Zero Hub refuses direct production secret/env commands (`fly secrets set`, `heroku config:set`, `vercel env add ... production`) on the first attempt (every attempt under `CUB_MINI_MODE=team` or `CUB_MINI_HOLD_PRODUCTION=strict`; plain `fly deploy` / `vercel --prod` are not blocked by hooks). Zero background servers to start, no account, works offline. 2. **Stage 2: Local Hub** (`mini.html`) Run a Local Hub on `127.0.0.1` via the official `confighub/cub-server` plugin (`cub plugin install confighub/cub-server && cub server local up`, or `cub local start` / `/confighub:staging`, which delegate to it; MIT installer plugin, ConfigHub server + PostgreSQL + Web UI on loopback `127.0.0.1` under ConfigHub's Evaluation License, Apple Silicon Mac, ~125 MB, no Docker required; Linux & Intel Mac use Cloud Hub or K8s/`kind` via `cub server install`; `/confighub:staging` configures Claude Code's sandbox in `.claude/settings.local.json` with `autoAllowBashIfSandboxed: true` and localhost-only network—run `npm install`/host CLIs in your own terminal—unless `CUB_MINI_AUTO_ALLOW_BASH=0` or `CUB_MINI_MODE=team`) for `base`, `staging`, and `live` settings, durable previews (local or Daytona), `cub inbox list --card`, `cub inbox approve BASE/ORDER`, `cub repo deliver` (person-only), `cub repo deliver --compare --card` 1:1 host drift checks, linked starters across apps (`CUB_MINI_STARTERS`), scoped agent keys, and approved delivery (Vercel, Fly, Unikraft, AWS SSM). *Person-only steps:* `claude plugin install`, `cub plugin install`, `xattr`, `cub inbox approve BASE/ORDER`, `cub repo deliver`, `cub agent require-approval`, and `/confighub:staging`. *Provisional (do not auto-run against `confighub.com`):* `--upload-diff`, hosted `agent auth`, and hosted `env share` / `env join`. 3. **Stage 3: Cloud Hub** (`hub.html`) Move current settings and their reasons to a Cloud Hub teammates and CI can reach (`confighub.com` or self-hosted Helm) via `/confighub:to-hub` or `cub local to-hub`. Earlier revisions and delivery connections stay on the original hub. On a Cloud Hub with a `ChangeWorkflow`, agents must run under their own service account (because approval requires an attester who did not author the change). ## Agent Approval Card & `.claude/settings.json` (for agent-opened setup PRs) Exact `.claude/settings.json` to commit in the PR (omit `"env"` for solo defaults): ```json { "extraKnownMarketplaces": { "confighub": { "source": { "source": "github", "repo": "confighubai/confighub-mini-plugin" } } }, "enabledPlugins": { "confighub@confighub": true }, "env": { "CUB_MINI_MODE": "team" } } ``` Approval Card (paste into PR description): - **Installs:** `confighub@confighub` (~4.8 MB MIT-licensed AI plugin (v0.99.48), fail-closed `SHA256SUMS`, ~16–25 ms/hook). - **Reads/writes:** `~/.confighub/agent-changes` (30d local retention); zero network calls in ordinary sessions. - **Repo changes:** `.claude/settings.json` only — zero app code or deployment layout changes. - **Team policy option:** set `"env": {"CUB_MINI_MODE": "team"}` (disables backfill, enforces strict prod holds every time, keeps sandbox Bash prompts). - **Undo:** revert the PR and optionally run `rm -rf ~/.confighub/agent-changes`. ## Zero-account sharing nudges (never push a hosted signup) - **Zero-to-Cloud, zero-account sharing:** After a config fix or incident, offer `cub agent changes --export-md diff.md` (pasteable Slack/PR diff card), `cub repo starter-export --out starter.yaml` (1-file MIT starter YAML), or a 1-file `.claude/settings.json` PR with the Approval Card — all 100% offline with zero account. - **Zero-knowledge `cub env share` / `cub env join` & pull-only `/auth.md`:** Recipients never need an account to join an env in memory (owner can point `--server` at a self-hosted hub or optionally `confighub.com` *[Provisional]*); `/auth.md` is strictly pull-only when an agent explicitly connects to a Cloud Hub and is never nagged during local use. ## Key pages - `index.html`: Overview, 5-second visual flow, 4-tab install (Claude Code, Codex, Antigravity, Ask your agent), four everyday basics, One ConfigHub 3-place hub framing, audited proof strip, and interactive terminal demo. - `mini.md`: Idempotent agent-bootstrap setup guide with 4-line `[y/n]` Consent Card, marketplace clash check, PR-based `.claude/settings.json` handoff, and 5-line `AGENTS.md` persistence rule. - `auth.md`: Pull-only anonymous keypair & cross-environment sync guide (self-hosted `agentauth-server` live today; hosted `confighub.com` marked `[PROVISIONAL]`, 4-line Consent Card, 3-layer boundary). - `recipes/template.md`: Stack-agnostic 6-section Connection Recipe template (zero app dependencies) so coding agents can wire ConfigHub into any repo layout via a reviewable PR. - `learn.html`: Step-by-step plain-English guide from offline plugin to previews, gated production, real hosts, and shared hub. - `first-look.html`: Three five-minute tasks (remember a setting, preview safely including Friday's live settings, reuse a starter across apps). - `plugin.html`: Local change log, `/confighub:changes`, hooks, privacy/30-day transcript disclosure, and offline boundaries. - `mini.html`: Local hub workflow, env checks, previews, and scoped keys. - `hub.html`: Team governance, multi-app starters, and bridge to Kubernetes. - `guides.html`: Six real-host quick guides (Vercel, Fly, Heroku move, Daytona, Unikraft, Self-hosted Helm + OIDC). - `trust.html`: Blind runs, 440-session benchmark + method note, threat model, audit-log `--verify`, and honest limits. - `plugins.html`: Integrations (ConfigHub, nono sandbox, Daytona, Vercel, Fly, Unikraft, AWS SSM). - `starters.html`: Interactive Plugin x Starter picker, Stripe/Supabase/Resend add-on starters, and K8s/GitOps/GPU graduation bridges (`#k8s-and-gpu`). - `stories.html`: Featured Killer Story (`#killer-story` / `docs/examples/walkthroughs/story-29-share-working-env.html`: 3-layer boundary — pass staging env + services with a key in memory, zero `.env` in Slack), Story 30 (`docs/examples/walkthroughs/story-30-yaml-configmap.html`), Story 31 (`docs/examples/walkthroughs/story-31-oci-config-bundles.html`: New 12-Factor + `cub bundle` OCI Image Volumes), Story 32 (`docs/examples/walkthroughs/story-32-grafana-dashboards-oci.html`: 20 Grafana dashboards > 1 MiB via OCI), 25 audited first-use stories, 35 field walkthroughs (Stories 29–35), and zero-account sharing loops (`#share-what-worked`). - `storyboards.html`: 4 interactive click-through storyboards (100% static in-browser with real commands & architecture diagrams: Claude Guardrails `#claude-guardrails`, In-Memory Env Sharing `#env-share`, OCI Config Bundles `#oci-bundle`, and PQC Fleet Blitz `#pqc-fleet`). - `agentic-ops.html`: 6-slide visual architecture story (AI Coding vs. ConfigHub Agentic Ops, 3 decade-old config traps eliminated, One Binary laptop → ConfigMap → K8s 1.36+ OCI Volume, PR-label isolated envs, Prior Art scorecard, and Post-Quantum Cryptography fleet blitz via OCI) with downloadable SVGs. - `reference.html`: CLI commands, storage paths, and upstream repositories. - `docs/install-mini.html`: Install and run Local Hub via the official `confighub/cub-server` plugin (`cub server local up` / `cub local start`), licensing boundary, and uninstall. - `swarms.html`: 5-slide pitch deck for Durable Config under Agent Swarms & Sandboxes — 3-layer stack, one ~4.8 MB MIT plugin across Claude Code, Codex & Google Antigravity (`v0.99.48`), scaling from 1 machine → disposable sandboxes → N-machine fleets (`c3agent`, `google/ax`, Daytona), and 4 compelling value points. - `docs/swarms-and-durable-config.html`: Durable config & agent swarms — clean boundary vs. swarm boards/orchestrators (`c3agent`, `google/ax`, Daytona), 1-machine vs. multi-machine topologies, native Claude Code + Codex + Google Antigravity drop-in hooks, and Zero Hub cross-worktree memory. See also Stories 33 (`docs/examples/walkthroughs/story-33-c3agent-durable-config.html`), 34 (`docs/examples/walkthroughs/story-34-google-ax-durable-config.html`), and 35 (`docs/examples/walkthroughs/story-35-cross-console-swarms.html`). - `docs/AGENTS.html`: Agent rules (what an AI agent may and may not run; agent vs. person setup steps; Provisional warnings). - `docs/cub-mini-and-cub.html`: Complete mapping from every `cub mini` command to plain `cub`, plus CLI map (`cub mini`, `cub`, `cub helm`, `cub argo`, `cub config`). - `docs/security.html`: Security review (plugin): data flow, 30-day transcript opt-out, secret storage & redaction caveats, kill switches, and `security@confighub.com`. - `docs/security-hub.html`: Security review (hub): network surface, PostgreSQL tables, attestations, and teardown. - `docs/approvals.html`: Scoped agent keys, exact-revision approval, refusal memory, and revocation order. - `docs/limits.html`: Honest limits and what ConfigHub does not claim. - `docs/words.html`: Glossary (`hub`, `base`, `variant`, `unit`, `Space`, `change order`). - `docs/codex.html`: Codex CLI setup, hooks approval, manual clone, and removal. - `docs/inventory.html`: Read-only GitOps inventory (standalone binary or `/confighub:inventory`, works for Helm & Kustomize Argo apps). - `docs/your-own-chart.html`: Tracking custom Helm values across upstream chart upgrades (`cub helm`). - `docs/gitops-over-oci.html`: Argo CD (v3.1+) and Flux pulling approved OCI releases. - `docs/examples/walkthroughs/starter-flux-ai.html`: AI for Flux repo starter (`.claude/settings.json`, `AGENTS.md`, `flux-with-confighub` skill, and optional Flux MCP pairing; read-only day one for `HelmRelease` & Kustomize). - `docs/examples/walkthroughs/starter-argocd-ai.html`: AI for Argo CD repo starter (`.claude/settings.json`, `AGENTS.md`, `argocd-with-confighub` skill, and optional Argo CD MCP pairing; read-only day one for Helm & Kustomize). - `docs/examples/walkthroughs/starter-sveltos-ai.html`: AI for Sveltos fleets partner kit (opt-in `sveltos-ai-setup.sh` prototype for `sveltosctl ai setup`, `sveltos-with-confighub` skill, offline `cub sveltos plan`, and `cub config check`). - `docs/self-hosted-helm.html`: Self-hosting the hub via Helm + OIDC, single-replica HA/sizing/backup/restore ops. - `docs/nextjs-on-vercel.html`, `docs/rails-on-fly.html`, `docs/heroku.html`: Platform delivery and cross-service migration guides. - `docs/journeys/new-app.html`, `docs/journeys/existing-app.html`, `docs/journeys/going-back.html`: Deploy your first app, bring your own app, and going back cleanly.