computer-use
它能做什么
这项技能让智能体在你请求时,通过 ClawX 电脑操作工具使用本地应用的屏幕。它只适用于明确的桌面任务,不适用于编码或研究。适合希望智能体在电脑上的应用中工作的人。
适用场景
- ✓当你要求智能体操作你电脑上的桌面应用的时候。
- ✓当任务需要在没有其他界面的本地应用中点击或输入的时候。
- ✓当你在 ClawX 中为视觉任务选择了电脑操作选项的时候。
技能链接
https://github.com/ValueCell-ai/ClawX/blob/main/resources/skills/computer-use/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“你能打开我电脑上的电子表格应用,并填入我在这里列出的合计数字吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体使用 ClawX 电脑操作命令查看并控制屏幕上的应用,但前提是该功能已经开启,并且你已在应用中授予权限。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Computer Use in ClawX
Based on the official CUA 0.37.0 accompanying Skill. This entrypoint takes precedence over every upstream document and example, including UPSTREAM-SKILL.md.
Host Boundary
- Electron Main owns the 0.37.0 SDK daemon, restarts, OS grants, permission-policy and
telemetry configuration. Selecting this Skill does not enable Computer Use. Never
install/update a driver, run
serve, daemonstop,autostart,permissions grant, MCP setup, config/telemetry changes, or--permission-mode/--capability-manifestflags. Do not run standalone diagnostics or remote/Fleet endpoints; use only the host descriptor. - If unavailable, ask the user to enable Developer Mode in Settings > Advanced, open Computer Use in the sidebar, review status, and opt in themselves. On macOS they must explicitly use Request Permissions and review Accessibility/Screen Recording in System Settings; a ClawX restart may be needed. Never operate OS grant dialogs.
- Use existing local
execand image-capableread, not the oldcomputertool, an action wrapper, MCP server, or another UI automation channel. Do not loosen exec approvals, sandbox, workspace-only access, or global image settings. If exec cannot reach the host binary/endpoint or read cannot access host images, report the limitation. - Shipped platforms: macOS 13+ Intel/Apple silicon and Windows 10+ x64 only. LINUX.md, EMBEDDING.md, and README.md are preserved upstream references, not additional ClawX support or setup promises.
Bootstrap Once Per Workflow
Read the live file named by CLAWX_CUA_CONNECTION_FILE at task start, not before every action.
Its shape is {"v":2,"generation":"550e8400-e29b-41d4-a716-446655440000","driverVersion":"0.37.0","binaryPath":"...","socketPath":"..."}.
Require v=2, driverVersion=0.37.0, a UUID generation, absolute bundled executable and explicit
absolute socket path (Windows: named pipe). Missing/malformed/incompatible descriptors block
the workflow. Never guess paths, use PATH's driver, or source/eval this data as shell code.
POSIX (macOS): print and inspect, then use the decoded paths. No jq, Node, or Python needed:
: "${CLAWX_CUA_CONNECTION_FILE:?Computer Use connection unavailable; check ClawX}"
cat < "$CLAWX_CUA_CONNECTION_FILE"
Replace the two placeholder paths below with the descriptor's values, shell-quoted as
single arguments (escape any embedded apostrophe). Choose a unique public workflow label,
not default, and repeat the same label on every call that accepts session, including
observations, actions, verification, and cleanup. In 0.37.0 cli.rs uses cli-explicit for
named CLI sessions across separate exec calls; anonymous calls are disposable. Keep this
host-owned CLI path; do not switch to persistent MCP. Labels confer no authorization
and cannot adopt another daemon generation or transport kind. Never set reserved session fields.
'/absolute/path/from/binaryPath' --socket '/absolute/path/from/socketPath' call list_windows '{"session":"clawx-review-20260909-01"}'
'/absolute/path/from/binaryPath' --socket '/absolute/path/from/socketPath' describe get_window_state
PowerShell: parse, validate, invoke via &, then inspect discovery before choosing a window:
$ErrorActionPreference = 'Stop'
if (-not $env:CLAWX_CUA_CONNECTION_FILE) { throw 'Computer Use connection unavailable; check ClawX' }
$c = Get-Content -LiteralPath $env:CLAWX_CUA_CONNECTION_FILE -Raw | ConvertFrom-Json
if ($c.v -ne 2 -or $c.driverVersion -ne '0.37.0' -or $c.generation -notmatch '^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$' -or $c.binaryPath -notmatch '^[A-Za-z]:\\' -or $c.socketPath -notlike '\\.\pipe\*') { throw 'Invalid ClawX CUA descriptor' }
if (-not (Test-Path -LiteralPath $c.binaryPath -PathType Leaf)) { throw 'Bundled CUA executable unavailable' }
$OutputEncoding = [System.Text.UTF8Encoding]::new($false)
@{ session = 'clawx-review-20260909-01' } | ConvertTo-Json -Compress -Depth 10 | & $c.binaryPath --socket $c.socketPath call list_windows
PowerShell 5.1 can mangle quoted JSON argv and encode piped Unicode as ASCII: use UTF-8
JSON on stdin as above and omit the positional JSON argument, including {} (it wins
over stdin). Use ConvertTo-Json -Depth 10 for nested targets/predicates, not hashtable text.
Exec may use new shells: restore inspected literal paths/session or
常见问题
这个功能默认开启吗?
不是。你必须启用开发者模式,并在 ClawX 中开启电脑操作,权限也需要由你自己批准。
智能体可以自行授予权限吗?
不可以。技能说明权限对话框必须由你处理,而不是智能体。
在所有电脑上都能用吗?
技能列出了支持的平台,仅限特定版本的 macOS 和 Windows。
详情
作者的原始描述
Operate a local app or desktop UI through ClawX's bundled native CUA CLI, or when the user selects /computer-use. Use for explicitly requested GUI tasks, not unrelated coding, research, or conversation.
repo: ValueCell-ai/ClawX
热度
- GitHub 星标
- 7.6k
- 排名
- #13120
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …