You run a web app wired to Stripe, Supabase, and Resend Mail. Keep STRIPE_MODE=test, SUPABASE_SSL_MODE=require, and MAIL_DELIVERY_MODE=sandbox explicit in staging while gating live billing, database pool limits, and production email delivery behind your approval.
You need: the local hub, unpacked, with starters switched on (starters/stripe.yaml, starters/supabase.yaml, starters/resend-mail.yaml, plus starters/openai.yaml and starters/nono.yaml shipped in 0.11.1-mini.48).
| By hand | Ask your agent | |
|---|---|---|
| Connect the app | cub repo adopt shop-addons | "Connect shop-addons with Stripe, Supabase, Resend, or OpenAI starters; keep staging in test/sandbox mode and hold production for my approval." |
| Guard a sandbox run | confighub mini exec --app shop-addons --mode test --conn stripe=test:env://STRIPE_TEST_KEY --capture -- CMD | "Boot my test command in --mode test, refuse any live keys, and capture tuned settings." |
| Change a setting | Edit shop-addons/.env, then cub repo upload shop-addons --change-desc "Raise mail rate limit for launch" | "Raise MAIL_RATE_LIMIT_PER_MIN from 30 to 120 for launch and hold production for my approval." |
| Approve production | cub inbox approve BASE/ORDER (step 4) | You approve it yourself. |
| Undo | cub repo rollback shop-addons-live --change-order BASE/ORDER --reason "Return to 30/min after launch" | "Undo the mail rate limit increase in production; return to 30 per minute." |
Staging stays on test billing and sandbox email, production changes only when you approve, and cub secret pull writes production's approved settings where the app reads them.
Without ConfigHub: an agent editing .env directly can flip STRIPE_MODE or MAIL_DELIVERY_MODE across environments with no approval gate and no record of why.
The rest of this page is the full version: every command for staging and live add-on settings, moving the setup to a shared hub, what an agent leaves to you, and what has been tested.
For a person following along in a terminal.
The local hub, unpacked as installing the local hub shows. For step 6 you also need a shared hub context (shared).
MINI is the unpacked package folder):
export MINI=/absolute/path/to/unpacked-confighub-mini
export PATH="$MINI/bin:$PATH" CUB_MINI_STARTERS="$MINI/starters"
cub plugin install "$MINI" >/dev/null
cub local start --use
export LAPTOP=$(cub context get -o jq=.name)shop-addons folder with explicit Stripe, Supabase, and Resend settings:
mkdir shop-addons
cat > shop-addons/.env <<'EOF'
STRIPE_MODE=test
STRIPE_CURRENCY=usd
SUPABASE_POOL_MAX=10
SUPABASE_SSL_MODE=require
MAIL_DELIVERY_MODE=sandbox
MAIL_RATE_LIMIT_PER_MIN=30
EOF
printf 'STRIPE_MODE=test\nMAIL_DELIVERY_MODE=sandbox\n' > shop-addons/.env.stagingshop-addons into the local hub so base, staging, and live copies are created with defaults and plain-English reasons, then approve the initial production revision:
cub repo adopt shop-addons
cub inbox approve shop-addons-base/adopt --note "Initial add-on settings for production" --yes
cub secret pull shop-addons --variant live --dir shop-addons-runningMAIL_RATE_LIMIT_PER_MIN to 120 for launch, upload with a reason, inspect cub inbox list, and approve the exact order:
sed -i.bak 's/MAIL_RATE_LIMIT_PER_MIN=30/MAIL_RATE_LIMIT_PER_MIN=120/' shop-addons/.env && rm -f shop-addons/.env.bak
UPDATE=$(cub repo upload shop-addons --change-desc "Raise mail rate limit for launch")
UPDATE_ORDER=$(printf '%s\n' "$UPDATE" | sed -nE 's/^.*mini approve (shop-addons-base\/upload-[a-z0-9-]+)[[:space:]]*$/\1/p')
cub inbox list
cub inbox approve "${UPDATE_ORDER:?Review the update first}" --yes --note "Approved launch mail limit"
cub secret pull shop-addons --variant live --dir shop-addons-runningcub repo rollback and approve the rollback order:
ROLLBACK=$(cub repo rollback shop-addons-live --change-order "${UPDATE_ORDER:?Run the update first}" --reason "Return to 30/min after launch")
ROLLBACK_ORDER=$(printf '%s\n' "$ROLLBACK" | sed -nE 's/^.*mini approve (shop-addons-base\/upload-[a-z0-9-]+)[[:space:]]*$/\1/p')
cub inbox list
cub inbox approve "${ROLLBACK_ORDER:?Review the rollback first}" --yes --note "Back to 30/min"
cub secret pull shop-addons --variant live --dir shop-addons-runningshared context), keeping every setting, reason, and the live approval gate:
export PREFIX="${WALKTHROUGH_PREFIX:-$USER-}"
export TEAM_APP="${PREFIX}shop-addons"
cub --context shared mini copy --from-context "$LAPTOP" shop-addons --name "$TEAM_APP"
cub --context shared unit data app --space "$TEAM_APP-live"shop-addons/.env files stay untouched):
cub space delete --space shop-addons-live,shop-addons-staging,shop-addons-base,shop-addons-file-proposals --recursive
cub component delete shop-addons
cub changeworkflow delete --space workflows shop-addons-live-approval
cub changeworkflow delete --space workflows shop-addons-file-reviewIn the shared hub, delete $TEAM_APP-live, $TEAM_APP-staging, $TEAM_APP-base, component $TEAM_APP, and workflow $TEAM_APP-live-approval. Locally, cub local uninstall --delete-data removes the local hub.
shop-addons/.env untouched, shop-addons-running/app.env holding approved production settings, and your team's shared hub gating live billing, database, and email changes behind owner approval.
For an AI agent doing these jobs for a person:
cub repo adopt shop-addons. Keep STRIPE_MODE=test and MAIL_DELIVERY_MODE=sandbox in staging, and hand the person the exact BASE/ORDER from cub inbox list to approve production.shop-addons/.env, run cub repo upload shop-addons --change-desc "WHY", and hand the person the exact BASE/ORDER to approve.shared context and verify RequireChangeWorkflow is true without modifying production.Never approve a production change order yourself, and never write raw Stripe secret keys, Supabase service-role tokens, or Resend API keys into plain-text non-secret settings.
The three starters, stripe, supabase and resend-mail, are checked by the package's own tests before each release. End-to-end delivery against external Stripe, Supabase, and Resend accounts has not been run in CI yet; these tasks verify the local hub, staging/live isolation, and owner-approval gate with no external credentials.
Connect shop-addons with the Stripe, Supabase, and Resend starters; keep staging in test/sandbox mode and hold production for my approval.
Raise MAIL_RATE_LIMIT_PER_MIN from 30 to 120 for launch in shop-addons and hold production for my approval.
Undo the mail rate limit increase in shop-addons production; return to 30 per minute.
Copy shop-addons to our team's shared hub (context
shared) asTEAM_APP, keeping production behind my approval.
Remove shop-addons from this computer's local hub now that the shared hub holds it. Keep my files.
This proves: the add-on starter settings were stored in the local hub and copied to a shared hub with production waiting for owner approval, while staging kept test billing and sandbox email defaults. External Stripe, Supabase, and Resend API delivery is not run here.