Xingyao Wang 90d0a62469 (arch) Switch default runtime to EventStream Runtime (#3271) 1 年之前
..
README.md fadcdc117e Migrate to new folder structure in preparation for refactor (#1531) 1 年之前
filestore.py 5bdacf738d Refactor session management (#1810) 1 年之前
runtime.py 90d0a62469 (arch) Switch default runtime to EventStream Runtime (#3271) 1 年之前
sandbox.py 257698e89b Remove global config from sandbox (#2961) 1 年之前

README.md

How to use E2B

E2B is an open-source secure cloud environment (sandbox) made for running AI-generated code and agents. E2B offers Python and JS/TS SDK to spawn and control these sandboxes.

Getting started

  1. Get your API key

  2. Set your E2B API key to the E2B_API_KEY env var when starting the Docker container

  3. Optional - Install the CLI with NPM.

    npm install -g @e2b/cli@latest
    

    Full CLI API is here.

OpenDevin sandbox

You can use the E2B CLI to create a custom sandbox with a Dockerfile. Read the full guide here. The premade OpenDevin sandbox for E2B is set up in the containers directory. and it's called open-devin.

Debugging

You can connect to a running E2B sandbox with E2B CLI in your terminal.

  • List all running sandboxes (based on your API key)

    e2b sandbox list
    
  • Connect to a running sandbox

    e2b sandbox connect <sandbox-id>
    

Links