sandboxRouter
← Providers

E2B

provider: "e2b"

Per second; free Hobby tier ($100 one-time credit, 1-hour sessions, 20 at once); Pro $150/mo for longer sessions.

The default image runs at 2 vCPU / 0.5 GB whatever size you ask for. A bigger size needs your own image (image.e2b), so without one the router only sends it work that fits.

List price per hour

2 vCPU · 0.5 GBdefault image$0.109
1 vCPU · 2 GBneeds your own image at this size$0.083
2 vCPU · 4 GBneeds your own image at this size$0.166
4 vCPU · 8 GBneeds your own image at this size$0.331
8 vCPU · 16 GBmax 8 GB memory
16 vCPU · 32 GBmax 8 vCPU
32 vCPU · 128 GBmax 8 vCPU
Source
e2b.dev, 2026-11-04 (an estimate, not a bill)
Billing
the size you ask for, while it runs
Plan
none needed

Adapter

Supports
Exec + streaming · Files · Pause · Custom image · Preview URLs · Background commands · Desktops
Max size
8 vCPU · 8 GB
Computers
linux
Routing
Chosen when it's the cheapest fit, or as a fallback

Measured on real accounts

Real-account check
14 / 14 steps
2026-11-13
Median create
559 ms
2 vCPU / 4 GB · 100 requests · 2026-11-18
Ready
100%
Excluding recorded limit refusals
Measured resources
2 vCPU / 0.5 GB
Requested 2 vCPU / 4 GB on the default image · 2026-11-06

The cost run had no billing API to query. A provider dashboard or invoice can supply usage charges.

Real-account check, step by step

14 of 14 steps passed on a real account, 2026-11-13 (v0.7.0).

  • createpassed
  • exec: stdout, stderr, exit codepassed
  • exec: env and cwdpassed
  • exec: UTF-8 outputpassed
  • exec: streamingpassed
  • files: binary round-trippassed
  • files: 1 MB round-trippassed
  • files: missing file is an errorpassed
  • files: visible to commandspassed
  • exec: command timeoutpassed
  • exec: timed-out command was stoppedpassed
  • pause and resumepassed
  • killpassed
  • killed sandbox is gonepassed
setup
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({}, { provider: "e2b" });
await sbx.exec("uname -a", { onStdout: (c) => process.stdout.write(c) });
await sbx.kill();

sandboxRouter isn't affiliated with E2B. Prices come from its public pricing page and results from our own runs. Something wrong or out of date? Report a correction.