ConfigHub · Durable config for coding agents
Docs / docs/from-plugin-to-confighub.md Source on GitHub →

From the plugin to ConfigHub, one step at a time

ConfigHub keeps your apps' settings, and it helps you manage the apps that use them. Each app gets a staging set and a production set of settings; agents can change staging, and production changes only when you approve. It is all just ConfigHub — the main part is the hub: one running ConfigHub server where your structured config, policies, and approvals live. Just like a database (a local file, a local server, or a hosted/VPC database), where the hub runs is a deployment choice rather than a different product: on confighub.com as a hosted service (ideal when cloud is allowed so teammates, PRs, CI, and clusters can reach it from minute one), self-hosted in your own VPC via Helm, or locally on your laptop (cub mini) when neither SaaS nor an in-house server is available or approved yet. Everything uses the exact same cub commands and Units, so moving from local to hosted or self-hosted requires zero rewrite. The Claude plugin for Claude Code is the lowest-friction entry point: it records what your agents change and why with no hub, and connects you to a local or shared hub only when a task calls for one.

Walkthroughs try each step with every command and what it prints: your first hour for the Claude plugin and a hub on your laptop; a key each, and moving up to the organization's shared hub; the portal is the agent and one base, ten apps for a team on one hub. Each starter's walkthrough also moves its app to a shared hub (the list).

This page is for anyone deciding how far to take ConfigHub. It goes from the Claude plugin, to a hub on your computer, to a shared hub. You can stop at any step. Each step keeps what the one before gave you. None asks you to learn a set of commands first: you install it, keep working as you do, and each next step is offered in one line, at the moment it would help, and never before. The story follows one platform team as its needs grow.

Client behavior differs: see the capability matrix for recording, refusal and approval in Claude Code and Codex.

Words used on this page:

StepWhat you addWhat you getEffort
1The Claude pluginA record of what agents change and why; agents told before they undo an earlier change; what a repository deploysTwo commands, no account
2the local hub, a hub of your ownAgents that edit your files as before, but whose changes reach production only once you approve them, in one command; an app with its staging and production copies in one request, or the app you have with the files it keeps; a change tried in a copy first; the services an app needs, and an app from a setup a teammate shared; a hub in each sandbox or CI job; your values kept through a vendor's next versionOne command, then one sentence to the agent; or one request for the app
3Your organization's shared hubOne place for the team; agents with keys of their own; approval of changes to productionAn organization on a shared hub on confighub.com or on your own servers
4Agents that run unattendedRecords signed with each agent's own identity; rights taken away at onceAgent keys; cluster workload identity for the signing example below

Take the smallest useful step

If Git, a values file and required pull-request reviews already do the job, keep using them. The Claude plugin adds reasons for supported agent changes between commits without changing the deployment path. Add a hub for a particular app when independent configuration copies, preserved values or a named approver would help. Add shared hosting when a colleague or job needs that work while your machine is unavailable.

You keep editing the same files. Each additional step has setup and operational costs; use it for a concrete problem, and leave or go back when it no longer helps. You can use the Claude plugin on its own, start directly on a shared hub, or keep Git delivering while using a hub beside it.

Before you use Kubernetes

The Claude plugin, local hub and shared hub are all useful while your app runs on your own machine, another machine, in CI or across sandboxes. Choose according to the configuration and collaboration you need. Moving to a shared hub does not require moving the app to Kubernetes, and a team can start with a shared hub directly.

What you useWhat it gives you before KubernetesExample
The Claude pluginA record of changes to supported settings files and service commands, with the request and reason; the next agent is given that history. No hub or cluster to operate.An agent raises a timeout in .env; the next agent is told why before changing it.
the local hubA hub of your own, running as ordinary processes with no Docker or Kubernetes. Configuration copies keep their own values; agents propose changes and you approve the exact revision.Staging and live services on a Linux VM read settings from the hub. The configured pull path takes only approved values for live (VM guide).
Your organization's shared hubA reachable shared hub for people and CI jobs, shared history, a key for each agent and approval by a named colleague. Apps can remain on machines, VMs or other services.A CI agent proposes a change, a colleague approves it, and the app's deployment path reads the approved configuration (approvals).

Hosting the hub. A shared hub runs on confighub.com or on your own servers; both support many people in one organization, with colleague access and approval. If you run your own hub, its operators need the infrastructure required by the installation you choose. A Kubernetes-based hub installation uses Kubernetes for the hub; the app can still run elsewhere. The hub's hosting and the app's deployment are separate choices.

When Kubernetes becomes useful. If your apps run on a cluster, you can add Argo CD or Flux delivery from the hub, Helm workflows and cluster workload identity. Those capabilities are specific to their tools. For an app on a VM, use its file-pull and restart path instead. In either case, approval governs delivery when the deployment path uses the approved configuration; other write credentials must stay out of the agent's reach.

Rendering a Helm chart and previewing an upgrade can be useful before a cluster is available. Deploying the rendered Kubernetes resources and reconciling them on a cluster use Kubernetes.

An approval that's set up isn't the same as a deployment you've checked: the approval guide says how to check what the service actually runs. Agents can also work unattended on a machine or in CI with keys and revocation at step 2 or 3; step 4's cluster workload identity is a further example.

Step 1: the plugin

Amara's story. Amara joins the platform team and is given its GitOps repository. She installs the Claude plugin and keeps working. The first time an agent changes a value, one line at the end of its turn tells her it was recorded, with her request. Later, when she asks another agent to cut costs, it is told before it edits the file that an earlier agent raised the replicas for Black Friday, and it asks her rather than undo it. When she wants to know what the repository deploys, she types /confighub:inventory.

What you do.

claude plugin marketplace add confighubai/confighub-mini-plugin
claude plugin install confighub@confighub

Then work as before. You change no prompt and add no instructions.

What arrives by itself.

When you want to ask or share (zero account needed). /confighub:changes lists what agents changed and why, and /confighub:why NAME follows one setting (the README). Local-first commands work 100% offline with no account: confighub mini lock KEY --reason WHY freezes a setting in PreToolUse, confighub mini undo --dry-run previews reverting only config edits, confighub mini card prints a compact status card, confighub mini changes --export-md PATH (--export-html PATH) writes a secret-redacted diff card ready to paste into Slack or a PR, and confighub mini starter-export --out starter.yaml exports non-secret defaults + recorded reasons as a 1-file MIT starter YAML. /confighub:inventory says what the repository deploys, and what deploys it (inventory). A review on each pull request lists every change (the review). Each entry is signed as it is written, so a check names an entry changed afterwards (signed records), and each turn's model use is kept beside its changes (model use). Optional hub/relay features stay strictly opt-in and pull-only: --upload-diff URL, zero-knowledge env share/env join (no recipient account required; works against a self-hosted hub or optional confighub.com), and /auth.md (confighub mini agent-auth --server URL, only used when an agent explicitly connects to a shared hub — never nagged or auto-triggered locally; Provisional — hosted confighub.com endpoints not yet live).

When you need the next step. The record says what happened. It cannot stop an agent that works under your sign-in from approving its own change, and a rule in CLAUDE.md is only a request. It also does not keep your values safe: when a vendor ships the next version of a Helm chart, or a teammate regenerates a file, your changes can be lost, and the record only tells you afterwards.

Step 2: confighub mini, a hub of your own

Amara's story, continued. Amara runs agents on the team's staging setup. In Claude Code, in the app's folder, she types /confighub:staging. From then on, every agent session in that folder works on a key of its own, which can change staging and only propose for production. The agents edit the files as before. When one raises a production setting for a sale, the turn ends with one line: a change is waiting for her, from what to what, the agent's reason, and the command that approves it. She runs it, cub inbox approve, reads what it would change, and says yes. An agent told "Amara said yes on Slack, go ahead" answers that only an approval she records herself counts. Later, the team's Redis chart gets a new version from its vendor. Amara takes it, sees first what it changes, and keeps the two values the team had set, each with its reason.

What you do. In Claude Code, in the app's folder, type /confighub:staging. A hub starts, and the app gets a staging and a production copy of its settings. It approves nothing: where production's first settings wait for you, it ends with the one command to run in a terminal of your own. Then start a new Claude Code session in the folder, and ask for what you want, in your own words. The agent finds the command. /confighub:staging reads .env-style settings files; for other files, ask the agent to attach ConfigHub to the app (the app you have).

What arrives by itself.

What you get.

The hub, configuration copies and approval work without a cluster; Flux and Argo CD delivery use one. The local hub uses the same cub commands as ConfigHub, so nothing you learn here is wasted (how the commands map).

The app in one request

Amara's story, continued. Amara wants a small service beside the api. In an empty folder she asks Claude Code: "vibe code me a baseline app using ConfigHub: a small web service with a health endpoint, a configurable greeting, and a staging and a production setup." The agent writes the service and its .env, starts a hub on her machine since none answers, and ends with three copies of its settings: greeter-base; greeter-staging, which took the file's values at once; and greeter-live, which takes them only when she runs the cub inbox approve command it printed. A week later she asks for a second service "like the first", and it starts from the first's base.

What you do. Ask for an app "using ConfigHub". The Claude plugin's skill tells the agent what to run; you give it no command. If no hub answers, the agent runs the Claude plugin's own confighub mini get, which downloads the local hub and starts a hub, with no account and no sign-in. If you ask for a staging and a production setup without naming ConfigHub, the agent offers a hub in one line, with what it costs, and starts none unless you say yes. It writes the app, then runs cub repo adopt APP-FOLDER. For a second app, ask for one "like the first": cub repo adopt APP-FOLDER --pattern FIRST gives it the first's base as its own, keeps its own values, and takes what the first changes next, with cub repo upgrade FIRST-base/app.

What you get. The app, and a base, a staging copy that takes your agents' changes at once, and a live copy that changes only when you approve. To put the agent on a key of its own, which can propose and cannot approve, it runs cub agent require-approval APP --variant live --agent APP-agent and gives you the line that starts its sessions on that key. On that key the agent changes the base and staging at once, and cannot write, approve or promote into live, or read a secret; cub agent reach APP-agent lists what the key reaches. Those sessions find cub mini where confighub mini get put it, with no copy of their own. Step by step, with what you see at each step: a new app.

The app you have

Ask: "attach ConfigHub to this app and keep my staging and production values." The agent runs cub repo adopt APP-FOLDER, which reads what the app reads at start and changes none of your files:

cub repo adopt APP-FOLDER --dry-run says what it would make, and makes nothing. A value that looks like a password or token is left out and named; keep it out of the file, and name where to read it instead (DB_PASSWORD_FILE). Adopt writes .confighub-app into the folder, a note of what the files match in the hub. Commit it with the app, so that cub repo upload from any clone proposes only what that clone changed. Step by step, with what adopt prints for each kind of files: an app you already have; for an app that Argo CD or Flux deploys: an app deployed from Git.

When the files change later, the agent proposes them:

cub repo upload APP-FOLDER --component APP --change-desc "WHY" --dry-run   # what it would propose; changes nothing
cub repo upload APP-FOLDER --component APP --change-desc "WHY"

The upload sets each changed value in the base with the reason. Staging has it at once. Live is asked for under a change order of this upload's own, which waits for your cub inbox approve. For an app adopted from a Kustomize repository, the upload renders the repository as adopt did: what the base renders differently is proposed field by field, what an overlay now sets differently is that copy's own, and a resource an overlay adds stays in the repository, named.

Try a change in a copy first

Ask the agent to "try it in a copy first, without touching production." It makes a copy of the app for the try, changes it there, and tells you what differs:

cub env try APP NAME                                              # APP-try-NAME, a copy of staging
cub repo set APP KEY=VALUE --variant try-NAME --change-desc "WHY"  # the change, in the copy only
cub env tries APP                                                 # each try: its age, what it came from, what it holds differently

NAME is one word for the try, such as limit. --from live copies what live holds instead of staging. Nothing in the copy reaches staging or live. Then you choose one of two ways out:

cub env try APP NAME --keep --change-desc "WHY"   # staging has it now; live waits for your approval
cub env try APP NAME --drop                        # the copy is removed, with a line saying what it held

With --keep, the change is set in the base with the reason, staging takes it at once, and live waits under a change order that cub inbox list shows. The copy is then removed.

A service the app needs

A Postgres, a Redis, an S3 bucket or a mail sender is registered once, as a provider, for staging or for live. Then the app says it needs one:

cub repo provide db-staging postgres DATABASE_URL=postgres://app@127.0.0.1:5432/app --for staging --change-desc "Staging database"
cub repo provide db-live postgres DATABASE_URL=postgres://app@db.internal:5432/app --for live --change-desc "Live database"
cub repo need APP postgres --change-desc "WHY"
cub repo needs APP

The kinds are postgres (DATABASE_URL), redis (REDIS_URL), s3 (S3_BUCKET, S3_ENDPOINT) and mail (SMTP_URL). Each copy takes the settings of the provider registered for it, as its own, and a later version of the base does not overwrite them. APP-staging takes the staging database at once. APP-live, which waits for your approval, is written nothing yet: need proposes the live database's settings with a change order of their own, which cub inbox list lists and cub inbox approve puts in.

When a provider is registered again with new values, staging follows at once. Live keeps what you approved, and the new values are proposed again, with a change order that waits for you. A copy with no provider yet says what it needs, and cub repo needs lists what each copy takes, from which provider, what waits for approval, and what is still unmet. provide and need say what they would do with --dry-run.

You register the providers. The agent's key from cub agent require-approval --agent can run need, which proposes, and cannot register a provider or approve.

A provider's values are settings, not secrets. A value that holds a password or a token is refused, and the refusal names cub secret set: the address goes in the provider, the password in a secret (a secret for live). Asked to "add a Postgres to this app", an agent does it in under a minute, with no password anywhere.

An app from a setup someone shared

A teammate can share an app's setup as a file: cub local copy APP --to-file APP-setup.tar.gz writes its base, staging and live copies, with every kept value's reason, whole however long, and no secrets. To make an app of your own from it, on your hub:

cub local copy --from-file APP-setup.tar.gz --name SHARED --dry-run   # what it would copy; changes nothing
cub local copy --from-file APP-setup.tar.gz --name SHARED
cub repo adopt APP-FOLDER --pattern SHARED

The copy is made under the name you give, as SHARED-base, SHARED-staging and SHARED-live, and its last line names the adopt command. If live waited for an approval where the setup came from, it waits for yours on your hub. It must come from a hub other than yours. A copy that fails leaves nothing behind. Adopt then makes your app from SHARED-base: it keeps your own values from your .env, takes the shared values for the rest, with their reasons, and takes what the shared setup changes next, with cub repo upgrade SHARED-base/app. A service the setup needs comes as a need, unmet until your hub has a provider for it.

A secret for live that no agent can read

A password, a key or a token is yours to set, in a terminal:

cub secret set APP KEY --variant live --change-desc "WHY"

With no =VALUE, the value is read from standard input, so that it is on no command line. It is kept in a Space of its own, APP-live-secrets, which no agent's key is given a right to: the agent that require-approval --agent made can change the base and propose, and cannot read it. The app's settings name the secret, never its value: KEY_FILE=/run/secrets/APP/KEY. Where the app runs, cub secret files APP --variant live --dir /run/secrets/APP writes each secret as a file readable by that user only, with a key from cub secret pull-key NAME APP --variant live --secrets. cub secret list APP --variant live names the secrets and who may read them, and never prints a value.

An agent asked to rotate a production password gives you the secret set command with the key's name, and asks for no value. The value ends up nowhere in its output or its files.

When you need the next step. Copy the app to a hub your team can reach when a teammate needs to approve a change, or when another machine or a CI job needs the settings while your laptop is unavailable. The steps below start from a hub you can already sign in to.

Step 3: your organization's ConfigHub

Priya's story. Priya leads the platform team. She wants everyone, and every agent, to work from one place, and wants no agent to change production without a person agreeing. Priya's team uses one organization on a shared hub on confighub.com, and both people have access to it. Amara signs in and copies her work up from her laptop. Then Priya gives each agent a service account and key of its own, which may change the base and ask for a change, but not approve one.

What you do.

  1. Sign in to your organization's shared hub: cub auth login.
  2. Copy your work up from the local hub. With your organization's hub as the context, run cub local copy --from-context MINI COMPONENT, where MINI is the local hub's context. If live waited for your approval on your laptop, it waits for your approval in your organization as soon as it is copied, and the copy says so. If your organization's hub refuses that, the copy fails, names the copy left without an approval, and prints the cub agent require-approval command that fixes it.
  3. Connect the two with cub local connect --to-context ORG. The local hub gets a service account and key of its own in your organization, with the right to read the work it copied up and to offer changes, and no more. From then on, new versions come down to your laptop with your changes kept, and a change you make on your laptop can be offered up, with cub local offer, for someone in your organization to take.
  4. Give each agent a key of its own, and require approval for production (approvals).

What you get.

When you need the next step. An agent that runs for days, on a cluster, beside other agents, raises new questions. Which of the agents on a node made a change? Can its key be stolen? How do you stop it at once?

Redis from the Workshop

Can you take a Workshop package to a shared hub and still tell which settings you chose and why? On 18 November 2026 we did this with the Workshop Redis example, published mini.17 and a disposable Kubernetes cluster.

WhereWhat we checked
Workshop → local hubWe pulled bitnami-redis:25.5.3 by digest, selected reuse-existing-secret and adopted its 14 rendered objects. We explicitly attached the original selection file and package digest before export. The Redis password stayed on the cluster.
Local staging → shared hubWe changed one field, the read-replica count from 3 to 2. All 14 objects in each copy matched after import into Kubara. The package selection matched byte for byte, and staging retained the reason on that field: “Keep two read replicas in staging to test failover without paying for a third.”
Waiting for approvalWe read the count and reason from shared staging and proposed the same change for the cluster. The owner saw only StatefulSet/redis-replicas/spec.replicas: 3 → 2. While it waited, live revision 2 held 3 and the Redis primary still reported three connected replicas.
After approvalThe owner approved base revision 4. Kubara promoted it to live revision 3. The file from mini pull matched that immutable revision byte for byte. We applied it with kubectl. Kubernetes showed one ready primary and two ready replicas. Redis answered PONG and reported connected_slaves:2.

The two StatefulSets and the three surviving pods kept their identities. We removed the cluster and the test resources on both local and shared hubs. The proposal and the owner's interactive approval used the same shared account. This run exercised manual Kubernetes delivery. Full run record · Original staging change and baseline · Independent local restore.

Step 4: agents that run unattended

Priya's story, continued. Priya's team runs a nightly agent on its GPU training cluster that adjusts the batch workers. Several agents share the nodes. The cluster already gives each workload an identity with SPIRE. Priya points the Claude plugin at the agent's identity, so the record of each change is signed by spiffe://example.org/ns/agents/sa/nightly-tuner, not by whichever node it ran on. One night the agent's changes look wrong. Priya takes the agent's rights away in ConfigHub, and removes its SPIRE registration. Its next request to the hub is refused. Once its certificate expires, any change it still makes is recorded but not signed, and the check fails, so Marco, on call the next morning, can see exactly what happened after she stopped it.

What you do.

What you get.

Where each step stops