E2B

(★ 13,506)

Open-source, secure environment with real-world tools for enterprise-grade agents.

File Explorer

  • .editorconfig
  • .gitattributes
  • .gitignore
  • .npmrc
  • .oxlintrc.json
  • .prettierignore
  • .prettierrc
  • .tool-versions
  • .vale.ini
  • AGENTS.md
  • CLAUDE.md
  • codegen.Dockerfile
  • CODEOWNERS
  • CONTRIBUTING.md
  • copy.bara.sky
  • copybara.Dockerfile
  • DEV.md
  • LICENSE
  • Makefile
  • package.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml
  • README.md
  • redocly.yaml
  • TASTE.md

# Installation Guide

node
Prerequisites

Setup Steps

npm i e2b

Install the E2B SDK for JavaScript/TypeScript.

pip install e2b

Install the E2B SDK for Python.

export E2B_API_KEY=e2b_***

Set the E2B API key as an environment variable.

Key Commands

npm i e2b

Install the E2B SDK package in a JavaScript/TypeScript project.

pip install e2b

Install the E2B SDK package in a Python project.

npm i @e2b/code-interpreter

Install the JavaScript SDK for code interpreter features.

pip install e2b-code-interpreter

Install the Python SDK for code interpreter features.

You need to get an API key from the E2B dashboard and set it as the E2B_API_KEY environment variable.

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Release Timeline

Actively Maintained

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

npm

View Details ▼

JavaScript and Node.js package manager.
Manage Node.js projects and their module dependencies.
Some subcommands such as `install`, `run`, etc. have their own usage documentation.

npm init {{[-y|--yes]}}

Create a `package.json` file with default values (omit `--yes` to do it interactively):

npm {{[i|install]}}

Download all the packages listed as dependencies in `package.json`:

npm {{[i|install]}} {{package_name}}@{{version}}

Download a specific version of a package and add it to the list of dependencies in `package.json`:

🔍

pip install

View Details ▼

Install Python packages.

pip install {{package1 package2 ...}}

Install one or more packages:

pip install {{package1 package2 ...}} {{[-U|--upgrade]}}

Upgrade all specified packages to the latest version, installing any that are not already present:

pip install {{package}}=={{version}}

Install a specific version of a package:

// repository documentation