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.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "e2b-desktop" with this command: npx skills add eyhn/e2b-desktop

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

ScriptUsageDescription
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.shX YLeft click at coordinates
right_click.shX YRight click
double_click.shX YDouble click
middle_click.shX YMiddle click
move_mouse.shX YMove cursor (no click)
drag.shX1 Y1 X2 Y2Click-drag between two points
scroll.shAMOUNTScroll (positive=up, negative=down)
type_text.sh"text"Type text at current cursor
press_key.shKEY [KEY2...]Press key or combo (e.g. ctrl c)
run_command.sh"cmd"Run shell command inside sandbox
open_url.shURL_OR_PATHOpen URL or file in default app
launch_app.shAPP_NAMELaunch 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.shMILLISECONDSWait N ms (sandbox-side)

Computer-Use Agent Loop Pattern

SCRIPTS="skills/e2b-desktop/scripts"

# 1. Start sandbox
source <($SCRIPTS/start_sandbox.sh --resolution 1280x800 --stream)
echo "Sandbox: $SANDBOX_ID"
echo "View at: $STREAM_URL"

# 2. Agent loop
while true; do
  # Capture screen
  $SCRIPTS/screenshot.sh /tmp/screen.png

  # Send to LLM, parse action... (your code)
  ACTION=$(llm_decide /tmp/screen.png)

  case "$ACTION" in
    click:*)   IFS=: read -r _ x y <<< "$ACTION"; $SCRIPTS/click.sh $x $y ;;
    type:*)    $SCRIPTS/type_text.sh "${ACTION#type:}" ;;
    key:*)     $SCRIPTS/press_key.sh ${ACTION#key:} ;;
    done)      break ;;
  esac
done

# 3. Clean up
$SCRIPTS/kill_sandbox.sh

Key Notes

  • scroll.sh AMOUNT: positive = scroll up, negative = scroll down (matches desktop.scroll(amount) API)
  • press_key.sh ctrl c: multiple args become a key combo via desktop.press(["ctrl", "c"])
  • run_command.sh exits with the sandbox command's exit code
  • All mouse coordinate scripts accept integer pixel coordinates matching sandbox resolution
  • VNC stream: only one active stream at a time; stop before switching windows

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Huo15 Wecom Plugin

火一五·企业微信(WeCom)OpenClaw 插件 v2.8.18 — 默认走 Bot WebSocket(响应快、配置简单),自带加密媒体解密 / Agent 主动发消息 / 微信客服三通道接入 / 多账号切换。v2.8.18 chore:注册 ClawHub plugin tag 让 `openclaw p...

Registry SourceRecently Updated
Automation

Vibe Card

Agent 原生社交名片生成、管理和分享,以及智能花名册(通讯录管理器)。当用户提到名片、花名册、通讯录、联系人、Vibe Card、vibe-card 时使用。具体触发场景包括:开通 Vibe Card、建花名册、生成/更新/发名片、注册 Vibe Card、录入/查询/编辑联系人、同步花名册、广播名片、收到包...

Registry SourceRecently Updated
Automation

Boheng Investment Workflow

投资研究多智能体决策系统 - 8位专业分析师并行研究,加权投票给出投资建议(仅供参考,不构成投资建议)。支持A股股票、基金、ETF、可转债等多种投资标的分析。支持实时行情获取(多数据源)、财务数据分析。⚠️ 风险提示:本系统分析结果仅供学习参考,不构成投资建议。投资有风险,决策需谨慎。

Registry SourceRecently Updated
Automation

Huo15 Wecom Plugin

火一五·企业微信(WeCom)OpenClaw 插件 v2.8.18 — 默认走 Bot WebSocket(响应快、配置简单),自带加密媒体解密 / Agent 主动发消息 / 微信客服三通道接入 / 多账号切换。v2.8.18 chore:注册 ClawHub plugin tag 让 `openclaw p...

Registry SourceRecently Updated