E2B
E2B Hobby provides a one-time $100 credit and one-hour sessions, but some accounts require a non-refundable $5 card verification payment; projects without a payment method are blocked when credits run out.
E2B runs short-lived cloud sandboxes where AI agents and apps can safely execute code that a language model wrote.
By E2BAIChecked ✓ 23 Nov 2026
Changed in Nov 2026: Hobby now lists 10 concurrent sandboxes on the pricing page and in the billing docs.
Is it a fit?
Good fit
Use E2B when you build an agent or app that must run untrusted or model-written code in an isolated cloud sandbox.
- AI agents
- code interpreters
- data analysis sandboxes
Not a fit
Avoid it if you need a lasting free allowance, since the credit is one-time, or sandboxes that run longer than 1 hour without pausing on the free plan.
- you need a monthly free allowance
- you need more than 10 concurrent sandboxes on the free plan
- you cannot add a payment method once the credit is used
You use E2B through its Python or JavaScript SDK with an API key from the dashboard. Your code starts a sandbox, runs code in it, and reads the results. It suits developers who build AI agents and code interpreters and need a safe place for generated code to run.
What the free plan gives you
The Hobby plan has a base price of $0 per month and a one-time $100 usage credit. The pricing footnote says some accounts must make a non-refundable $5 card verification payment to prevent abuse; that payment becomes project usage credit. You can run up to 10 concurrent sandboxes. Each sandbox can use up to 8 vCPUs and 8 GiB of memory, and it can run for 1 hour before you must pause it.
E2B bills by the second for a running sandbox, and the credit pays for it. The pricing guide marks 2 vCPUs as the default size. A paused sandbox is kept with no time limit, and you pay only while a sandbox runs.
When you hit a limit
Without a payment method, exhausted credits cause every project in your workspace to be blocked shortly afterwards. Add a payment method to continue; subsequent usage is billed. The credit does not refill, and moving to the Pro plan does not add credits. API requests that go over a rate limit get an HTTP 429 response with a Retry-After header. The newer SDK versions retry these requests for you. Pro costs $150 per month plus usage and raises limits such as runtime and concurrency.
Gotchas
- The $100 credit is a one-time gift, not a monthly allowance.
- A sandbox stops being continuous after 1 hour on Hobby. Pause and resume it to reset the clock.
- Pausing or killing a sandbox stops compute billing, so end sandboxes you do not need.
Alternatives in this atlas
Questions people ask
Is E2B free?
Hobby is free with a one-time $100 usage credit, but some accounts require a $5 verification payment. Without a payment method, projects are blocked after credits run out; adding one enables billed usage.
Does E2B need a credit card?
Usually not, but some accounts must make a one-time $5 card verification payment. It is non-refundable and added to project usage credits.
What happens when I run out of E2B credits?
Without a payment method, your workspace projects are blocked shortly after credits run out. Adding a payment method enables continued billed usage.
How to get started
- Create an E2B account for $100 in credits; check whether the account requires the $5 verification payment.
- Open the E2B Dashboard, copy your API key, and save it as `E2B_API_KEY` in a `.env` file.
- Install the SDK with `pip install e2b-code-interpreter python-dotenv`, or `npm i @e2b/code-interpreter dotenv`.
- Call `Sandbox.create()` to start a sandbox.
- Run code inside it with `sbx.run_code(...)` and list files with `sbx.files.list("/")`.
- Call `sbx.kill()` when finished to stop compute billing.
Other free ai options
Same category, safest first.