HeroDesktop: Open source virtual desktop sandbox for AI agents by Death Legion Team.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file herodesktop-0.1.0.tar.gz.
File metadata
- Download URL: herodesktop-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42eeaeb68c163075c89f95e49e930d0ca6179cf6a3817a76167de3b2db370060
|
|
| MD5 |
5f6e8725e23e2a36ed80257e37ff7bef
|
|
| BLAKE2b-256 |
c55892e5822a1c39dea79c94c11e0f2c1e89bd5651dcc921e8cc00bcbb54f096
|
File details
Details for the file herodesktop-0.1.0-py3-none-any.whl.
File metadata
- Download URL: herodesktop-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31776b291ee6ee1ac09e352b5a52c6cb357d435d5994d6f34e4a7df62d6345db
|
|
| MD5 |
cd5f2a61a0de66855ed18bddafc702a6
|
|
| BLAKE2b-256 |
2e8b9547ab2d234aff3f762e7fadea99c652f52a45983caf35289a1778c91e49
|