TopRank Skills

Home / Claw Skills / Intégration d'API / e2b-desktop
Official OpenClaw rules 36%

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.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 e2b-desktop 技能。 若已安装,则直接安装 e2b-desktop 技能。

Overview

Skill Key
eyhn/e2b-desktop
Author
eyhn
Source Repo
openclaw/skills
Version
-
Source Path
skills/eyhn/e2b-desktop
Latest Commit SHA
f6d43844551519ecfb56728ccdef24a647134163

Extracted Content

SKILL.md excerpt

# 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) |

##...

Related Claw Skills