Skip to content
ConfigHub for coding agents

HANDS-ON LAB · ~2-5 MIN FOR EXERCISE 1 · ~20 MIN FOR ALL THREE

Three exercises to try first

Start locally in any folder with one setting (2-5 minutes), then add the local hub to test an isolated preview and link a second app to shared defaults (~20 minutes total).

Setup: add the MIT plugin repo once (macOS & Linux; Codex CLI tested on macOS)
Terminal (one-time install)
claude plugin marketplace add confighubai/confighub-mini-plugin && claude plugin install confighub@confighub

MIT-licensed plugin repo with free precompiled local hook binary (16-25 ms/hook, verified against bin/SHA256SUMS for archive integrity). Stores history locally in ~/.confighub with zero ConfigHub network calls; first folder use reads the last 30 days of local Claude Code transcripts (injected context goes to your model provider; opt out with CUB_MINI_EARLIER_SESSIONS=0 or CUB_MINI_MODE=team). Add --scope project to install for one repository only.

Came from K8s Workshop? Run claude plugin marketplace list first and stop if a confighub marketplace already exists (migration note). Security review · Check an existing app

Terminal (release branch v0 install)
[ -d "$HOME/confighub-mini-plugin" ] || git clone --depth 1 --branch v0 https://github.com/confighubai/confighub-mini-plugin "$HOME/confighub-mini-plugin"
"$HOME/confighub-mini-plugin/plugins/confighub/bin/confighub" mini codex-setup

Clones release branch v0 (bin/confighub checks bin/SHA256SUMS for archive integrity before unpacking; compare against GitHub Releases for release provenance or pin a commit). Open codex, run /hooks, approve hooks, and repeat setup after updates.

Tested on macOS; records apply_patch edits post-edit rather than holding before write. Manual clone, updates & removal · Release SHA256SUMS · Security review

EXERCISE 01 · PLUGIN ONLY · LOCAL-ONLY (ZERO CONFIGHUB SERVERS)

Find out why a setting changed, across chats or from last week

Git shows an edit only after you commit. The plugin keeps the request with supported config edits right away in ~/.confighub/agent-changes. Already ran the 2-minute check on Overview? Tick Exercise 1 below and jump to Exercise 2.

Already have a mystery setting in .env.local? If Claude Code edited it in the last 30 days (and transcript backfill is enabled), open claude in that repo and ask:

Why did NEXT_PUBLIC_API_URL (or another setting in .env.local) change last week? Show me the old value, new value, and what was asked.

Named secret values are redacted; unnamed secrets pasted directly into chat prompts are kept as written in local history. If no reason was ever stated in chat, ConfigHub says so plainly instead of guessing. Set CUB_MINI_EARLIER_SESSIONS=lazy for on-demand backfill, or 0 / CUB_MINI_MODE=team to disable transcript reading.

  1. Open claude / codex in any folder and ask for an uncommitted edit (uses app-config.json to skip Claude Code's .env prompt):

    Session 1 prompt
    Create app-config.json with {"cache": false}, then turn cache to true for Saturday's sale and leave it uncommitted.

    Prefer .env.local? Ask to create .env.local with CACHE=off, then set CACHE=on for Saturday's sale (approve Claude's one-time .env prompt).

  2. Close Session 1, open a fresh session in the same folder, and ask:

    Session 2 prompt
    Why is the cache on?

    ConfigHub supplies the recorded change when the agent opens app-config.json. Or run /confighub:why cache or /confighub:changes.

    Inspect the recorded change and prompt directly in Terminal: ~/.codex/confighub/bin/confighub mini changes.

Expected change record Recorded
File
app-config.json
Change
cache: false -> true
Recorded ask
"Create app-config.json with {"cache": false}, then turn cache to true for Saturday's sale and leave it uncommitted."
Location
~/.confighub (zero ConfigHub network calls)

Delete app-config.json, ask Claude to revert config edits, or run ~/.claude/plugins/marketplaces/confighub/plugins/confighub/bin/confighub mini undo when done.

Delete app-config.json or run ~/.codex/confighub/bin/confighub mini undo when done.

Status labels you will see across ConfigHub cards:

Recorded
Saved to cross-session memory; no owner action needed.
Waiting
Paused for your decision (cub mini approve <base>/<order>).
Drifted
Live host (Vercel, Fly, Unikraft) differs from approved settings.

More detail: Five-minute plugin guide · Published first-use stories · Measured runs

EXERCISE 02 · LOCAL HUB (CUB MINI) · ISOLATED PORT

Try a change in a running preview before shipping it

Testing a setting or reproducing a bug usually means touching the running app you rely on. After you confirm local setup, your agent downloads the free local hub (~300 MB binary + embedded Postgres on 127.0.0.1; no Docker, no account) giving your app three hub copies (base, staging, and production) plus temporary preview ports on 127.0.0.1: staging accepts agent edits freely while production waits for owner approval. On Claude Code, setup configures .claude/settings.local.json (which sets autoAllowBashIfSandboxed: true unless CUB_MINI_MODE=team).

  1. Choose folder type:

    Open claude / codex in an empty folder and ask:

    Ask your agent
    Build a small greeting app using ConfigHub. Give it a configurable greeting and run it locally.

    Confirm local setup when prompted.

    In a local Node HTTP app (node server.js on 127.0.0.1), ask:

    Ask in your existing app
    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.

    Confirm local setup when prompted, then jump to item 3 below.

  2. Start a fresh Claude Code chat in the same folder (loads the restricted proposal key from .claude/settings.local.json) and ask:

    Open the scoped Codex session using the run-codex path printed at the end of item 1 above, then ask:

    Ask your agent
    Try a warmer greeting in a preview and show me the preview link alongside staging.
  3. Open the local URL your agent returns. Close the chat, open a fresh session in the same folder, and ask:

    Ask in a later session
    Where's the preview I left running? What does it serve?

    The fresh session finds the running preview port and process without being given the URL. Ask your agent to stop the preview when finished.

Expected environment rail · greeter Active preview
Preview
GREETING="Welcome!" (own port)Active
Staging
Hello, world! (agent editable)In sync
Production
Hello, world! (self-approval refused)Protected
Expected environment rail · existing app Active preview
Preview
Evening collection (own port)Active
Running app
Original heading unchanged on diskIn sync
Production
Self-approval refused until you approveProtected

Tracked app files, staging, and production stay untouched (local setup writes only .claude/settings.local.json and .git/info/exclude) while the preview serves on its own loopback port.

Or reopen Friday's production settings as a preview:

Open Friday's production settings as a new preview.

Runs today's code against saved Friday settings without touching live production (more preview examples · published run).

Guides: New app in Claude Code · Attach an existing app · Preview & second app in Codex

EXERCISE 03 · SHARED DEFAULTS · PER-APP OVERRIDES

Give a second app the greeting you just tested

Copied templates drift on day two. Linking a second app to shared ConfigHub defaults lets fixes roll out to both apps while each app keeps its own overrides and production gate. (Chose "Existing Node app" in Exercise 2? Adapt the prompt below from greeting to your app's heading setting.)

  1. In your first app's chat from Exercise 2, promote the preview greeting to shared defaults:

    Ask in App 1
    Make the preview greeting our shared default for welcoming visitors. Put it in staging and show me what the app serves there.
  2. Open a new claude / codex chat in a new empty folder (for example catalog) and link it:

    Ask in App 2 (catalog)
    Build a small catalog service linked to my first app's ConfigHub defaults so it inherits the greeting while keeping its own port and title. Run it with staging settings and show me the response.
  3. Update the shared greeting once and verify both apps update without overwriting app overrides:

    Update shared default
    Update the shared greeting to "Welcome back!" and show me both staging apps' responses so I can see they both picked it up.
What to verify Linked inheritance
  • Both staging apps serve "Welcome back!" with zero duplicated greeting keys in catalog's local config.
  • Each app keeps its own port, title, and separate production approval gate.
  • Matches the two-app shop & cart Fly example: shared support hours updated both apps while shop stayed coral and cart stayed indigo.

Second app in Claude Code · Second app in Codex · Browse Config Starters

Try it on a sandbox or live host

Compare isolation models, then choose a host below to copy the exact prompt and inspect what ConfigHub records.

Local settings preview
Isolates app settings and local port only (not external DBs); preview settings and reasons survive fresh chats.
Daytona cloud sandbox
Full disposable container/VM; --mode test blocks sk_live_* before boot and captures winning values after container deletion.
Unikraft microVM
Exact same immutable image in staging and prod; config changes promote behind owner approval with zero image rebuild.
nono OS sandbox + scoped keys
Restricts local files, shell, and APIs; agent updates staging freely while the hub refuses production self-approval.
Daytona · Keep the winning experiment after deleting the sandbox Captured proposal
Ask your agent
The queue spiked. In a disposable Daytona sandbox, run the same jobs at 120 and 240 per batch. Show me the difference and save the change and its reason for review before you delete the sandbox.
1. Sandbox
Tuned BATCH_SIZE: 120 -> 240 in Daytona Cloud.
2. Teardown
Container and ephemeral disk deleted.
3. Hub state
Proposal preserved: staging=240, prod=120, reason: "Queue spike load test".

Daytona quick guide

Vercel · Try a shorter sale cache in preview while live stays protected Prod gated
Ask your agent
Prices change more often during the sale. Try a 30-second price cache in a Vercel preview. Show me the cache headers from the preview and the live shop. Leave the production change for me to approve.
Preview
Returns max-age=30 on Vercel Hobby preview.
Production
Remains max-age=60; ConfigHub refuses pending prod delivery until approved.

Vercel quick guide

Fly.io · Share settings across Machines and gate production Approval command
Ask your agent
Set APP_SUPPORT_HOURS to Daily in staging on Fly. Propose the same change for production and show me the approval command.

No Fly app yet? Ask Claude to deploy a 1-endpoint Rails app with APP_SUPPORT_HOURS = "Weekdays" under [env] in fly.toml, then run /confighub:staging. Fly quick guide

Unikraft · Rehearse an incident notice on the exact same image Same image digest
Ask your agent
Checkout is delayed. Show me our incident notice on Unikraft staging using the same image as production. Read both notices back to me. I'll decide whether to publish it.
Staging
Serves checkout delay banner.
Production
Still serves "Orders ship as usual" on the exact same image until approved.

Unikraft quick guide

Heroku · Read-only drift check before migrating to Fly or Vercel Read-only compare
Ask your agent
Compare my Heroku app HEROKU_APP with Fly app FLY_APP without changing anything, and show me the safe secret copy command.

Runs cub mini deliver --compare read-only from the CLI without starting a hub or touching either host, and outputs a secret copy command that keeps secret values off your terminal and third-party servers. Heroku quick guide

Adding Stripe, Supabase, Resend, AWS SSM, or Temporal? See Config Starters & recipes.

When your team joins

Export your current settings, overrides, and written reasons from the local hub to a shared hub on confighub.com or self-hosted Helm (earlier laptop-only revisions stay on the laptop; teams needing continuous day-1 audit history should start directly on a shared hub; see Shared Hub & SSO · graduation guide · cub mini vs plain cub).

Using Redis from the Kubernetes Workshop? Follow the Redis package from local hub to shared hub.

Where to go next

Starters & add-ons
20 starters & runtime guides for Vercel, Fly, Daytona, Unikraft, Stripe, Supabase, Resend, AWS SSM, Temporal, and nono. Browse Starters
25 first-use scenarios & 29 walkthroughs
Inspect published runs from empty folder to Friday replays, team Slack approvals, and fleet governance. Explore Stories
Integrations & guardrails
GitHub PR checks, HashiCorp Vault, OpenTelemetry, workload signing, and agent tool guardrails. See Integrations