The machine
Reach it and watch it from anywhere, and get it back if a server fails.5
The E2B SDK
Start it once and check on it days later.
- 1Run it in the background
Create the machine and start agent.py.
- 2Keep its ID
One string finds the machine again.
- 3Connect again
List what the machine is still running.
Sample8
from e2b import Sandbox # start it once, from any script sbx = Sandbox.create("your-agent") sbx.commands.run("python agent.py", background=True) agent_id = sbx.sandbox_id # keep this # days later, from any script sbx = Sandbox.connect(agent_id) print(sbx.commands.list()) # agent.py, still running
import { Sandbox } from 'e2b' // start it once, from any script const sbx = await Sandbox.create('your-agent') await sbx.commands.run('python agent.py', { background: true }) const agentId = sbx.sandboxId // keep this // days later, from any script const again = await Sandbox.connect(agentId) console.log(await again.commands.list()) // agent.py, still running
running
Pricing
Your waiting agent’s usage: $42.75 a month here, $120.89 on E2B.9
SealedBox What you pay above SealedBox24 h Longest session
SealedBoxNo limit$42.75
E2B24 h+$78.14$120.89
One agent with 2 vCPU and 4 GiB, kept running for a month. Waiting means its CPU is busy 5 minutes an hour. E2B’s list prices, read 23 November 2026. SealedBox bills the CPU your agent uses and the memory it holds. Usage only; plan fees are separate: Pro is $99 a month here, $150 on E2B.9,10,11
Or pay a flat $89 a month for an always-on machine, with no Pro plan needed.1Work out your own bill
Why not a VPS?
Always-on machine or Pro?
What stops a surprise bill?
A spend cap you set, with alerts at 50%, 80% and 100%. At the cap, new machines are refused and running ones pause.15
How long can a machine run?
Will my E2B code work here?
Yes. What you use on E2B is live here. Your own templates rebuild once; running machines stay on E2B, so start fresh ones.7
Get 30 minutes free every day, forever.2
1 vCPU and 1 GiB One machine at a time 10 GiB of disk
Sign up with a GitHub account at least six months old, or a card check that is never charged.