Do I need to rewrite my E2B code?
Do I need to rewrite my E2B code?
No. Set
E2B_DOMAIN=compute.anonalabs.com and an Anona API key. See Migrate from E2B for the features that are not available yet.Is a sandbox a container?
Is a sandbox a container?
No. Each sandbox is a KVM microVM with its own kernel. See Security.
How long can a sandbox run?
How long can a sandbox run?
As long as you want, on every plan: create it with
timeout=-1, and let it pause when idle. A paused sandbox costs no CPU or memory. On Free, running time counts against the month’s included vCPU-hours, and running sandboxes pause when those are used up. See Lifecycle.What happens to running processes when I pause?
What happens to running processes when I pause?
They are frozen with the sandbox’s memory and carry on after resume.
Can a sandbox reach the internet?
Can a sandbox reach the internet?
On paid plans yes, by default; on the free plan not yet (coming soon, capped at 5 GB a month). Private networks and cloud metadata are always blocked. You can restrict each sandbox further. See Networking.
Can I run Docker inside a sandbox?
Can I run Docker inside a sandbox?
The
agent-desktop template has the Docker CLI but no daemon. Running a Docker daemon in a sandbox is not supported yet.Can I bring my own image?
Can I bring my own image?
Yes: build one from a Dockerfile with
anona-compute template build, or with the E2B SDK’s Template.build. See Templates.Can I choose the CPU and memory?
Can I choose the CPU and memory?
Yes: pick a sandbox size when you create it: Small (1 vCPU, 2 GiB, 10 GB disk), Medium (2, 4 GiB, 20 GB), Large (4, 8 GiB, 40 GB) or XL (8, 16 GiB, 80 GB), at or above what the template needs. Without a size, a sandbox runs at its template’s own size.
How is it billed?
How is it billed?
A monthly plan ($0, $19, $99 or $399) that includes vCPU-hours and egress every month, then usage on the vCPU and memory each sandbox is given, billed per second with a 1-minute minimum, plus snapshot storage and egress. Free stops at its included usage; paid plans bill what is over. You pay for a paid plan on the secure Stripe checkout page, and the Free plan needs no card. See Pricing and Plans and codes.
Where does it run?
Where does it run?
In a single region today, with more coming. See Regions and limits.