A favicon of E2B

E2B

Cloud sandboxes for running AI-generated code safely, aimed at developers building agents that need to execute what a model writes.

Open Source Alternative to:

Screenshot of E2B websiteVisit E2B

Running code that a language model just wrote is the point where an agent stops being a demo and becomes a liability. E2B is open source infrastructure for exactly that problem, providing secure isolated sandboxes in the cloud where generated code can execute without touching your own machines.

Sandboxes are started and controlled from a JavaScript SDK or a Python SDK. Create one, run shell commands inside it, read the output back into your program, and dispose of it when the task is finished. An API key from the dashboard is the only setup beyond installing the package.

Three packages cover the common shapes of agent work.

  • Core SDK: create sandboxes and run commands, with stdout returned to the caller.
  • Code Interpreter: execute code directly through runCode and run_code for interpreter style workloads.
  • Desktop: mouse, keyboard, screenshot, application and desktop streaming APIs for computer use agents.

A cookbook of examples shows the SDKs working with different models and AI frameworks, and the documentation covers the rest of the surface area.

If you would rather not depend on the hosted service, the infrastructure is published separately and deploys with Terraform, guided by a self-hosting document. AWS and Google Cloud are supported today, while Azure and a general Linux machine remain unchecked items on the project's own list.

Share:
Details:
  • Stars


    13,686
  • Forks


    1,024
  • Last commit


    7 days ago
  • Repository age


    4 years
  • License


    Apache-2.0
  • Version


    @e2b/python-sdk@2.46.4
  • Repository


    e2b-dev/E2B

Auto-fetched from GitHub .

Ad

 

 
 
 
 

Open source alternatives similar to E2B:

 

 
 
  • Stars


  • Forks


  • Last commit


 

 
 
  • Stars


  • Forks


  • Last commit


 

 
 
  • Stars


  • Forks


  • Last commit