Architecture:
e2b-code-interpreter and e2b-desktop are built on top of the core e2b SDK. All classes, methods, and features from e2b are available in the specialized SDKs.e2b
Core SDK - Foundation
e2b-code-interpreter
e2b + code execution environment
e2b-desktop
e2b + Linux desktop GUI
e2b
General-purpose sandboxes for running any code, commands, or processes. Use when: Building custom AI agents, running untrusted code, or need full control over the environment.Installation
Quick Start
Full SDK Reference
Complete API documentation
e2b-code-interpreter
Built on top ofe2b with added support for multi-language code execution (Python, JavaScript, R, Java, Bash), pre-installed data science libraries, and visualization capabilities.
Includes all features from
e2b plus specialized code execution methods and pre-configured environment.Installation
Quick Start
View Full Code Interpreter Guide
Detailed documentation, examples, and supported languages
e2b-desktop
Built on top ofe2b with a full Linux desktop environment including GUI, browser, and window management.
Includes all features from
e2b plus desktop-specific methods like getDesktopUrl() and pre-configured GUI environment.Installation
Quick Start
Linux Desktop Guide
Full walkthrough and examples
Choosing the Right SDK
When to use e2b
When to use e2b
- Want default Ubuntu VM
- Want to use MCP-Gateway
- Do not need to use code interpreter specific functions
When to use e2b-code-interpreter
When to use e2b-code-interpreter
- AI data analysis and visualization
- Multi-language code execution (Python, JavaScript, R, Java, Bash)
- Need data science libraries pre-installed
- Generating charts, plots, or reports
- Jupyter-like code execution environment
When to use e2b-desktop
When to use e2b-desktop
- Browser automation with visual feedback
- Testing applications that require a GUI
- Screen recording or screenshots
- Running desktop applications in the cloud