Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

E2B

> 前端框架
Open source

Open-source, secure environment with real-world tools for enterprise-grade agents.

13.2K stars0 likes1 views
WebsiteGitHub

About

Open-source, secure environment with real-world tools for enterprise-grade agents.

What is E2B?

E2B is an open-source infrastructure that allows you to run AI-generated code in secure isolated sandboxes in the cloud. To start and control sandboxes, use our JavaScript SDK or Python SDK.

Run your first Sandbox

1. Install SDK

JavaScript / TypeScript

bash
npm i e2b

Python

bash
pip install e2b

2. Get your E2B API key

  1. Sign up to E2B here.
  2. Get your API key here.
  3. Set environment variable with your API key
E2B_API_KEY=e2b_***

3. Start a sandbox and run commands

JavaScript / TypeScript

typescript
import Sandbox from 'e2b'

const sandbox = await Sandbox.create()
const result = await sandbox.commands.run('echo "Hello from E2B!"')
console.log(result.stdout) // Hello from E2B!

Python

python
from e2b import Sandbox

with Sandbox.create() as sandbox:
    result = sandbox.commands.run('echo "Hello from E2B!"')
    print(result.stdout)  # Hello from E2B!

4. Code execution with Code Interpreter

If you need to execute code with runCode()/run_code(), install the Code Interpreter SDK (JavaScript / Python):

bash
npm i @e2b/code-interpreter  # JavaScript/TypeScript
pip install e2b-code-interpreter  # Python
typescript
import { Sandbox } from '@e2b/code-interpreter'

const sandbox = await Sandbox.create()
const execution = await sandbox.runCode('x = 1; x += 1; x')
console.log(execution.text)  // outputs 2

5. Computer use with Desktop

For mouse, keyboard, screenshot, application, and desktop streaming APIs, install the Desktop SDK (JavaScript / Python):

bash
npm i @e2b/desktop  # JavaScript/TypeScript
pip install e2b-desktop  # Python
typescript
import { Sandbox } from '@e2b/desktop'

const desktop = await Sandbox.create()
await desktop.launch('google-chrome')
const screenshot = await desktop.screenshot()

6. Check docs

Visit E2B documentation.

7. E2B cookbook

Visit our Cookbook to get inspired by examples with different LLMs and AI frameworks.

Self-hosting

Read the self-hosting guide to learn how to set up the E2B infrastructure on your own. The infrastructure is deployed using Terraform.

Supported cloud providers:

  • 🟢 AWS
  • 🟢 Google Cloud (GCP)
  • Azure
  • General Linux machine

Issues· 87 open

View all issuesOpen on GitHub
  • #1908

    Review deferred SDK and CLI major dependency upgrades

    sdkclidependenciespythonjavascriptUpdated Sep 28, 2026
  • #1895

    [Bug]: JS SDK: filesystem watch handle.stop() always fires onExit with a TimeoutError blaming 'requestTimeoutMs'

    bugsdkjavascriptUpdated Sep 27, 2026
  • #1902

    [Bug]: Template copy() includes files that .dockerignore / fileIgnorePatterns should exclude (JS + Python)

    bugsdkUpdated Sep 27, 2026
  • #1899

    Python SDK/docs spell custom MCP server keys install_cmd/run_cmd but the gateway only accepts installCmd/runCmd

    bugdocssdkMCP ServerUpdated Sep 27, 2026
  • #1726

    Python SDK: unhandled RemoteProtocolError (TLS close_notify) during command streaming when sandbox ends

    bugsdkpythonUpdated Sep 26, 2026
  • #1900

    MCP gateway drops params._meta on tools/call; servers behind it never receive request metadata

    bugMCP ServerUpdated Sep 26, 2026
  • #1881

    [Bug]: run_code(timeout=N) is enforced at ~2*N seconds — the pyqwest transport derives one deadline by summing read+write

    bugsdkCode InterpreterUpdated Sep 24, 2026
  • #1643

    Feature Request: Add metadata parameter to volume creation (similar to sandbox create)

    featuresdkUpdated Sep 17, 2026
  • #1877

    Correlate client-side command-stream cancellation with envd logs (shared request-id)

    featuresdkenvdUpdated Sep 17, 2026
  • #1587

    [Bug]: reattached stdout stream stalls after auto-resume (regression in python-sdk 2.29.1)

    bugsdkUpdated Sep 11, 2026

> Tags

Pythonagentaiai-agentai-agents

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架