e2b

E2B SDK that give agents cloud environments

MIT 334 个版本 Python <4.0,>=3.10
e2b <hello@e2b.dev>
安装
pip install e2b
poetry add e2b
pipenv install e2b
conda install e2b
描述

E2B Logo

Last 1 month downloads for the Python SDK

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

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

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 run_code(), install the Code Interpreter SDK:

pip install e2b-code-interpreter
from e2b_code_interpreter import Sandbox

with Sandbox.create() as sandbox:
    execution = sandbox.run_code("x = 1; x += 1; x")
    print(execution.text)  # outputs 2

5. Check docs

Visit E2B documentation.

6. E2B cookbook

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

版本列表
2.29.5 2026-06-22
2.29.4 2026-06-19
2.29.3 2026-06-19
2.29.2 2026-06-17
2.29.1 2026-06-16
2.29.0 2026-06-15
2.28.2 2026-06-12
2.28.1 2026-06-11
2.28.0 2026-06-10
2.27.1 2026-06-09
2.27.0 2026-06-09
2.26.0 2026-06-06
2.25.1 2026-05-29
2.25.0 2026-05-27
2.24.0 2026-05-27
2.23.1 2026-05-22
2.23.0 2026-05-22
2.22.0 2026-05-22
2.21.1 2026-05-14
2.21.0 2026-05-06
2.20.3 2026-04-30
2.20.2 2026-04-27
2.20.1 2026-04-24
2.20.0 2026-04-02
2.19.0 2026-03-26
2.18.0 2026-03-25
2.17.0 2026-03-23
2.16.0 2026-03-23
2.15.3 2026-03-18
2.15.2 2026-03-09
2.15.1 2026-03-06
2.15.0 2026-03-04
2.14.1 2026-03-04
2.14.0 2026-02-24
2.13.3 2026-02-21
2.13.2 2026-02-09
2.13.1 2026-02-09
2.13.0 2026-01-29
2.13.3a0 2026-02-17
2.12.2 2026-01-29
2.12.1 2026-01-27
2.12.0 2026-01-27
2.11.0 2026-01-26
2.10.2 2026-01-15
2.10.1 2026-01-12
2.10.0 2026-01-12
2.9.1 2026-01-09
2.9.0 2025-12-22
2.8.1 2025-12-01
2.8.0 2025-11-26
2.7.0 2025-11-15
2.6.4 2025-11-10
2.6.3 2025-11-06
2.6.2 2025-11-03
2.6.1 2025-11-03
2.6.0 2025-10-31
2.5.0 2025-10-28
2.4.3 2025-10-28
2.4.2 2025-10-24
2.4.1 2025-10-24
2.4.0 2025-10-22
2.3.6 2025-10-22
2.3.5 2025-10-21
2.3.4 2025-10-20
2.3.3 2025-10-18
2.3.2 2025-10-17
2.3.1 2025-10-16
2.3.0 2025-10-16
2.3.4a0 2025-10-20
2.2.7 2025-10-14
2.2.6 2025-10-14
2.2.5 2025-10-09
2.2.4 2025-10-09
2.2.3 2025-10-09
2.2.2 2025-10-08
2.2.1 2025-10-01
2.2.0 2025-09-29
2.1.5 2025-09-29
2.1.4 2025-09-19
2.1.3 2025-09-19
2.1.2 2025-09-09
2.1.1 2025-09-06
2.1.0 2025-09-05
2.0.2 2025-09-03
2.0.1 2025-09-03
2.0.0 2025-08-21
2.0.0rc2 2025-08-19
2.0.0rc1 2025-08-19
2.0.0rc0 2025-08-19
1.11.1 2025-08-06
1.11.0 2025-08-04
1.10.0 2025-07-31
1.9.0 2025-07-30
1.8.0 2025-07-29
1.7.1 2025-07-28
1.7.0 2025-07-18
1.6.0 2025-07-17
1.5.6 2025-07-10
1.5.5 2025-07-09
1.5.4 2025-07-03
1.5.3 2025-06-27
1.5.2 2025-06-16
1.5.1 2025-06-05
1.5.0 2025-05-14
1.4.0 2025-05-05
1.3.5 2025-04-18
1.3.4 2025-04-11
1.3.3 2025-04-03
1.3.2 2025-03-26
1.3.1 2025-03-24
1.3.0 2025-03-24
1.3.4rc2 2025-04-23
1.3.4rc1 2025-04-17
1.2.1 2025-03-21
1.2.0 2025-03-20
1.2.1rc2 2025-03-17
1.2.0rc3 2025-04-17
1.2.0rc2 2025-03-10
1.2.0rc1 2025-03-10
1.2.0b6 2025-04-30
1.2.0b5 2025-04-28
1.2.0b4 2025-04-17
1.2.0b3 2025-04-17
1.2.0b2 2025-04-02
1.2.0b1 2025-01-28
1.2.0b0 2025-01-24
1.1.0 2025-02-11
1.1.0rc1 2025-03-10
1.1.0b9 2024-12-16
1.1.0b8 2024-12-16
1.1.0b7 2024-12-16
1.1.0b6 2024-12-16
1.1.0b5 2024-12-15
1.1.0b4 2024-12-15
1.1.0b3 2024-12-14
1.1.0b2 2024-12-13
1.1.0b18 2025-01-18
1.1.0b17 2024-12-17
1.1.0b16 2024-12-17
1.1.0b15 2024-12-16
1.1.0b14 2024-12-16
1.1.0b13 2024-12-16
1.1.0b12 2024-12-16
1.1.0b11 2024-12-16
1.1.0b10 2024-12-16
1.1.0b1 2024-12-13
1.0.6 2025-01-28
1.0.5 2024-12-06
1.0.4 2024-11-24
1.0.3 2024-11-03
1.0.2 2024-10-26
1.0.1 2024-10-16
1.0.0 2024-10-16
1.0.5b1 2024-12-13
0.17.1 2024-05-31
0.17.0 2024-05-02
0.17.2a9 2024-06-27
0.17.2a8 2024-06-27
0.17.2a7 2024-06-27
0.17.2a62 2024-10-15
0.17.2a61 2024-10-15
0.17.2a60 2024-09-26
0.17.2a6 2024-06-27
0.17.2a59 2024-09-12
0.17.2a58 2024-09-11
0.17.2a57 2024-09-09
0.17.2a56 2024-09-05
0.17.2a55 2024-09-05
0.17.2a54 2024-09-05
0.17.2a53 2024-09-05
0.17.2a52 2024-08-20
0.17.2a51 2024-08-20
0.17.2a50 2024-08-19
0.17.2a5 2024-06-27
0.17.2a49 2024-08-19
0.17.2a48 2024-08-19
0.17.2a47 2024-08-15
0.17.2a46 2024-08-15
0.17.2a45 2024-08-14
0.17.2a44 2024-08-14
0.17.2a43 2024-08-13
0.17.2a42 2024-07-24
0.17.2a41 2024-07-23
0.17.2a40 2024-07-23
0.17.2a4 2024-06-27
0.17.2a39 2024-07-23
0.17.2a38 2024-07-23
0.17.2a37 2024-07-22
0.17.2a36 2024-07-22
0.17.2a35 2024-07-22
0.17.2a34 2024-07-14
0.17.2a33 2024-07-14
0.17.2a32 2024-07-13
0.17.2a31 2024-07-12
0.17.2a30 2024-07-11
0.17.2a3 2024-06-27
0.17.2a29 2024-07-11
0.17.2a28 2024-07-11
0.17.2a27 2024-07-11
0.17.2a26 2024-07-11
0.17.2a25 2024-07-10
0.17.2a24 2024-07-09
0.17.2a23 2024-07-03
0.17.2a22 2024-07-02
0.17.2a21 2024-07-01
0.17.2a20 2024-06-29
0.17.2a2 2024-06-27
0.17.2a19 2024-06-29
0.17.2a18 2024-06-29
0.17.2a17 2024-06-29
0.17.2a16 2024-06-28
0.17.2a15 2024-06-28
0.17.2a14 2024-06-28
0.17.2a13 2024-06-28
0.17.2a12 2024-06-28
0.17.2a11 2024-06-27
0.17.2a10 2024-06-27
0.17.2a1 2024-06-27
0.17.2a0 2024-06-27
0.16.0 2024-05-01
0.15.0 2024-04-25
0.14.14 2024-04-19
0.14.13 2024-04-06
0.14.12 2024-03-24
0.14.11 2024-03-13
0.14.10 2024-03-13
0.14.9 2024-02-29
0.14.8 2024-02-29
0.14.7 2024-02-28
0.14.6 2024-02-28
0.14.5 2024-02-28
0.14.4 2024-02-15
0.14.3 2024-02-14
0.14.2 2024-02-08
0.14.1 2024-02-08
0.14.0 2024-02-02
0.14.10a9 2024-03-08
0.14.10a8 2024-03-08
0.14.10a7 2024-03-08
0.14.10a6 2024-03-07
0.14.10a5 2024-03-07
0.14.10a4 2024-03-06
0.14.10a3 2024-03-06
0.14.10a2 2024-03-06
0.14.10a12 2024-03-08
0.14.10a11 2024-03-08
0.14.10a10 2024-03-08
0.14.10a1 2024-03-05
0.14.10a0 2024-03-05
0.14.0rc1 2023-12-05
0.14.0rc0 2023-11-24
0.13.18 2024-01-29
0.13.17 2024-01-22
0.13.16 2024-01-22
0.13.15 2023-12-19
0.13.14 2023-12-19
0.13.13 2023-12-13
0.13.12 2023-12-11
0.13.11 2023-12-10
0.13.10 2023-12-08
0.13.9 2023-12-04
0.13.8 2023-12-01
0.13.7 2023-11-30
0.13.6 2023-11-29
0.13.5 2023-11-24
0.13.4 2023-11-24
0.13.3 2023-11-23
0.13.2 2023-11-23
0.13.1 2023-11-23
0.13.0 2023-11-21
0.12.0 2023-11-16
0.11.0 2023-11-16
0.11.0rc1 2023-11-16
0.11.0rc0 2023-11-13
0.10.9 2023-11-14
0.10.8 2023-11-13
0.10.7 2023-11-09
0.10.6 2023-11-09
0.10.5 2023-11-09
0.10.4 2023-11-09
0.10.3 2023-11-09
0.10.2 2023-11-09
0.10.1 2023-11-06
0.10.0 2023-11-06
0.10.0rc0 2023-11-04
0.9.7 2023-10-26
0.9.6 2023-10-20
0.9.5 2023-10-20
0.9.4 2023-10-20
0.9.3 2023-10-17
0.9.2 2023-10-16
0.9.1 2023-10-16
0.9.0 2023-10-15
0.8.0 2023-10-15
0.8.1rc0 2023-10-15
0.7.4 2023-10-14
0.7.3 2023-10-11
0.7.2 2023-10-04
0.7.1 2023-10-04
0.7.0 2023-10-04
0.6.0 2023-10-03
0.5.2 2023-09-30
0.5.1 2023-09-29
0.5.0 2023-09-29
0.4.1 2023-09-27
0.4.0 2023-09-27
0.3.4 2023-09-27
0.3.3 2023-09-26
0.3.2 2023-09-26
0.3.1 2023-09-25
0.3.0 2023-09-19
0.2.9 2023-09-14
0.2.8 2023-09-07
0.2.7 2023-09-04
0.2.6 2023-08-31
0.2.5 2023-08-29
0.2.4 2023-08-29
0.2.3 2023-08-29
0.2.2 2023-08-28
0.2.1 2023-08-27
0.2.0 2023-08-24
0.1.12 2023-08-24
0.1.10 2023-08-18
0.1.9 2023-08-18
0.1.8 2023-08-15
0.1.7 2023-08-15
0.1.6 2023-08-15
0.1.5 2023-08-11
0.1.4 2023-08-09
0.1.3 2023-08-08
0.1.2 2023-08-07
0.1.1 2023-08-07
0.1.0 2023-08-06
0.0.1 2023-08-06