groundy
developer tools

Vercel Sandbox Gets CLI Access and Env Vars: A Push at the Agent Runtime Slot

Vercel's three Sandbox updates add CLI access, creation-time env vars, and directory scoping, positioning Sandbox as a managed agent runtime and deepening platform lock-in.

6 min · · · 4 sources ↓

Three changelog entries, one direction

In the last week of May 2026, Vercel shipped three Sandbox-related updates in quick succession: environment variable injection at sandbox creation time, the ability to spin up sandboxes directly from the vercel CLI, and CLI commands scoped to the local working directory. None of these are headline features on their own. Together, they add up to a product that wants to be the default execution surface for agent-generated code, not a serverless afterthought.

What changed

The three moves, taken from Vercel’s changelog:

  • Env vars at creation. Sandboxes can now receive environment variables at provisioning time rather than requiring a separate configuration step after startup. For agent workflows that spin up ephemeral execution environments, this removes a round-trip that previously had to be handled in application code.
  • Sandbox from the vercel CLI. The vercel CLI now supports launching sandboxes directly, moving the lifecycle of sandbox creation out of API calls embedded in user code and into the CLI/CI layer.
  • Directory-scoped commands. CLI commands can now be scoped to the local directory, reducing the configuration overhead for teams managing multiple projects or environments from a single workstation.

Why Sandbox matters now

Vercel now lists Sandbox as a top-level product on its homepage, alongside AI SDK, AI Gateway, Workflow, and BotID, all under the “AI Cloud” banner. That is a positioning choice, not an accident. Sandbox is being marketed as infrastructure for the agent era, not as a developer convenience for testing edge functions.

The timing aligns with Vercel’s broader infrastructure ambitions. The company raised a $300M Series F at a $9.3B valuation in September 2025, co-led by Accel and GIC, explicitly funding an expansion into AI-native infrastructure. In March 2026, Mitchell Hashimoto (HashiCorp co-founder, architect of Terraform and Vagrant) joined Vercel’s board, a hire that signals intent to build platform-grade infrastructure well beyond the frontend hosting that made the company’s name.

Vercel’s compute layer uses a Fluid compute model that handles multiple concurrent requests per instance while preserving serverless elasticity. That architecture matters here: Sandbox is not a bolted-on container runtime. It runs on Vercel’s managed compute infrastructure.

The competitive field

Vercel is not the only company chasing the agent runtime slot. The space has at least three credible alternatives, each with a different structural bet.

E2B is the most direct competitor. It is open-source and cloud-neutral: self-hostable on AWS and GCP via Terraform configurations in its GitHub repo, with Azure listed but not yet production-ready. E2B advertises over 1 billion sandboxes started and adoption by 94% of Fortune 100 companies. Those figures come from E2B’s own marketing and should be treated accordingly, but the architectural difference is real: E2B runs wherever you want it to run.

Modal [unverified] offers serverless GPU sandboxes and targets teams running ML inference and training workloads, a segment Vercel Sandbox does not currently address.

Daytona [unverified] positions itself as an open-source development environment platform rather than a pure sandbox runtime, closer to cloud IDE infrastructure than to ephemeral code execution.

Vercel SandboxE2B
ModelProprietary, Vercel-onlyOpen-source, self-hostable
CloudVercel-managedAWS, GCP; Azure in progress
IsolationVercel infrastructureSecure isolated sandboxes
Cold startNot disclosedNot disclosed
Session lengthNot disclosedNot disclosed
IntegrationNative Vercel/Next.jsSDK, REST API, CLI

The lock-in tradeoff

The strategic play is straightforward. For teams already deploying on Vercel, adding Sandbox is the path of least resistance. The CLI is the same CLI. The env vars live in the same dashboard. The billing is consolidated. The agent that writes code and the sandbox that runs it are one vendor apart.

Every layer added to the Vercel stack makes leaving harder. This is not a criticism; it is the platform business model executed competently. But teams evaluating agent runtimes should be explicit about what they are trading. The primitive they are buying, isolated code execution, is available from E2B as a cloud-neutral, self-hostable, open-source offering. If portability matters, whether for procurement rules, data-residency requirements, or the option to negotiate with cloud providers on your own terms, Vercel Sandbox is the wrong default.

For teams already committed to Vercel’s ecosystem, the calculus flips. Managing a separate sandbox provider means maintaining two integration surfaces, two auth patterns, two billing relationships, and two sets of operational runbooks. The convenience is real.

The security backdrop

In April 2026, Vercel disclosed a security breach that originated from a compromise of Context.ai, a third-party AI tool. The attacker accessed Vercel environments and environment variables that were not marked as “sensitive.” The breach is directly relevant here: an article about Sandbox env var handling lands three weeks after env vars were the specific asset exposed in a real incident.

The breach underscores a structural risk of consolidated platform infrastructure. When your deployment env vars, your sandbox env vars, and your agent secrets all live behind the same vendor’s IAM, a single compromise has wide blast radius. E2B’s self-hosted model does not eliminate this risk, but it gives teams control over where the perimeter sits.

Who should switch

Teams already running agents on Vercel infrastructure should evaluate Sandbox now. The CLI integration and env var injection remove enough friction to make it the practical default for Vercel-native workflows, and the Hashimoto board appointment suggests this product line will receive sustained investment.

Teams with multi-cloud requirements, data-residency constraints, or institutional preferences for open-source infrastructure should look at E2B first. The self-hosting path is documented, and the absence of vendor lock-in is the feature, not a missing convenience.

Teams running GPU-bound workloads or ML training pipelines should evaluate Modal [unverified] independently, since neither Vercel Sandbox nor E2B currently targets that segment.

The agent runtime slot is still open. Vercel is making a credible bid for it. But credibility and convenience are not the same as the right architectural choice for every team.

Frequently Asked Questions

How do E2B’s cold starts and session limits compare to Vercel Sandbox?

E2B advertises sub-200ms cold starts and sessions lasting up to 24 hours, backed by Firecracker microVM isolation. Vercel has not published cold-start, session-duration, or isolation-technology specs for Sandbox, so any performance comparison is speculative until Vercel discloses them.

What does the April 2026 breach imply for Sandbox env var handling?

The attacker accessed environment variables not classified as “sensitive.” Teams using the new Sandbox env var injection must explicitly mark each secret as sensitive to get elevated protection; any var left in the default classification shares the same exposure surface that was compromised in April.

Can teams run Vercel Sandbox outside Vercel’s own infrastructure?

No. Vercel’s compute layer runs on AWS, and Sandbox is confined to that managed surface. Teams with data-residency or procurement requirements that mandate on-premises, GCP, or Azure regions cannot use it. E2B’s Terraform-based self-hosting currently covers AWS and GCP, with Azure listed but not yet production-ready.

What would force a team already on Vercel to look elsewhere for agent runtimes?

Two near-term triggers: a second security incident that broadens the perceived blast radius of Vercel’s consolidated IAM, or a compliance mandate requiring workloads on a cloud provider Vercel does not support. Either breaks the convenience argument that keeps teams on Sandbox.

sources · 4 cited

  1. Vercel: Build and deploy the best web experiences with the AI Cloud vendor accessed 2026-05-27
  2. Vercel — Wikipedia primary accessed 2026-05-27
  3. E2B: The Enterprise AI Agent Cloud vendor accessed 2026-05-27
  4. E2B GitHub repository community accessed 2026-05-27