# ConfigHub (Durable Config for Coding Agents) > Your local operations factory for Claude Code, Codex CLI, and agent swarms. Start offline with Zero Hub (MIT plugin), add a Local Hub on 127.0.0.1 (`confighub/cub-server`, Evaluation License) for isolated previews and gated production, or graduate to a Remote Hub (`confighub.com` or self-hosted Helm) using the same 7 `cub ` command groups. Base URL (this preview): https://confighub-ai-agents.pages.dev/ Upstream canonical URL: https://confighub.github.io/helm-expt/ai-agents/ Machine-readable catalog: https://confighub-ai-agents.pages.dev/catalog.json ## Machine-Readable Guides & Visual Stories - `confighub.md`: Idempotent agent setup, 4 hard stop rules, Consent Card, harness install paths, and portable `SKILL.md`. - `auth.md`: Pull-only anonymous Ed25519/X25519 keypair provisioning and 3-layer boundary for cross-environment sharing (only when explicitly asked). - `recipes/template.md`: Spring-Boot-style Connection Recipe template (zero app deps, New 12-Factor `/etc//.yaml` + OCI Image Volumes, clean exit to Git). - `AGENTS.md`: Operating rules, fit rubric, and person-only boundaries. - `https://confighub.github.io/helm-expt/ai-agents/agentic-ops.html`: 6-slide Agentic Ops visual story and silent walkthrough videos. - `https://confighub.github.io/helm-expt/ai-agents/storyboards.html`: 4 interactive storyboards (Story 29, Story 31 OCI, Claude guardrails, NIST PQC). - `https://github.com/confighubai/confighub-mini/tree/main/examples/demos`: 6 live local demos. ## 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 agent swarms (envs, `.env` files, previews, OCI config bundles, 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 Local Hub and Remote Hub (Story 18.02). ## Progression ladder (Zero Hub -> Local Hub -> Remote 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/Remote - `cub secret` (`set`, `list`, `files`, `pull`, `pull-key`): Local/Remote Hub - `cub inbox` (`list`, `approve`, `refuse`, `review`): Local/Remote Hub - `cub local` (`start`, `stop`, `status`, `uninstall`, `connect`, `offer`, `copy`, `to-hub`): Local <-> Remote 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.44`**, client-only ~5 MB gzipped, zero server, zero Postgres; 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** (fail-closed `SHA256SUMS` check in `bin/confighub`) and activate in the next chat. Records why supported settings changed locally in `~/.confighub/agent-changes` (30-day local retention; set `CUB_MINI_EARLIER_SESSIONS=lazy` for on-demand backfill, `=0` for off, or `CUB_MINI_MODE=team` to disable backfill, enforce strict prod holds on every attempt, disable flow counting, and keep Bash prompts on). Zero-Hub commands include `cub agent why|changes|lock|undo|halt|card`, `cub env share|join|exec`, `cub bundle init|validate|build|inspect|podspec`, and `cub repo inventory|review|drift|starter-export`. *Provisional (preview hosted contract not yet live on confighub.com):* hosted `--upload-diff`, hosted `cub agent auth`, and hosted `cub env share` / `cub env join` (self-hosted `agentauth-server` relay works today). Plugin alone 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). 2. **Stage 2: Local Hub** (`local-hub.html`) Run the official `confighub/cub-server` Local Hub on `127.0.0.1` (`cub plugin install confighub/cub-server && cub server local up`, or `cub local start` / `/confighub:staging`; plugin MIT, ConfigHub server under Evaluation License, localhost PostgreSQL + Web UI, no Docker, no cloud account; hook overhead ~100-175 ms once attached; `/confighub:staging` limits Claude's sandbox network to localhost, so run `npm install` or host CLIs in your own terminal). Unlocks `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`, `xattr`, `cub inbox approve BASE/ORDER`, `cub repo deliver`, `cub agent require-approval`, and `/confighub:staging`. 3. **Stage 3: Remote Hub** (`hub.html`) Move current settings and their reasons to a hub teammates and CI can reach (`confighub.com` or self-hosted Helm + OIDC/SSO) via `/confighub:to-hub` or `cub local to-hub`. On a Remote Hub with a `ChangeWorkflow`, agents must run under their own service account (because approval requires an attester who did not author the change). Export plain YAML back to Git anytime via `cub repo back-to-git`. ## 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` (MIT open-source Zero-Hub plugin `v0.99.44`, ~5 MB gzipped, fail-closed `SHA256SUMS`, ~20 ms/hook). - **Reads/writes:** `~/.confighub/agent-changes` (30d local retention); zero outbound ConfigHub 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) - **Local-first by default:** 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 (100% offline, 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 (3-layer boundary: ConfigHub Core stores non-secret config only; teams plug in Vault/1Password/LiteLLM or an optional self-hosted `agentauth-server` dev relay; hosted `confighub.com` relay is Provisional). `auth.md` is strictly pull-only when an agent explicitly connects across machines or sandboxes. ## Key pages - `index.html`: ConfigHub landing page (local operations factory hero, Quick Start, 5-workflow cookbook, Alice-to-Bob handoff, Zero/Local/Remote Hub progression, 7 canonical `cub` command groups, architecture boundary, and audited proof). - `learn.html`: Step-by-step plain-English guide from offline Zero Hub to previews, gated production, real hosts, and Remote 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`: Zero Hub change log, `/confighub:changes`, hooks, privacy/30-day transcript disclosure, and offline boundaries. - `local-hub.html`: Local Hub workflow, env checks, previews, and scoped keys. - `hub.html`: Remote Hub 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, 17 YAML starters, GitOps AI packs, Stripe/Supabase/Resend add-on starters, and K8s/GitOps/GPU graduation bridges (`#k8s-and-gpu`). - `stories.html`: Featured Killer Story (`#killer-story` / Story 29: key-to-key env handoff with 3-layer boundary), Story 30 (`AppConfig/YAML` -> `ConfigMap`), Story 31 (New 12-Factor OCI Config Bundles), Story 32 (20 Grafana Dashboards via OCI), and 31+ audited stories and walkthroughs. - `reference.html`: CLI commands, storage paths, and upstream repositories. - `docs/install.html`: Official `confighub/cub-server` Local Hub installer, checksum verification, and uninstall. - `docs/cub-mini-and-cub.html`: Complete mapping of the 7 canonical `cub` noun groups, `cub mini` compatibility aliases, and plain `cub`. - `docs/security.html` & `docs/security-hub.html`: Security reviews for plugin and hub.