Learning resourcesReviewed · E2B

E2B sandboxes for Vercel Eve

This guide helps Eve agent developers use E2B cloud sandboxes, but the backend is experimental and Eve is in beta. It explains installation, reusable setup snapshots, persistent sessions and outbound network controls.

Researched 23 Nov 2026

In short.

This guide shows Eve agent developers how to configure E2B cloud sandboxes, but the integration and framework have APIs that may change. It covers the @e2b/eve-sandbox adapter, build-time snapshots, session reconnection and network restrictions, including policies the adapter rejects. Actual runtime behavior, performance, operating costs and licensing terms are not established by the page.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete selected page at [https://docs.e2b.dev/agents/eve.md], including its examples, experimental and beta notices, lifecycle caveats and network-policy warnings. Linked repositories, documentation, service consoles, licence files and downloadable packages are excluded. The captured source revision is sha256:66e7f0c1e411b8941ac3caa37f25bc52283375e37ab71f8b3a0a904957b2e296. No commands or examples were executed. Installation success, runtime behavior, isolation, persistence, network enforcement and startup performance remain unverified.

The overview

Resource and purpose

The resource is the E2B documentation page titled Vercel Eve [https://docs.e2b.dev/agents/eve.md]. It teaches how to connect an Eve agent to E2B through the @e2b/eve-sandbox package.

Eve is described as a framework for durable backend AI agents authored as files under agent/. The adapter implements Eve's public SandboxBackend interface, allowing its command and file tools to use E2B without changing or forking Eve.

Practical value

The guide provides a concrete starting point for an Eve project that needs cloud-hosted command execution and a persistent working filesystem. Its most useful details concern session recovery, reusable environment setup and network policies that cannot be translated safely.

The page claims startup of approximately 150 milliseconds from a snapshot or custom template. It supplies no measurement method, workload or benchmark results, so that figure should be treated as a documented claim. Production reliability and isolation strength remain unverified.

Who it serves

The guide serves developers building Eve agents that execute shell commands or manipulate files, particularly those seeking the same sandbox backend across development, CI and production. Custom E2B templates let those developers supply their own runtimes and dependencies.

Following it requires familiarity with Node.js package installation, environment variables and TypeScript configuration. Beginners receive a short integration example, while experienced developers get lifecycle hooks, policy translation rules and access to additional E2B SDK creation options.

Documented capabilities

The adapter connects Eve's bash, read_file, write_file, glob and grep tools to an E2B sandbox rooted at /workspace. It supports custom base templates, workspace seed files, bootstrap snapshots, session reconnection and automatic pause and resume.

Outbound network controls include allowing or blocking internet access, restricting hosts and injecting authentication headers at the firewall. The page describes header injection as keeping the injected secret outside the sandbox. It also exposes environment settings, metadata, timeout configuration and a createOptions escape hatch for E2B SDK options.

Using it

Prerequisites

The stated requirements are Node.js 24 or later, an Eve project and an E2B API key. Installation adds @e2b/eve-sandbox and e2b. The page specifies eve version 0.27 or later and ai version 7 or later as peer dependencies already present in an Eve project.

The backend reads E2B_API_KEY unless an apiKey option is supplied. The page does not establish an exact compatible package set, service quotas, regional availability or required account tier.

How it works

During Eve's build-time prewarm step, bootstrap prepares a sandbox, workspace seed files are written and E2B captures a reusable snapshot. New sessions fork that snapshot. Snapshot identity incorporates Eve's templateKey and a hash of relevant backend settings, including the base template, baked environment variables and network policy.

For later turns, the adapter first tries Eve's persisted sandbox ID, then a running or paused sandbox matching session metadata, then a fresh sandbox from the snapshot. The default timeout is 30 minutes, after which automatic pausing preserves the filesystem for resumption. The onSession hook runs once per durable session; reconnecting preserves the live network policy without reapplying the configured default.

Documented setup

Install the packages with npm i @e2b/eve-sandbox e2b and configure E2B_API_KEY. In agent/sandbox.ts, import defineSandbox from eve/sandbox and e2b from @e2b/eve-sandbox, then pass backend: () => e2b({ template: 'base' }) to defineSandbox.

The page recommends the factory form because it delays environment-variable access until first use and memoizes the backend so its prewarmed-snapshot cache survives across calls. Use agent/sandbox/sandbox.ts when also supplying files under agent/sandbox/workspace/. The documented development commands are pnpm dev or npx eve dev; their successful execution is not established here.

Example configuration

The lifecycle example starts from the base template, sets NODE_ENV to production and specifies a 30-minute timeout. Its bootstrap hook installs jq with sudo apt-get install -y jq, allowing subsequent sessions to inherit that setup through a snapshot.

Its onSession hook restricts outbound access to *.npmjs.org and github.com. This illustrates the distinction between reusable environment preparation and setup performed once for each durable session. The example is documentation, with no execution result supplied.

Assessment & evidence

Important limitations

The adapter is experimental and Eve is in beta, with changes to both APIs explicitly possible. Internet access defaults to allow-all. Applications needing restricted access must configure an appropriate policy.

Because E2B allow rules take precedence over deny rules, the adapter rejects subnet denials combined with a restricted allow-list, per-rule match conditions, forwardURL proxying and header transforms combined with a catch-all '*' allow rule. Header transforms require explicit host allow-lists.

Application shutdown does not terminate the sandbox. Setting autoPause to false changes timeout behavior to termination. The page describes filesystem persistence across idle periods but does not establish guaranteed retention duration or recovery guarantees after service failures.

Fit for a project

Based on the documented design, the integration is a plausible fit when an Eve project needs a reusable cloud environment and filesystem continuity between turns. Templates hold stable tooling, while bootstrap snapshots hold agent-specific preparation.

Fit depends on whether E2B can express the application's network rules and whether its lifecycle matches the application's cleanup expectations. Projects requiring conditional request matching or forwardURL proxying would need a different approach. The page provides insufficient evidence to choose this backend on speed, cost or production reliability alone.

Alternatives named in the page

The page names Eve's built-in vercel(), docker(), microsandbox() and justbash() backends. Its comparison describes local execution through a Docker daemon, local VM or simulated host shell, while E2B uses cloud microVMs.

The page says vercel() and microsandbox() offer domain policies, while docker() has all-or-nothing network control. These are limited comparisons within the guide; detailed compatibility, performance, pricing and operational tradeoffs for the alternatives are not established.

Evidence and its limits

The evidence is the complete documentation page at [https://docs.e2b.dev/agents/eve.md]. It supports the described configuration, prerequisites, option defaults, lifecycle semantics and stated policy limitations.

The page links a repository described as containing source code, unit tests and a runnable Next.js example. Those linked materials are outside scope, so their implementation and results are unknown. The supplied evidence contains no execution receipts, independent benchmarks or production reliability measurements.

Access & freshness

Costs and resource lifecycle

The page provides no prices, free allowances, billing rules or total-cost estimates for E2B, Eve or Vercel. Operating costs are unknown.

Reusable snapshots are described as avoiding repeated bootstrap installation work, but monetary savings are not quantified. The backend's shutdown() intentionally does nothing, leaving sandbox cleanup to timeout behavior, service expiry or explicit termination through the console or SDK. Charges for active sandboxes, paused state and stored snapshots are not established.

Licensing and reuse

The supplied page does not state licensing or redistribution terms for its text, the adapter or its dependencies. Commercial-use permissions, attribution requirements and rights to redistribute code or documentation therefore remain unknown.

It links the adapter repository [https://github.com/e2b-dev/eve-sandbox], but the repository's licence and any associated service terms are outside the supplied evidence. A source-code link alone does not establish reuse rights.

Version and freshness

The documentation was captured on 23 November 2026 at 17:22:22 UTC. It states minimum versions for Node.js, Eve and ai, but gives no exact @e2b/eve-sandbox release version, publication date or release history.

The experimental and beta notices make compatibility a material uncertainty. The captured page does not establish subsequent changes or compatibility with any particular installed dependency set.

Next steps for developers

Before adopting the integration, confirm compatible dependency versions, applicable licences and current service pricing. Compare the application's required outbound rules with the adapter's explicitly unsupported policies.

For a practical evaluation, verify command and file tools in a small Eve project, then check filesystem continuity after a timeout and confirm that restricted egress remains restricted after reconnection. Check snapshot refresh after configuration changes and explicit sandbox cleanup. These are suggested evaluations; their outcomes are unknown.

Evidence for this report

selected-page.txtselected · checked 2026-11-23