Documentation
    SDK Reference
    • Home
      API Key
      Cookbook
      Need help?
      Migrating from v0.* to v1.*
  • Code Interpreting

      Streaming
  • Sandbox

      Lifecycle
      PersistenceNew
      MetricsNew
      Metadata
      Environment variables
      List sandboxes
      Connect to running sandbox
      Internet access
      Connecting bucket
      Installing beta SDKs
  • Templates

      Sandbox customization
      Start command
      Customize CPU & RAM
  • Filesystem

      Overview
      Read & write
      Watch directory for changes
      Upload data
      Download data
  • Commands

      Overview
      Streaming
      Run commands in background
  • CLI

      Installation
      Authentication
      List sandboxes
      Shutdown running sandboxes
  • Troubleshooting

Documentation
Documentation
You are reading a legacy (pre v1.0) document.

Installation

You create and control sandboxes with our SDKs. We offer SDKs for JavaScript / TypeScript, and Python.

JavaScript & Typescript

Usable both in Node.js and in the browser. Requires at least Node.js 18.0.

Inspect on NPM

Python

Requires at least Python 3.8.

Inspect on PyPi

You can install them using the following commands:

npm install e2b

Next steps

  1. Get your API key
  2. Explore the Sandbox API

© FoundryLabs, Inc. 2025. All rights reserved.

Follow us on X (f.k.a. Twitter)Follow us on GitHubJoin our Discord server