# Send E2B Desktop to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "e2b-desktop",
    "name": "E2B Desktop",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/EYHN/e2b-desktop",
    "canonicalUrl": "https://clawhub.ai/EYHN/e2b-desktop",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/e2b-desktop",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=e2b-desktop",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/_connect.py",
      "scripts/click.sh",
      "scripts/double_click.sh",
      "scripts/drag.sh",
      "scripts/get_cursor.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "e2b-desktop",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T06:11:50.406Z",
      "expiresAt": "2026-05-08T06:11:50.406Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=e2b-desktop",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=e2b-desktop",
        "contentDisposition": "attachment; filename=\"e2b-desktop-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "e2b-desktop"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/e2b-desktop"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/e2b-desktop",
    "downloadUrl": "https://openagent3.xyz/downloads/e2b-desktop",
    "agentUrl": "https://openagent3.xyz/skills/e2b-desktop/agent",
    "manifestUrl": "https://openagent3.xyz/skills/e2b-desktop/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/e2b-desktop/agent.md"
  }
}
```
## Documentation

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

ScriptUsageDescriptionstart_sandbox.sh[--resolution 1280x800] [--timeout 300] [--stream]Create sandbox; optionally start VNC streamkill_sandbox.sh[SANDBOX_ID]Kill sandbox and remove statescreenshot.sh[OUTPUT_FILE]Take screenshot → PNG (default: /tmp/e2b_screenshot.png)click.shX YLeft click at coordinatesright_click.shX YRight clickdouble_click.shX YDouble clickmiddle_click.shX YMiddle clickmove_mouse.shX YMove cursor (no click)drag.shX1 Y1 X2 Y2Click-drag between two pointsscroll.shAMOUNTScroll (positive=up, negative=down)type_text.sh"text"Type text at current cursorpress_key.shKEY [KEY2...]Press key or combo (e.g. ctrl c)run_command.sh"cmd"Run shell command inside sandboxopen_url.shURL_OR_PATHOpen URL or file in default applaunch_app.shAPP_NAMELaunch app (e.g. firefox, vscode)stream_start.sh[--auth]Start VNC stream; --auth for password-protectedstream_stop.sh(none)Stop VNC streamget_cursor.sh(none)Print CURSOR_X and CURSOR_Yget_screen_size.sh(none)Print SCREEN_WIDTH and SCREEN_HEIGHTlist_windows.sh[APP_NAME]List app windows or show active windowwait.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
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: EYHN
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T06:11:50.406Z
- Expires at: 2026-05-08T06:11:50.406Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/e2b-desktop)
- [Send to Agent page](https://openagent3.xyz/skills/e2b-desktop/agent)
- [JSON manifest](https://openagent3.xyz/skills/e2b-desktop/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/e2b-desktop/agent.md)
- [Download page](https://openagent3.xyz/downloads/e2b-desktop)