e2b-desktop
E2B Desktop Sandbox - Deskstop sandbox in cloud powered by E2B
What it is and what it does
E2B Desktop Sandbox is a Python SDK that provisions isolated virtual desktop environments running on E2B's cloud infrastructure. Each sandbox is a Linux-based Xfce desktop where you can launch applications, capture screenshots, stream the display, and control mouse and keyboard input programmatically. The package wraps the E2B Sandbox platform with desktop-specific APIs for computer use automation tasks.
You interact with sandboxes through a simple Python object model: create a sandbox, launch applications, take screenshots, send input events, and stream the desktop to a browser or client. The package handles the underlying infrastructure provisioning and network communication. It depends on the base e2b SDK, pillow for image handling, and requests for HTTP operations.
Use it for:
- Automate GUI-based workflows in cloud-isolated environments without local desktop dependencies.
- Build AI agents that need to interact with graphical applications and capture visual feedback.
- Test desktop applications in a sandboxed, reproducible environment without affecting your local system.
- Stream a remote desktop to end users or monitoring systems for real-time interaction or observation.
- Run browser automation tasks that require a full graphical desktop rather than headless mode.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Python SDK to create and control isolated virtual desktop environments in the cloud, with support for application launching, screen streaming, mouse/keyboard control, and screenshot capture.
Yes, if you need to automate or control graphical desktop applications in an isolated cloud environment and have an E2B API key. The package is actively maintained, has low install friction, carries no known vulnerabilities, and offers a clean Python API. The main decision point is whether the E2B service cost and API key requirement fit your use case.
Install
e2b-desktop on PyPI
pip
pip install e2b-desktopuv
uv add e2b-desktoppoetry
poetry add e2b-desktopInstalling e2b-desktop
Before you install
Low friction installation with a pure Python wheel. The package is actively maintained (last commit 2026-08-14) and has been in development since 2024-10-24. Supports current Python versions (3.10–3.14).
License in practice
MIT license permits commercial and private use with minimal restrictions; you must include a copy of the license and copyright notice in distributions.
Quickstart
pip install e2b-desktop
from e2b_desktop import Sandbox
desktop = Sandbox.create()
desktop.launch('google-chrome')
image = desktop.screenshot()
desktop.kill()
Requires E2B_API_KEY environment variable set with a valid E2B API key (obtain by signing up at e2b.dev).
Verify before relying
- Pricing model and cost per sandbox instance or usage tier
- Geographic availability and latency characteristics of sandbox infrastructure
- Maximum concurrent sandboxes per API key or account
- Persistence and data retention policies for sandbox files and state
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — e2b, pillow, requests |
| Maintenance | actively maintained — 22 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 197,466/month — #9,758 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: e2b_desktop-2.4.2-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
e2bE2B provides a Python SDK to create and control…
permissive · top 5,000 on PyPI
e2b-code-interpreterRuns AI-generated or arbitrary Python code in…
permissive · top 5,000 on PyPI
vncdotoolvncdotool is a command-line VNC client that…
permissive · top 15,000 on PyPI
koyeb-sdkOfficial Python SDK for Koyeb that provides…
permissive · top 15,000 on PyPI
opensandboxOpenSandbox SDK provides low-level Python…
permissive · top 15,000 on PyPI
cua-computerCua Computer provides a framework for…
unclear · top 15,000 on PyPI
cwsandboxA Python client library for running and…
permissive · top 15,000 on PyPI
cloudshell-shell-coreProvides the base driver interface and context…
permissive · top 15,000 on PyPI
pywinautoAutomate Microsoft Windows GUI interactions by…
permissive · top 5,000 on PyPI
lightning-sdkPython SDK to create, manage, and automate…
permissive · top 15,000 on PyPI