当前位置: 首页 > Skill >

Rebind Computer Use

Rebind Computer Use

Rebind Computer Use

通过 Rebind 使用真实硬件键盘和鼠标控制电脑,实现点击、输入、浏览、填表、操作任何桌面 GUI,系统识别为真实 USB HID设备。

1.0.2 2026.11.17 564
获取Skill文件查看使用说明
作 者:许澄 许可证: 更新时间:2026.11.17
本文目录展开

Rebind Computer Use

You can drive a real computer through a hardware keyboard and mouse. The OS sees genuine USB input — there is no automation API to detect, and it works in any application, including ones that block synthetic input.

Setup (do this first — the skill does nothing without it)

This skill controls the machine through Rebind, a separate app. You need Rebind installed and its relay running before the agent can do anything.

  1. Install Rebind on the machine to be controlled — https://rebind.gg/download (Windows or macOS). Rebind drives a genuine USB HID device (a Teensy) for truly undetectable input, or a software-mode fallback if you have no device.
  2. Start the relay: in Rebind, load and run the Remote Access script. The skill talks to it over ws://127.0.0.1:19561. This is the #1 reason a first attempt fails — no relay, nothing works.
  3. Install this skill + register the MCP server:
    openclaw skills install @usinput/rebind-computer-use
    openclaw mcp add rebind --no-probe 
      --command bunx --arg @rebind.gg/mcp-server 
      --env REBIND_URL=ws://127.0.0.1:19561
    openclaw config set skills.entries.rebind-computer-use.env.REBIND_URL ws://127.0.0.1:19561
    
  4. Confirm the relay is reachable: bunx @rebind.gg/mcp-server --selftest
  5. Start a NEW OpenClaw session — skills are snapshotted at session start, so one installed mid-session stays invisible until you restart.

Full walkthrough (Windows pointer-precision note, auth tokens, troubleshooting) is in README.md. The rest of this file is the operating policy the agent follows once setup is done.

Script first, screenshots second

Screenshots are by far the most expensive thing you do: every one you take is re-sent on every later turn, so a screenshot-per-action loop costs quadratically. The discipline that keeps tasks fast and cheap:

  • Batch every deterministic sequence into ONE run_lua call — launching apps, placing windows, focusing, typing known text, pressing known keys, waiting for a window or process. End the script with return <value> and use that return value as your verification; it costs almost nothing.
  • Verify once, at checkpoints — after a batch, after a navigation, before an irreversible step. Not after every keystroke.
  • Prefer the cheap reads: screenshot_window (one window, monitor-proof) over screenshot (whole display); zoom (small crop) over either when you only need to read a value or a label; run_lua return values over any image.
  • Fall back to full screenshots only for genuinely visual reasoning a script cannot resolve.

Open → place → interact

New windows open wherever the OS pleases — often on a display you are not looking at. Never guess with screenshots on a multi-monitor machine. Open the app, wait for its window, move it somewhere known, THEN look:

System.ExecDetached("cmd", {"/c", "start", "", "https://news.ycombinator.com"})
local h = Window.Wait("Hacker News", 8000)
Window.Move(h, 0, 0, 1600, 1000)  -- pin to the primary display
return Window.Get(h)

Then screenshot_window that window and continue.

The visual loop (when scripts can't decide)

  1. screenshot_window (or screenshot) — capture. The cursor is a red crosshair. ALL click/move_mouse coordinates are pixel coordinates in the most recent capture, never in the real screen.
  2. Reason about what to do next from what you see.
  3. Act — click, type, key, scroll, focus_window, or a run_lua batch.
  4. Verify at the next checkpoint — cheaply (zoom, screenshot_window, a script return value). If an action didn't do what you intended, correct and retry — do not assume success, and do not fire two blind actions in a row.

Tools

  • run_lua(source) — run a Luau script on the machine and get its return value as JSON. Namespaces: System, HID, Input, Screen, Window, Process, File, Clipboard, Net, Macro, Env, Log. Your primary tool for anything deterministic.
  • screenshot(display?) — capture a whole display.
  • screenshot_window(title?) — capture one window (active if omitted). Smaller, cheaper, monitor-proof. Prefer this.
  • zoom(x,y,w,h) — re-read a region of the last capture at native resolution. Read-only: click coordinates still refer to the last full capture.
  • list_displays — enumerate monitors.
  • click(x,y,button?,double?) — landing is verified & corrected before pressing.
  • move_mouse(x,y) — move without clicking.
  • type(text) — type into the focused element.
  • key(combo) — press a key/combo. Names: Enter, Escape, Tab, Backspace, arrows Up/Down/Left/Right, letters/digits, and modifiers LCtrl, LAlt, LShift, LMeta. Join combos with +: LCtrl+L (focus the address bar), LCtrl+C, LAlt+Tab.
  • scroll(clicks) — wheel; positive up, negative down.
  • list_windows(filter?) / focus_window(handle) — window management.
  • wait(ms) — let pages/animations settle (1–10000).
  • get_cursor / active_window — cheap state reads.
  • calibrate — re-run the mouse scale probe (auto-runs at startup).

No shortcuts

System.Exec/System.ExecDetached exist to launch and manage applications — not to do the task itself. If the user asked you to operate a GUI, operate the GUI: do not curl a page instead of browsing it, and do not read an app's files instead of its window. Shortcutting produces answers the user did not ask for and skips the verification the GUI gives you.

Ergonomics

  • Prefer keyboard shortcuts over mouse for fiddly widgets: address bars (LCtrl+L), tabs, dropdowns, menus. Faster and far more reliable than pixel-hunting.
  • zoom before clicking anything with small text.
  • If a capture warns the mouse is not calibrated, treat every click as unverified: verify each one and correct.
  • Wait for loads (wait 500–1500ms, or Window.Wait in a script) before capturing after a navigation.
  • When you learn something machine-specific (display layout, an app's quirks, where a window opens), reuse it for the rest of the session instead of rediscovering it.

Safety — non-negotiable

  • Confirm before irreversible or outbound actions. Before sending an email, submitting a form, making a payment, deleting anything, or posting publicly: STOP, summarize exactly what you are about to do (recipient, amount, content), and ask the user to confirm in the chat. Only proceed on an explicit "yes".
  • Never enter credentials, payment details, or 2FA codes unless the user supplied them in this conversation for this exact purpose.
  • When unsure whether an action is reversible, treat it as irreversible.
  • If you get lost (3 failed verifications in a row), stop and report what you see — do not flail.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,016
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,004
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,002
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,001
PHP集成RabbitMQ实现消息队列的完整步骤

使用 php-amqplib 库,通过建立连接、声明交换机与队列并绑定,即可在 PHP 中实现消息的发送与消费。

2026.05.24 1,001
Apache开启.htaccess及使用方法详解

本文介绍如何在本地Apache环境中启用.htaccess文件,主要涉及修改httpd.conf中的AllowOverride参数。同时详细解析.htaccess的多种实用功能,包括自定义错误页面、目录密码保护、IP访问限制、URL自动转向、默认首页设置以及防止图片盗链等配置方法,并分析了使用.htaccess对服务器性能和安全性的潜在影响。

2026.05.09 1,001
Skill 文件
  • SKILL.md
    • Rebind Computer Use
    • Setup (do this first — the skill does nothing without it)
    • Script first, screenshots second
    • Open → place → interact
    • The visual loop (when scripts can't decide)
    • Tools
    • No shortcuts
    • Ergonomics
    • Safety — non-negotiable
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期