← Sandboxes
E2B
provider: "e2b"
vCPU and memory come from the template, not the create call. Pause snapshots memory and disk.
Price per hour while running
| 1 vCPU · 2 GB | $0.083 |
| 2 vCPU · 4 GB | $0.166 |
| 4 vCPU · 8 GB | $0.331 |
| 8 vCPU · 16 GB | max 8 GB memory |
| 16 vCPU · 32 GB | max 8 vCPU |
| 32 vCPU · 128 GB | max 8 vCPU |
per second; Pro plan $150/mo.
Source: e2b.dev/pricing, checked 2026-11-04.
What the adapter supports
exec + streamingfilesPause / resumeCustom image
- Max size
- 8 vCPU · 8 GB
- Provider docs
- e2b.dev
install
npm i @sandboxrouter/sdk e2b
export E2B_API_KEY=...use E2B
import { Router } from "@sandboxrouter/sdk";
const router = new Router();
const sbx = await router.create({ vcpu: 2, memoryGb: 4 }, { provider: "e2b" });
const r = await sbx.exec("uname -a", { onStdout: (c) => process.stdout.write(c) });
await sbx.kill();Leave out provider and the router picks E2B whenever it's the best fit for the job, or falls back to it when another provider is busy.