What runs where
- Backend on Uncloud (
cms.mywebsite.com): one Rust container (~8 MB RAM) with a persistent/datavolume for embedded Turso and/media. Uncloud handles Caddy HTTPS and the WireGuard mesh in ~70 MiB RAM. - Shared Auth (
auth.mywebsite.com): Better Auth OAuth 2.1 (from mstack). Deployed once per cluster and shared across all your sites — or bundled via--profile with-authif this is your first site. - Site on Vercel (
mywebsite.com): plain Next.js reading live entries from/livewith'use cache', optimizing originals from/media/**via Vercel Image Optimization, and refreshing on signed webhooks.
1. Install the CLIs once
brew install psviderski/tap/uncloud && npm install -g vercel && vercel login
2. Hand the skill to your coding agent
Replace the domains with yours. Keep tokens in 1Password rather than shell config.
Prompt
Use skills/headcode-init/SKILL.md from github.com/headcodecms/headcodecms.
Deploy the Rust backend to my Uncloud cluster at cms.mywebsite.com (reuse existing auth service if present,
otherwise deploy auth at auth.mywebsite.com), deploy apps/base to Vercel at mywebsite.com,
wire HEADCODE_REVALIDATE_SECRET, push schema + seed, and run smoke.mjs.3. What the agent executes
- Runs
uc lsto detect whether anauthservice already exists on the cluster - Deploys
headcode(andauthif needed) viauc deploy -f compose.yaml - Generates a shared
HEADCODE_REVALIDATE_SECRETand setsHEADCODE_URLon both Uncloud and Vercel - Reads the one-time bootstrap invite from
/data/bootstrap-invite.txt(never logged to stdout) - Pushes your Zod-generated JSON Schema and seed entries into Turso
- Deploys
apps/baseto Vercel and runsnode apps/backend/scripts/smoke.mjsagainst/mcp
Done
mywebsite.com: your cached live website,/adminfor editorscms.mywebsite.com/mcp: Streamable HTTP MCP endpoint for connecting your AI
Full environment variables and compose options live in the README.