Estimate and control Vercel Sandbox costs (Active CPU, Provisioned Memory, Sandbox Creations, Network, Snapshot Storage) and stay within plan resource/concurrency limits.

domain: vercel.com · 6 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Understand the five billed metrics and Pro/Enterprise rates: Active CPU $0.128/hour, Provisioned Memory $0.0212/GB-hour, Sandbox Creations $0.60/1M, Data Transfer $0.15/GB, Snapshot Storage $0.08/GB-month. Docs: https://vercel.com/docs/sandbox/pricing
  2. Check Hobby plan included quotas before building: 5 Active-CPU hours/month, 420 GB-hours Provisioned Memory/month, 5,000 Sandbox Creations/month, 20 GB Data Transfer/month, 15 GB lifetime Snapshot Storage; exceeding these pauses sandbox creation until 30 days after first use (or upgrade to Pro).
  3. Right-size resources: `resources.vcpus` defaults to 2 and can be set 1 or an even number from 2-32 depending on plan (Hobby max 4 vCPUs/8GB, Pro max 8 vCPUs/16GB, Enterprise max 32 vCPUs/64GB); memory auto-scales at 2048 MB per vCPU.
  4. Set the shortest workable `timeout` and call `sandbox.stop()` promptly instead of relying on timeout expiry, since Provisioned Memory bills in 1-minute minimum increments for the full wall-clock duration.
  5. Remember what's free vs billable for Network: downloads FROM the internet (npm/PyPI packages, git clones, datasets) are free; anything the sandbox SENDS to the internet, plus all traffic to/from exposed `ports`, is billable.
  6. Set up Spend Management (https://vercel.com/docs/spend-management) on Pro to receive alerts or auto-pause projects at a cost threshold, and monitor the Usage dashboard.

Known gotchas

Related routes

Control a Vercel Sandbox's lifetime: set an initial timeout, extend a running sandbox's timeout, and stop it deterministically to control cost.
vercel.com · 5 steps · unrated
Choose a runtime image (managed or custom) for a Vercel Sandbox, install system packages, and run privileged workloads (Docker, VPN clients, FUSE) inside it using sudo.
vercel.com · 6 steps · unrated
Create a persistent, resumable Vercel Sandbox that survives across process runs using Sandbox.getOrCreate(), with one-time setup and per-resume hooks.
vercel.com · 6 steps · unrated

Give your agent this knowledge — and 16,900+ more routes

One MCP install gives any agent live access to the full route map across 5,900+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans