ConfigHub · Durable config for coding agents
Docs / examples/walkthroughs/starter-unikraft.md Source on GitHub →

Put an approved setting live on your Unikraft Cloud service

Your app is built from its Kraftfile and already runs on Unikraft Cloud, with one or several instances. Connect that service as it is, let your coding agent change staging, and approve each production change. Approving rolls the service over to new instances of the same image with the approved settings, so no image is rebuilt.

1-Screen Claude Code Card — paste in Claude Code: "Turn on the incident banner in Unikraft staging on the same image digest and propose it for production."

╭─ ConfigHub · Unikraft 1:1 rollover ────────────────────────────╮
│ ├── staging     ✓ updated by agent   INCIDENT_BANNER="Delayed" │
│ └── production  ⏳ waiting for you   INCIDENT_BANNER="Normal"  │
│                 ├── 1:1 live target: Unikraft service (digest) │
│                 └── your gate: cub inbox approve APP            │
╰────────────────────────────────────────────────────────────────╯

Quick start

You need: Claude Code with the ConfigHub plugin, the unikraft command signed in (unikraft login), and your app's folder, whose service runs one or more instances of an image pinned by digest.

By handAsk your agent
Connect your service/confighub:staging --unikraft SERVICE in the app's folder, in Claude CodeYou type it yourself: naming the service is your step.
Change a settingcub repo set APP KEY=VALUE --variant live --change-desc "Why""Turn on the incident banner in production. I'll approve it."
Approve itcub inbox approve APP; the first time, it also asks once whether production goes to the serviceYou approve it yourself.
Undocub repo rollback APP --reason "Why", then cub inbox approve APP"Propose turning the banner off again. I'll approve it."

The first step downloads the local hub if it is not there, and reads only. Credentials stay in the instance and never enter the hub; each approval hands them to the new instance as they are.

Without ConfigHub: your agent starts a new instance with unikraft instances run -e ... itself, production included, and the next session has no record of why.

cub is ConfigHub's command-line tool. /confighub:staging downloads it with the hub, and the commands it prints give the full path to cub, so you can paste them as they are.

Deeper dive

The rest of this page is the full version: what the first step reads and leaves on Unikraft, the banner demo with its own image and a scoped delivery reader, the move to a shared hub, what an agent leaves to you, and how this was tested.

Show the full walkthrough

Human

Your own service

  • /confighub:staging --unikraft SERVICE asks the unikraft command for the service, which must be listed under that name with one or more running (or standby, when there are several) instances that agree on their settings. Name it as METRO/SERVICE when two metros have a service of that name. Production starts from the environment the instances run with. If they run with no environment of their own, production starts from the Kraftfile's env:, which unikraft build puts in the image. Staging starts with the same settings. The step writes nothing to Unikraft and no settings file. A folder with a Kraftfile and no service named is told the command to type.
  • Each approval starts new instances matching the service's instance count (using --replicas N-1 when there are several), of the same digest-pinned image the running instances use, with the approved settings and the rest of what the old instances ran with, and rolls the service over to them. A service whose instances disagree on their image or on non-managed settings is refused before anything starts. When every instance already holds what was approved, nothing starts. cub repo deliver APP --compare names any setting that differs (and which instance, when there are several), without its value.
  • Unikraft keeps an instance's settings with the instance, credentials included. Approving hands each credential the old instances run with to the new ones as it is. It goes from what Unikraft reports to the unikraft command's own environment, so it never appears in a command line, in what is printed, or in the hub. Every new instance is checked to hold it. A credential whose name the unikraft command reads for itself, such as HTTPS_PROXY, cannot be handed over that way: approving stops before starting anything and says to rename it.
  • Staging changes stay in the hub. To see them running, ask your agent to run the app with staging's settings.

The banner demo

Use an unpacked mini package containing the Unikraft starter. Use a new test hub and a disposable single-instance service in an organization where you can also delete the resources. The packaged example at examples/unikraft/README.md gives the provider setup and scoped reader commands.

Steps

  1. Build the example banner image, pin its digest and create the HTTPS service. Start the baseline instance with a blue banner. Save the service name, metro, pinned image and endpoint in app/.confighub-unikraft.json as shown in the packaged example.
  2. Import the running settings, seed and review the structured starter catalog, then connect your test app. A catalog review publishes the starter for later adoptions; a separate app approval authorizes delivery.
    export MINI=/absolute/path/to/unpacked-confighub-mini
    export CUB_MINI_STARTERS=on
    "$MINI/starters/addons/unikraft/run" --live --dir app import
    cub repo adopt app --name banner-catalog --live
    cub unit data unikraft --space starters-base
    cub variant approve starters-approved --all --note "Review packaged starter definitions"
    cub repo adopt app --name banner --live
    cub repo receipts banner --setup
  3. Set up the scoped reader in the packaged example. Try applying the pending banner-live/connect order. The adapter should refuse it and the endpoint should still return blue at baseline. Approve banner-live/connect from your account. Apply the live revision and check the endpoint returns blue and that revision.
  4. Propose green with cub repo set banner UNIKRAFT_BANNER=green --variant live --change-desc "Show the incident banner". Use the order printed by that command. Give the reader View and ViewChildren on banner-file-proposals so the adapter can verify the approval. Before approving, try delivery and check the endpoint still serves blue. Approve the order, read the new live head, deliver it and verify green and that revision over HTTPS.
  5. Restore blue with the same cub repo set command, this time setting UNIKRAFT_BANNER=blue and giving the reason for the rollback. Check that green stays live while the rollback waits. After approving the new order, deliver its exact live revision and verify blue over HTTPS.
  6. To move to a shared hub, export the app with cub local copy --to-file banner.tar.gz banner. Sign in to the shared hub and import with cub --context shared mini copy --from-file banner.tar.gz --name "$TEAM_APP". Use a unique name for this test. Verify that the destination requires a change workflow. Run cub --context shared mini require-approval "$TEAM_APP" --variant live --file-proposals to enable file proposals there. Make a separate destination reader with cub --context shared mini pull-key "$TEAM_APP-reader" "$TEAM_APP" --variant live and grant it read access to the destination's file proposals Space. Propose green in the destination's live variant with cub --context shared mini set. Check that the service still returns blue, then approve in the shared hub, apply the released revision using the destination reader and check green over HTTPS.
  7. Remove the Unikraft instance, service and image. Delete the disposable shared app, its proposal Space, workflows, invocation and reader account. Stop and uninstall the test mini.

Grant the reader access with cub space update "$PROPOSALS" --permission "View:serviceaccount:$READER_NAME" --permission "ViewChildren:serviceaccount:$READER_NAME", where PROPOSALS is the app’s file proposals Space and READER_NAME is its delivery service account. For the shared hub, add --context shared to the command. For each delivery, read the current live head with cub unit get app --space "$LIVE" -o jq=.Unit.HeadRevisionNum as the owner and use the separate reader to apply the exact order and revision. Set LIVE, ORDER, REV, READER_CONFIG and READER_CONTEXT to the app and hub you are delivering from:

CUB_CONFIG="$READER_CONFIG" CUB_CONTEXT="$READER_CONTEXT" \
  "$MINI/starters/addons/unikraft/run" --live --dir app \
  --space "$LIVE" --order "$ORDER" --revision "$REV" apply
curl -fsS "$(jq -r .endpoint app/.confighub-unikraft.json)"

Agent

For the person's own service, the person types /confighub:staging --unikraft SERVICE and approves; do neither for them. Propose production changes with cub repo set APP KEY=VALUE --variant live --change-desc WHY and give the person the approve line. Credentials in the instance carry over to each new instance by themselves; never read, copy or set them. If approving stops on a credential whose name the unikraft command reads for itself, such as HTTPS_PROXY, tell the person which setting to rename.

For the banner demo, keep the provider sign-in with the person or delivery service. Give the owner the order and wait for their approval. Before and after delivery, read the endpoint and report the banner, revision and pinned image.

Testing

The own-service path was run on a real local hub with a stand-in for the unikraft command and no Unikraft account. The stand-in answers in the forms the delivery program was run against on a real service. The run covered a service that Unikraft does not confirm, the first step reading only, credentials left out of the hub and the output, a change that waits and is not sent, the first yes refused in a Claude Code session, approval starting one new instance of the same image, a second delivery that starts nothing, a setting changed on Unikraft by hand, a credential in the instance carried to each new instance unseen, a service with three instances (two running, one on standby) rolling over to three new instances with its credential carried unseen and drift naming the differing instance, and an instance with no environment of its own starting from the Kraftfile.

For the banner demo, without a provider account, run the local stand-in test from the unpacked package:

"$MINI/examples/starter-check/check" "$MINI/starters/unikraft.yaml" --package "$MINI" --check-addon

It checks import, apply, compare and planted faults. The live run checks the approved catalog source, delivery refusal before each approval, and HTTPS readback after each delivery.

Connect this test app to the approved Unikraft starter and show the current blue banner.

Propose a green incident banner. Check that blue is still live, then deliver after I approve and show the revision the endpoint serves.

Propose restoring blue. Check that green is still live. After I approve, deliver the rollback and verify the new revision.

Copy the app to a shared hub. Show that production waits for my approval there, then use the destination reader to deliver the approved revision.

Remove this test service and its app after recording the result.

This proves: for your own service, production starts from what the service runs with and changes only after your approval, with credentials never read. For the banner demo, owner approval controls delivery of a specific revision to Unikraft Cloud. The HTTPS response verifies the live setting and revision after update and rollback. The shared-hub test also checks the destination's approval and reader.

Test results

Published confighub mini 0.11.1-mini.7 (macOS arm64), 14 November 2026. The downloaded archive matched the published checksum. The stand-in passed 38 of 38 checks, including all eight planted faults.

The live run used a disposable Frankfurt Unikraft Cloud service. The app selected starter version 1 from the hub's approved catalog at revision 2. The real owner approved production through ConfigHub. The delivery adapter refused each pending proposal, and the endpoint continued to serve the previous banner and revision.

StepObserved over HTTPS
Before first approvalBlue at the provider baseline
First approved deliveryBlue at local revision 3
Approved updateGreen at local revision 5
Approved rollbackBlue at local revision 6
Approved shared-hub deliveryGreen at hosted revision 5

An initial update attempt used a separate base order. That order released local revision 4 with the same blue value as revision 3. The retry used the order generated by cub repo set --variant live, which showed blue → green before the owner approved it. On the shared hub, the copied app required approval. The destination reader refused the pending green order, and the endpoint still served blue at local revision 6. After the owner approved the hosted order, the destination reader delivered hosted revision 5. HTTPS returned green at that revision, and the adapter receipt matched the SHA-256 of the released settings. The service had one running instance on the original pinned image (sha256:d7880421670ab27fb7e3a7bf8f32b2b86a5442259614b9bfd240cf505a798f47). A separate compare reported unchanged. The run removed the Unikraft instance, service and image, the shared app and its approval resources, and the local test hub.

Two Claude Sonnet 5.5 pilots with the Claude plugin ran a local rehearsal of the packaged stand-in contract. Both passed the result check (2 of 2). The pilots exercised the stand-in only. Ten simulated readers noticed the result. One reported friction, and the Claude plugin showed no next-step offer.