Free checklist

E2B

Use case: Sandboxes and code execution

Secure cloud sandboxes for running agent code.

E2B provides isolated sandboxes where agents can safely execute code, process data and run tools. Each sandbox is a fast, secure Linux VM created on demand through the E2B SDKs, which you install with pip install e2b or npm i e2b. A template defines the environment a sandbox starts with, so you can bake in the dependencies your project needs. You can also pause a sandbox and resume it later: pausing saves both the filesystem and memory, and paused sandboxes are kept until you kill them.

Pick E2B when your agent writes code or shell commands that you do not want running on your own laptop or production servers. It fits data analysis, code-interpreter style features and any tool call that needs a real operating system to work in. E2B's documentation also has examples for agents that see and control virtual Linux desktops using E2B Desktop sandboxes, and for running testing, validation and AI code review from GitHub Actions workflows. The pricing page ties cost directly to the vCPU and memory you choose, so size sandboxes to the job.

On pricing, E2B combines a plan with usage-based charges. The Hobby plan has a $0 monthly fee and a one-time $100 usage credit. It allows up to 20 concurrent sandboxes and sessions of up to 1 hour, and needs no credit card. Pro is $150 a month plus usage, with up to 100 concurrent sandboxes and sessions of up to 24 hours. Enterprise starts at a $2,000/mo commit, with 500 concurrent sandboxes included. Usage is billed by the second. The pricing page lists $0.000014 per second for 1 vCPU and $0.0000045 per second for 1 GiB of memory, and the default sandbox has 2 vCPUs and 4 GiB of RAM. These figures come from E2B's pricing page as read in October 2026 and can change. To start, sign up in the E2B console, create an API key, set it as E2B_API_KEY and call Sandbox.create().

Like E2B? Find tools like it on X.

Follow @AgentstackDaily, plus the free Top 25 Agent Tools checklist.

At a glance

Category
Sandboxes and code execution
Best for
Sandboxes and code execution use cases
Tags
Infrastructure, Sandboxes, sandbox, api, freemium
Pricing
Hobby $0 with one-time $100 usage credits; Pro $150/mo plus usage; Enterprise from a $2,000/mo commit (500 concurrent included) (as of Nov 2026, official pricing)
Official site
e2b.dev
Link checked
November 4, 2026
Data
JSON
Visit E2B →

How E2B fits an agent workflow

In an agent stack, E2B belongs to the Sandboxes and code execution category, which covers the execution layer, where code and commands an agent writes run in an isolated environment instead of on your own machine. Browse the full Sandboxes and code execution category to see how it compares with similar entries.

E2B alternatives

All Sandboxes and code execution tools →

FAQ

What is E2B used for?

E2B runs code for AI agents inside isolated sandboxes. A sandbox is a Linux VM that your agent can use to run commands, process data and use tools without touching your own machine.

How do I get started with E2B?

Sign up in the E2B console and create an API key. Set the key as the E2B_API_KEY environment variable, install the SDK with pip install e2b or npm i e2b, then create a sandbox with Sandbox.create() and run a command in the sandbox.

Get new agent tools and tips as they're added

Follow @AgentstackDaily on X for new tools and copy-paste tips. Free.