Bootstrap and deploy the PocketBrain Cloudflare Worker with KV namespace and encryption secret setup. Use when asked to perform first-time worker setup, configure AI_SESSIONS KV, set KEY_ENCRYPTION_SECRET, rotate worker keys, or troubleshoot worker bootstrap authentication and config failures.
Bootstrap worker infrastructure safely and verify deployment prerequisites before release.
references/bootstrap-prereqs.md.CLOUDFLARE_API_TOKEN and KEY_ENCRYPTION_SECRET.CLOUDFLARE_ACCOUNT_ID only when worker/wrangler.toml still has placeholder account ID.NODE_ENV=production npm run config:check:worker.npm run worker:bootstrap.worker/wrangler.tomlreferences/key-rotation.md.Return:
worker/.dev.vars or any live secret material.KEY_ENCRYPTION_SECRET_PREV until the active session TTL window is covered.