Skip to main content

HeroDesktop 🦸‍♂️

Built by Death Legion Team. The best and most feature-complete open-source virtual desktop sandbox for AI agents.

HeroDesktop allows you to safely run AI agents in an isolated environment with a full desktop interface. Powered by E2B, it provides seamless control and streaming capabilities.

Features

  • 🚀 On-Demand Desktops: Start a fresh desktop sandbox in seconds.
  • 📦 Common Apps: Built-in support for Chrome, Firefox, and VS Code.
  • 📺 Live Streaming: Stream the entire desktop or a specific application window.
  • 🔐 Security: Optional password protection and view-only modes for streams.
  • ⌨️ Full Control: Mouse movement, clicks, dragging, scrolling, typing, and hotkeys.
  • 🖥️ Window Management: Detect and interact with specific application windows.
  • 🐍 Multi-Language: Native SDKs for both Python and JavaScript.

Installation

Python

pip install herodesktop

JavaScript/TypeScript

npm install herodesktop

Quick Start (Python)

from herodesktop import HeroDesktop

# Create a new sandbox
desktop = HeroDesktop.create()

# Launch an app
desktop.launch_chrome("https://google.com")

# Start streaming
url = desktop.start_streaming()
print(f"Stream URL: {url}")

# Basic control
desktop.write("Hello World!")

# Shutdown
desktop.shutdown()

Quick Start (JavaScript)

import { HeroDesktop } from 'herodesktop';

const desktop = await HeroDesktop.create();

await desktop.launchChrome("https://google.com");

const url = await desktop.startStreaming();
console.log(`Stream URL: ${url}`);

await desktop.write("Hello World!");

await desktop.shutdown();

Examples

Check out the examples/ directory for more detailed use cases:

  • basic: Simple sandbox creation and control.
  • streaming_app: Launching an app and streaming only that window.

License

MIT - HeroDesktop by Death Legion Team

Metadata

Release files for herodesktop 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for herodesktop 0.1.0
File Size Uploaded
herodesktop-0.1.0.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for herodesktop 0.1.0
File Interpreter ABI Platform
herodesktop-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / herodesktop-0.1.0.tar.gz

Download URL herodesktop-0.1.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
42eeaeb68c163075c89f95e49e930d0ca6179cf6a3817a76167de3b2db370060
BLAKE2b-256 checksum
How to use checksums
c55892e5822a1c39dea79c94c11e0f2c1e89bd5651dcc921e8cc00bcbb54f096
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / herodesktop-0.1.0-py3-none-any.whl

Download URL herodesktop-0.1.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31776b291ee6ee1ac09e352b5a52c6cb357d435d5994d6f34e4a7df62d6345db
BLAKE2b-256 checksum
How to use checksums
2e8b9547ab2d234aff3f762e7fadea99c652f52a45983caf35289a1778c91e49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page