Skip to content
E2B logo

E2B

Visit E2B

Secure cloud sandboxes for AI code execution via SDK (e2b.dev).

Coding

How it works / How to use

Secure cloud sandboxes for AI code execution via SDK (e2b.dev).

  1. Sign up at e2b.dev and get an API key.
  2. Install the E2B SDK for your language.
  3. Spin up a sandbox, run agent-generated code inside it.
  4. Destroy sandboxes after jobs; monitor usage costs.

How to prompt

Specify runtime, dependencies, and timeout for sandbox jobs.

Task: run pandas analysis on uploaded CSV.
Timeout: 120s.
Output: summary stats JSON only.

Best output tips

  • Hobby tier free with $100 usage credits; Pro $150/mo per e2b.dev/pricing.
  • Never run unreviewed code outside sandboxes.
  • Track per-second usage costs.

Try this AI

Try E2B

Product Details

Pricing, features, limits and latest updates

E2B

Secure cloud sandboxes for AI code execution via SDK (e2b.dev).

Free / Paid · Free

Pricing Plans

Hobby

Free

Pro

$150/ Monthly

Key Features

API

Secure sandbox SDK for AI code execution (e2b.dev).

Automation

Ephemeral compute sandboxes for agents (e2b.dev).

Limits

  • Hobby concurrent sandboxes: 20 sandboxes. Hobby tier supports up to 20 concurrently running sandboxes (e2b.dev/pricing).
  • Pro concurrent sandboxes: 100 sandboxes. Pro tier supports up to 100 concurrently running sandboxes (e2b.dev/pricing).

Ideas / Prompt experiences

Share a prompt that worked for you. Username and email are shown with your submission. External links are not allowed.

Example prompt

Sandbox job spec

Prompt

Runtime: Python 3.11. Input: CSV path in sandbox. Task: compute column means. Return JSON; max 60s.

Short explanation

E2B runs agent code in isolated sandboxes (e2b.dev).

Example prompt

Agent tool call

Prompt

Use E2B sandbox to execute: [code snippet] Capture stdout/stderr; timeout 30s.

Short explanation

Common pattern for coding agents using E2B SDK.

Share your experience

Required fields are marked. Variation, result, and explanation are optional.

Cursor logo

Cursor

Explore

AI coding agent for building software in your editor, terminal, and IDE.

CodingFree / Paid

AutoGPT logo

AutoGPT

Explore

Platform for building and running AI agents with visual Agent Builder, AutoPilot chat, scheduling, and 200+ integration blocks; self-host open source or use hosted Pro/Max plans.

CodingFree / Paid

Hugging Face logo

Models, datasets, and inference for open machine learning.

CodingFree / Paid