SuperAPI AI Directory

e2b

Cloud sandboxes for AI agents. Secure code execution environments.

Open website

About this tool

E2B is an open-source infrastructure designed to let AI-generated code run in securely isolated sandboxes in the cloud. It provides a secure environment for building enterprise-grade agents and integrates real-world tools.

Main capabilities:

  • Cloud isolated sandboxes: Execute AI-generated code in a secure, isolated environment.
  • SDK support: Provides a JavaScript SDK and a Python SDK for launching and controlling sandboxes.
  • Code execution: Through the Code Interpreter SDK (JavaScript / Python), code can be executed using runCode() / run_code().
  • Computer use: Through the Desktop SDK (JavaScript / Python), provides APIs for mouse, keyboard, screenshots, applications, and desktop streaming.
  • Self-hosting: Provides an embed deployment guide for deploying the E2B runtime in your own environment using Terraform.
  • Supported cloud providers: Google Cloud (GCP), general Linux machines (via Embed).

Usage (based on the materials):

  1. Register with E2B and obtain an API key, then set it as an environment variable.
  2. Use the JavaScript/TypeScript or Python SDK to launch a sandbox and run commands.
  3. If you need to execute code, install the Code Interpreter SDK (JavaScript / Python) and call runCode() / run_code().
  4. If you need computer use capabilities, install the Desktop SDK (JavaScript / Python) and use the mouse, keyboard, screenshot, application, and desktop streaming APIs.
  5. Refer to the official documentation and Cookbook for examples of working with different LLMs and AI frameworks.
  6. You can read the embed deployment guide to deploy the runtime in your own environment using Terraform.

Applicable scenarios:

  • Running AI-generated code that requires a secure isolated execution environment.
  • Building enterprise-grade agents with code execution or computer use capabilities.
  • Teams that need self-hosting (such as GCP or general Linux machines).

Limitations and information not provided:

  • Specific pricing, costs, platform compatibility, performance metrics, usage step details, etc. are not yet provided.
  • Only the cloud providers listed in the materials are supported;other cloud platforms are not yet provided.