Skip to main content

Desktop

Built on top of e2b with a full Linux desktop environment including GUI, browser, and window management capabilities.
Includes all features from e2b plus desktop-specific methods like getDesktopUrl() and pre-configured GUI environment.

Installation

pip install e2b-desktop

Quick Start

from e2b_desktop import Sandbox

# Create desktop sandbox
sbx = Sandbox.create()

# Get desktop URL
desktop_url = sbx.get_desktop_url()
print(f"Access desktop at: {desktop_url}")

# Run GUI application
sbx.commands.run("firefox https://example.com")

Features

Remote Desktop Access

Access a full Linux desktop environment in your browser:
  • Window Management: Run multiple applications with full window controls
  • Browser Access: Remote desktop URL for web-based access
  • Screen Resolution: Configurable display settings
  • Clipboard Support: Copy/paste between local and remote environments

Pre-installed Applications

The desktop comes with common applications:

Web Browsers

Firefox, Chromium for browser automation

Development Tools

Text editors, terminals, and dev utilities

Media Tools

Image viewers and basic media players

System Utilities

File managers and system monitors

Use Cases

Browser Automation

Automate web interactions with visual feedback

Visual Testing

Test applications requiring GUI in isolated environments

Screen Recording

Record application behavior and workflows

Remote Development

Cloud-based development with full desktop access