Full desktop computer use for headless Linux servers. Xvfb + XFCE virtual desktop with xdotool automation. 17 actions (click, type, scroll, screenshot, drag,...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install computer-use或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install computer-use⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/computer-use/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: computer-use description: Full desktop computer use for headless Linux servers. Xvfb + XFCE virtual desktop with xdotool automation. 17 actions (click, type, scroll, screenshot, drag, etc). Unlike OpenClaw's browser tool, operates at the X11 level so websites cannot detect automation. Includes VNC for live viewing. version: 1.2.1 ---
Full desktop GUI control for headless Linux servers. Creates a virtual display (Xvfb + XFCE) so you can run and control desktop applications on VPS/cloud instances without a physical monitor.
:99Run the setup script to install everything (systemd services, flicker-free VNC):
./scripts/setup-vnc.sh
This installs:
:99All services auto-start on boot and auto-restart on crash.
| Action | Script | Arguments | Description | |--------|--------|-----------|-------------| | screenshot | screenshot.sh | — | Capture screen → base64 PNG | | cursor_position | cursor_position.sh | — | Get current mouse X,Y | | mouse_move | mouse_move.sh | x y | Move mouse to coordinates | | left_click | click.sh | x y left | Left click at coordinates | | right_click | click.sh | x y right | Right click | | middle_click | click.sh | x y middle | Middle click | | double_click | click.sh | x y double | Double click | | triple_click | click.sh | x y triple | Triple click (select line) | | left_click_drag | drag.sh | x1 y1 x2 y2 | Drag from start to end | | left_mouse_down | mouse_down.sh | — | Press mouse button | | left_mouse_up | mouse_up.sh | — | Release mouse button | | type | type_text.sh | "text" | Type text (50 char chunks, 12ms delay) | | key | key.sh | "combo" | Press key (Return, ctrl+c, alt+F4) | | hold_key | hold_key.sh | "key" secs | Hold key for duration | | scroll | scroll.sh | dir amt [x y] | Scroll up/down/left/right | | wait | wait.sh | seconds | Wait then screenshot | | zoom | zoom.sh | x1 y1 x2 y2 | Cropped region screenshot |
export DISPLAY=:99
# Take screenshot
./scripts/screenshot.sh
# Click at coordinates
./scripts/click.sh 512 384 left
# Type text
./scripts/type_text.sh "Hello world"
# Press key combo
./scripts/key.sh "ctrl+s"
# Scroll down
./scripts/scroll.sh down 5
ctrl+End to jump to page bottom in browsersWatch the desktop in real-time via browser or VNC client.
# SSH tunnel (run on your local machine)
ssh -L 6080:localhost:6080 your-server
# Open in browser
http://localhost:6080/vnc.html
# SSH tunnel
ssh -L 5900:localhost:5900 your-server
# Connect VNC client to localhost:5900
Add to ~/.ssh/config for automatic tunneling:
Host your-server
HostName your.server.ip
User your-user
LocalForward 6080 127.0.0.1:6080
LocalForward 5900 127.0.0.1:5900
Then just ssh your-server and VNC is available.
# Check status
systemctl status xvfb xfce-minimal x11vnc novnc
# Restart if needed
sudo systemctl restart xvfb xfce-minimal x11vnc novnc
xvfb → xfce-minimal → x11vnc → novnc
-noxdamage for stabilityexport DISPLAY=:99
# Chrome — only use --no-sandbox if the kernel lacks user namespace support.
# Check: cat /proc/sys/kernel/unprivileged_userns_clone
# 1 = sandbox works, do NOT use --no-sandbox
# 0 = sandbox fails, --no-sandbox required as fallback
# Using --no-sandbox when unnecessary causes instability and crashes.
if [ "$(cat /proc/sys/kernel/unprivileged_userns_clone 2>/dev/null)" = "0" ]; then
google-chrome --no-sandbox &
else
google-chrome &
fi
xfce4-terminal & # Terminal
thunar & # File manager
Note: Snap browsers (Firefox, Chromium) have sandbox issues on headless servers. Use Chrome .deb instead:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt-get install -f
If you prefer manual setup instead of setup-vnc.sh:
# Install packages
sudo apt install -y xvfb xfce4 xfce4-terminal xdotool scrot imagemagick dbus-x11 x11vnc novnc websockify
# Run the setup script (generates systemd services, masks xfdesktop, starts everything)
./scripts/setup-vnc.sh
If you prefer fully manual setup, the setup-vnc.sh script generates all systemd service files inline -- read it for the exact service definitions.
pgrep xfwm4sudo systemctl restart xfce-minimal/usr/bin/xfdesktop)--heartbeat 30 flag-noxdamage flag-noxdamage -noxfixes flagsInstalled by setup-vnc.sh:
xvfb xfce4 xfce4-terminal xdotool scrot imagemagick dbus-x11 x11vnc novnc websockify安装 Computer Use 后,可以对 AI 说这些话来触发它
Help me get started with Computer Use
Explains what Computer Use does, walks through the setup, and runs a quick demo based on your current project
Use Computer Use to full desktop computer use for headless Linux servers
Invokes Computer Use with the right parameters and returns the result directly in the conversation
What can I do with Computer Use in my marketing & growth workflow?
Lists the top use cases for Computer Use, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/computer-use/ 目录(个人级,所有项目可用),或 .claude/skills/computer-use/(项目级)。重启 AI 客户端后,用 /computer-use 主动调用,或让 AI 根据上下文自动发现并使用。
Computer Use 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Computer Use 可免费安装使用。请查阅仓库了解许可证信息。
Full desktop computer use for headless Linux servers. Xvfb + XFCE virtual desktop with xdotool automation. 17 actions (click, type, scroll, screenshot, drag,...
Computer Use 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using Computer Use
Identifies repetitive steps in your workflow and sets up Computer Use to handle them automatically