What Actually Happens During an Agentic Deployment: Cursor Build Live Apps and the Death of the Manual Pipeline

2026-12-05来源 dev.toEnglish

Agents made code cheap to write. But as Cursor put it on Nov 5, 2026: "most apps and tools that users build never make it off of localhost." The gap isn't writing code -- it's the deploy pipeline: database, auth, hosting, secrets, security reviews, DNS. Cursor's Build Live Apps closes that gap inside the editor using a cloud agent.

The Pipeline Flow

User prompt → Cloud Agent (Temporal-orchestrated VM) → Scaffolds App → Auto-provision Postgres (if needed) → Cursor SSO auth → Prompt for secrets (agent-blind) → Preview in Editor Tray → User picks URL → Explicit Publish → Security Gate (4 deterministic + AI review) → Deploy to Dedicated Hosting Account (Vercel for Platforms) → Live URL + Sharing Controls

Only works via cloud agents (cursor.com/agents or Desktop → Cloud dropdown). Local agents not supported.

What the Agent Actually Scaffolds

Be explicit in your prompt:

# In a cloud agent session: "Build an app that shows our weekly signups as a dashboard, with a chart and a table I can filter by plan." 

The agent creates a typical Next.js + TypeScript structure:

my-app/ ├── app/ │ ├── dashboard/ │ │ ├── page.tsx # Server component, fetches from Postgres │ ├── api/ │ ├── signups/ │ ├── route.ts # API route, uses Neon/Postgres client │ ├── layout.tsx ├── components/ │ ├── SignupChart.tsx # Recharts / Tremor chart │ ├── SignupTable.tsx # TanStack Table with filtering ├── lib/ │ ├── db.ts # Postgres connection (auto-configured) │ ├── auth.ts # Cursor SSO helpers ├── .cursor/ │ ├── environment.json # Dockerfile for Build caching ├── package.json ├── tsconfig.json └── next.config.js 

Database: If the app needs storage, Cursor provisions a Postgres instance automatically. Connection string injected via environment variables -- you never see it.

Auth: Team/private apps sit behind Cursor SSO. Recipients sign in with Cursor. Individual plans can publish public (no auth).

Secrets: When the app needs external resources (data warehouse, Stripe, etc.), the agent prompts you for the secret. The agent never sees the value -- it goes straight to the Apps dashboard. Team admins manage team secrets; users can add personal secrets.

The Security Gate: 4 Checks You Cannot Disable

Every publish runs four deterministic checks -- always on, even if the AI review is turned off:

Check What It Blocks Example
Secrets in app files API keys, access tokens in source const API_KEY = "sk_live_..."
Credential files Private keys, service-account keys, auth tokens firebase-admin-sdk.json, id_rsa
No .env files Environment files excluded from bundle .env, .env.local, .env.production
No source maps Source maps stripped so visitors can't reconstruct source *.map files removed

On top: An AI security review reads the app's files and blocks serious issues. Team admins can add custom instructions to the review prompt -- they can add rules, not remove Cursor's built-in checks.

// This WILL block publish: // lib/stripe.ts export const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!); // If STRIPE_SECRET_KEY is hardcoded instead of env var → blocked // This passes: // lib/stripe.ts export const stripe = new Stripe(process.env.STRIPE_SECRET_KEY); // Secret injected at deploy time via Apps dashboard 

If a check fails, the agent tells you what to fix. Nothing goes live until checks pass AND you explicitly publish.

Hosting Model: Vercel for Platforms, Isolated Accounts

  • Each app deploys to a dedicated hosting account Cursor creates for your team (or you on individual plan)
  • Accounts are isolated from every other team/user
  • Infrastructure: Vercel for Platforms (per The New Stack) -- no separate Vercel account needed
  • Legal reality: Hosting is "separate from, and not part of, Cursor's services" -- provided "as is" and "as available"
  • Cursor can revoke/suspend subdomains or apps for terms violations, business, financial, or legal reasons

What Cursor hasn't published (as of Nov 2026):

  • Supported frameworks/runtimes
  • Postgres version, backup policy, scaling behavior
  • Bandwidth quotas, storage limits
  • SLA / uptime guarantees
  • Custom domain support (URL changeable later, but no custom domain flow shown)
  • Regions
  • Hosting/database pricing (only plan gate: Premium $30/mo+ for cloud agents)

Traditional CI/CD vs Agentic Deployment

Aspect Traditional CI/CD Cursor Agentic Deployment
Trigger Git push / PR merge Natural language prompt to cloud agent
Environment YAML-defined (GitHub Actions, GitLab CI) Pre-built VM with Builds (cached deps)
Database Manual Terraform / CloudFormation / Neon CLI Auto-provisioned Postgres per app
Auth Manual setup (Auth0, Clerk, custom) Cursor SSO built-in
Secrets GitHub/Vercel/AWS secrets managers Apps dashboard (agent-blind)
Security Separate SAST/DAST tools in pipeline 4 deterministic checks + AI review at publish
Deploy Target Vercel/Netlify/AWS/Cloudflare (you manage) Cursor-managed isolated hosting account
Rollback Git revert + redeploy Unpublish via dashboard / redeploy via agent
Audience Developers Developers + non-technical (sales, ops, legal, finance)

Cursor's own internal use cases (from changelog):

  • Internal ops tools: event registration, account assignments, desk seating
  • Multimedia presentations: slides, videos, interactive demos
  • Training/onboarding experiences for new hires
  • Live dashboards for sales teams
  • Portals to manage engineering services

The Agent Infrastructure Under the Hood

Cursor's cloud agents run on dedicated VMs with isolated environments. Key architectural decisions (from Cursor's Jun 2026 blog):

  • Work-stealing → Temporal: Early beta used work-stealing (fragile, ~1 nine reliability). Moved agent loop to Temporal for durable execution.
  • Decoupled components: Agent loop (Temporal) ≠ VM state ≠ Conversation state (append-only storage with streaming).
  • Builds for fast starts: Background Build process clones repos, installs deps, warms caches. Agents boot from latest successful Build.
  • Two-phase environment: install command runs during Build (deps, codegen, compile). start command runs at agent start (Docker, DB, tunnels).
// .cursor/environment.json { "dockerfile": "Dockerfile", "install": "npm ci && npm run build", "start": "npm run dev" } 

Agent SDK (Oct 2026): Define agents as code → agent-sdk deploy → runs on Cursor infrastructure as single Node process. Managed agents: Bugbot, Security Reviewer, Rollouts.

Caveats & Trade-offs

  • Vendor lock-in: Hosting, database, auth all bundled. No eject path documented.
  • No SLA: "As is" hosting -- don't put business-critical tools here yet.
  • No custom domains: Subdomain-only (e.g., my-app.cursorapp.dev). Can change URL later, but no CNAME flow.
  • Pricing opacity: Plan gate known (Premium+), but hosting/DB costs unpublished.
  • GitLab not ready: "Coming soon" with no date.
  • Framework black box: You don't choose Next.js vs Remix vs Astro -- agent decides.
  • Team admin power: Admins see all secrets, can unpublish any app, approve blocked publishes (except malicious code/secrets).

Quick Takeaways

  1. Agentic deployment = prompt → live URL. The pipeline (scaffold → DB → auth → host → secure → deploy) runs inside a cloud agent, not a YAML file.
  2. Security gate is the publish button. Four deterministic checks + AI review run at publish time, not in a separate pipeline stage.
  3. Agent-blind secrets is a real pattern: user enters secret in dashboard → injected at deploy → agent never sees the value.
  4. Hosting is Vercel for Platforms under the hood, but legally separate from Cursor -- "as is", revocable, no SLA.
  5. Not for production backends yet. Strong for internal tools/prototypes behind SSO. Unknown limits, no custom domains, no eject.
  6. Non-technical users can ship. Sales, ops, legal, finance building internal apps is the stated use case -- not just developers.

References

原文:https://www.a8q9.cn/en/article/what-actually-happens-during-an-agentic-deployment-cursor-build-live-apps-and-th-e928c6.html

相关文章