Pay-per-use E2B cloud sandbox proxy built with mppx. Deploys to Cloudflare Workers.
Create, manage, and execute code in isolated E2B sandboxes — pay with crypto via the Machine Payments Protocol.
| Route | Price | Description |
|---|---|---|
POST /sandboxes |
Dynamic | Create a sandbox (priced by vCPU, RAM, timeout) |
GET /sandboxes |
$0.0001 | List running sandboxes |
GET /sandboxes/:id |
$0.0001 | Get sandbox details |
DELETE /sandboxes/:id |
$0.001 | Kill a sandbox |
POST /sandboxes/:id/connect |
$0.01 | Connect/resume a paused sandbox |
POST /sandboxes/:id/pause |
$0.001 | Pause a sandbox |
POST /sandboxes/:id/refreshes |
Dynamic | Refresh sandbox TTL (priced by spec × duration) |
POST /sandboxes/:id/timeout |
Dynamic | Set sandbox timeout (priced by spec × timeout) |
POST /sandboxes/:id/snapshots |
$0.01 | Create a persistent snapshot |
GET /sandboxes/:id/logs |
$0.0001 | Get sandbox logs |
GET /v2/sandboxes/:id/logs |
$0.0001 | Get sandbox logs (v2) |
GET /sandboxes/:id/metrics |
$0.0001 | Get sandbox metrics |
pnpm install
# Local dev (set secrets in .dev.vars)
cp .dev.vars.example .dev.vars
pnpm dev
# Deploy
wrangler secret put MPPX_SECRET_KEY
wrangler secret put E2B_API_KEY
wrangler secret put FEE_PAYER_PRIVATE_KEY
pnpm deploy| Variable | Description |
|---|---|
E2B_API_KEY |
E2B API key from e2b.dev/dashboard |
MPPX_SECRET_KEY |
Secret key for mppx payment verification |
PAYEE_ADDRESS |
Wallet address to receive payments |
FEE_PAYER_PRIVATE_KEY |
Private key for gas sponsoring (optional) |
TEMPO_ENV |
tempo (mainnet) or moderato (testnet) |