搜索

PythonReactSEOPDF
OpenClaw

e2b-desktop

Control E2B Desktop sandboxes (virtual Linux desktops) for computer-use agents. Use when you need to create/manage sandboxed desktop environments, take screenshots, perform mouse/keyboard actions, run commands, stream VNC output, or build computer-use agent loops with E2B Desktop SDK.

eyhn0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install eyhn/e2b-desktop

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

E2B Desktop Skill

Control a headless Linux desktop (Ubuntu + XFCE) via the e2b-desktop Python SDK. All scripts live in scripts/ and wrap the SDK in bash for easy agent use.

Prerequisites

pip install e2b-desktop
export E2B_API_KEY=e2b_***

State Management

  • start_sandbox.sh saves the sandbox ID to ~/.e2b_state
  • All other scripts auto-load it from there
  • Override anytime with export E2B_SANDBOX_ID=<id>
  • Sandboxes survive script exit — reconnect with Sandbox.connect(sandbox_id)

Scripts

Script Usage Description
start_sandbox.sh [--resolution 1280x800] [--timeout 300] [--stream] Create sandbox; optionally start VNC stream
kill_sandbox.sh [SANDBOX_ID] Kill sandbox and remove state
screenshot.sh [OUTPUT_FILE] Take screenshot → PNG (default: /tmp/e2b_screenshot.png)
click.sh X Y Left click at coordinates
right_click.sh X Y Right click
double_click.sh X Y Double click
middle_click.sh X Y Middle click
move_mouse.sh X Y Move cursor (no click)
drag.sh X1 Y1 X2 Y2 Click-drag between two points
scroll.sh AMOUNT Scroll (positive=up, negative=down)
type_text.sh "text" Type text at current cursor
press_key.sh KEY [KEY2...] Press key or combo (e.g. ctrl c)
run_command.sh "cmd" Run shell command inside sandbox
open_url.sh URL_OR_PATH Open URL or file in default app
launch_app.sh APP_NAME Launch app (e.g. firefox, vscode)
stream_start.sh [--auth] Start VNC stream; --auth for password-protected
stream_stop.sh (none) Stop VNC stream
get_cursor.sh (none) Print CURSOR_X and CURSOR_Y
get_screen_size.sh (none) Print SCREEN_WIDTH and SCREEN_HEIGHT
list_windows.sh [APP_NAME] List app windows or show active window
wait.sh MILLISECONDS Wait N ms (sandbox-side)

##...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/eyhn/e2b-desktop
Version
—
Commit
f6d43844551519ecfb56728ccdef24a647134163
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# E2B Desktop Skill

Control a headless Linux desktop (Ubuntu + XFCE) via the `e2b-desktop` Python SDK.
All scripts live in `scripts/` and wrap the SDK in bash for easy agent use.

## Prerequisites

```bash
pip install e2b-desktop
export E2B_API_KEY=e2b_***
```

## State Management

- `start_sandbox.sh` saves the sandbox ID to `~/.e2b_state`
- All other scripts auto-load it from there
- Override anytime with `export E2B_SANDBOX_ID=<id>`
- Sandboxes survive script exit — reconnect with `Sandbox.connect(sandbox_id)`

## Scripts

| Script | Usage | Description |
|---|---|---|
| `start_sandbox.sh` | `[--resolution 1280x800] [--timeout 300] [--stream]` | Create sandbox; optionally start VNC stream |
| `kill_sandbox.sh` | `[SANDBOX_ID]` | Kill sandbox and remove state |
| `screenshot.sh` | `[OUTPUT_FILE]` | Take screenshot → PNG (default: `/tmp/e2b_screenshot.png`) |
| `click.sh` | `X Y` | Left click at coordinates |
| `right_click.sh` | `X Y` | Right click |
| `double_click.sh` | `X Y` | Double click |
| `middle_click.sh` | `X Y` | Middle click |
| `move_mouse.sh` | `X Y` | Move cursor (no click) |
| `drag.sh` | `X1 Y1 X2 Y2` | Click-drag between two points |
| `scroll.sh` | `AMOUNT` | Scroll (positive=up, negative=down) |
| `type_text.sh` | `"text"` | Type text at current cursor |
| `press_key.sh` | `KEY [KEY2...]` | Press key or combo (e.g. `ctrl c`) |
| `run_command.sh` | `"cmd"` | Run shell command inside sandbox |
| `open_url.sh` | `URL_OR_PATH` | Open URL or file in default app |
| `launch_app.sh` | `APP_NAME` | Launch app (e.g. `firefox`, `vscode`) |
| `stream_start.sh` | `[--auth]` | Start VNC stream; `--auth` for password-protected |
| `stream_stop.sh` | _(none)_ | Stop VNC stream |
| `get_cursor.sh` | _(none)_ | Print `CURSOR_X` and `CURSOR_Y` |
| `get_screen_size.sh` | _(none)_ | Print `SCREEN_WIDTH` and `SCREEN_HEIGHT` |
| `list_windows.sh` | `[APP_NAME]` | List app windows or show active window |
| `wait.sh` | `MILLISECONDS` | Wait N ms (sandbox-side) |

##...

相关技能

OpenClaw

humanpages

human-pages-ai

Search and hire real humans for tasks — photography, delivery, research, and more

OpenClaw

openclaw-skills

zseven-w

Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.

OpenClaw

0xarchive

0xfantommenace

Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality. Use when the user...

OpenClaw

1sec-security

cutmob

Install, configure, and manage 1-SEC — an open-source, all-in-one cybersecurity platform (16 modules, single binary) on Linux servers and VPS instances. Use when the user asks to secure a server, install securi...