← 返回 Skills 市场
dionren

Claw Keyboard

作者 任嘉 · GitHub ↗ · v1.0.4 · MIT-0
darwinlinuxwin32 ✓ 安全检测通过
178
总下载
0
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install claw-keyboard
功能描述
Control keyboard RGB backlight, custom LEDs, macros, key mapping, and profile settings via USB HID. Use when the user asks to control keyboard lighting, mana...
使用说明 (SKILL.md)

claw-keyboard

Use claw-keyboard to discover and control USB keyboards that support the vendor HID protocol (UsagePage 0xFF60, Usage 0x61). Tested with LUXSWH R68pro. Supports RGB backlight, custom per-key LEDs, macros, key remapping, profile tuning, KLE layout rendering, and multi-keyboard management.

Quick start

  • claw-keyboard discover — scan for connected keyboards
  • claw-keyboard info — show keyboard details (rows, cols, firmware, mode, RGB state)
  • claw-keyboard rgb color red — set backlight to red
  • claw-keyboard rgb brightness 128 — set brightness (0-255)
  • claw-keyboard rgb effect 1 — set lighting effect mode (0-20)
  • claw-keyboard rgb save — persist current settings to flash

Device selection

When multiple keyboards are connected, use --device \x3Cpath> to target a specific one. Run discover to list available paths.

RGB control

  • claw-keyboard rgb status — show current brightness, effect, speed, color
  • claw-keyboard rgb color \x3Cname|hue> — set color by name (red, green, blue, cyan, purple, orange, yellow, white) or hue value (0-255)
  • claw-keyboard rgb brightness \x3C0-255> — set LED brightness
  • claw-keyboard rgb effect \x3C0-20> — set lighting effect mode (0 = rainbow, 1 = solid, 2-20 = animations)
  • claw-keyboard rgb speed \x3C0-5> — set animation speed (0 = slowest, 5 = fastest)
  • claw-keyboard rgb save — write current config to flash (avoid frequent calls — flash has limited write cycles)

Custom LED control

  • claw-keyboard led on \x3Crow> \x3Ccol> — turn on a single LED at row/col position
  • claw-keyboard led off \x3Crow> \x3Ccol> — turn off a single LED
  • claw-keyboard led clear — turn off all LEDs
  • claw-keyboard led list — list currently lit LED positions
  • claw-keyboard led sync-start — start onboard LED effect sync (keyboard reports LED data to PC)
  • claw-keyboard led sync-stop — stop onboard LED effect sync

Key mapping

  • claw-keyboard keymap read — dump current key layout (all layers)
  • claw-keyboard keymap layers — show number of supported layers
  • claw-keyboard keymap get \x3Clayer> \x3Crow> \x3Ccol> — read the 2-byte HID key value at a position
  • claw-keyboard keymap set \x3Clayer> \x3Crow> \x3Ccol> \x3Ckeyvalue> — set a single key (4-digit hex, e.g. 0029 = Escape). Requires user confirmation — this changes a physical key binding on the keyboard.
  • claw-keyboard keymap write \x3Cfile> — write complete keymap from hex file. Requires user confirmation — this overwrites all key bindings.

Macro management

  • claw-keyboard macro list — show macro count, storage usage, and parsed macros
  • claw-keyboard macro clear — erase all macros. Requires user confirmation — this deletes all macros permanently.
  • claw-keyboard macro dump — hex dump of raw macro storage data
  • claw-keyboard macro set \x3Cactions> [\x3Cactions>...] — configure macros from action strings (replaces all existing macros). Requires user confirmation.
    • Action format: tap:\x3Ckeycode>, press:\x3Ckeycode>, release:\x3Ckeycode>, delay:\x3Cms> separated by commas
    • Example: claw-keyboard macro set "press:0xE0,tap:0x06,release:0xE0" (Ctrl+C)

Profile parameters

  • claw-keyboard profile get — read profile parameters (debounce, TAP layer, sleep, power-down)
  • claw-keyboard profile set — configure profile parameters (use --debounce, --tap, --sleep, --powerdown flags)

KLE layout tools

  • claw-keyboard kle info \x3Cfile.json> — show parsed KLE layout summary
  • claw-keyboard kle render \x3Cfile.json> — render KLE JSON layout to SVG

Other

  • claw-keyboard reset — factory reset keyboard. Requires explicit user confirmation — this permanently erases all settings, key mappings, and macros from the keyboard, restoring it to factory defaults. Only run when the user explicitly requests a factory reset.

Safety

The following commands modify keyboard hardware state and should only be run with explicit user confirmation. Never run these autonomously:

  • reset — factory reset (irreversible, erases everything)
  • macro clear / macro set — erases or replaces all macros
  • keymap set / keymap write — changes key bindings
  • rgb save — writes to flash (limited write cycles)

Read-only commands (discover, info, rgb status, keymap read, macro list, profile get, kle info) are always safe to run.

Notes

  • The tool auto-discovers keyboards by scanning for HID interfaces with UsagePage 0xFF60 and Usage 0x61, then verifying via a challenge-response handshake.
  • Not all keyboards expose the vendor HID interface. If discover finds nothing, the keyboard may not support this protocol.
  • On macOS, you may need to grant HID access permission to the terminal application in System Settings > Privacy & Security > Input Monitoring.
  • On Linux, you may need udev rules to access USB HID devices without root. Create /etc/udev/rules.d/99-claw-keyboard.rules with SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1a86", MODE="0666" and run sudo udevadm control --reload-rules.
  • SHA256 checksums for all binaries are available in the SHA256SUMS file on the GitHub Releases page. Verify after downloading: shasum -a 256 -c SHA256SUMS.
  • Use --json flag for machine-readable output.
安全使用建议
This skill appears to do what it says (control USB keyboards) and only needs the 'claw-keyboard' binary. Before installing, verify the binary's provenance: prefer a release pinned to a specific version and verify checksums if available rather than using the 'latest' download links in SKILL.md. Inspect the upstream GitHub repo (https://github.com/clawdevice/claw-keyboard) and release artifacts; avoid running the binary as an administrator/root user if possible. Be cautious about destructive commands (factory reset, write keymap, erase macros) — the skill’s docs say they require explicit confirmation, but you should still only run them yourself. Finally, clarify the mismatch between the registry metadata (which said no install spec) and the SKILL.md install entries; if you want to eliminate autonomous risk, disable model/autonomous invocation so the agent cannot run hardware-modifying commands without your approval.
功能分析
Type: OpenClaw Skill Name: claw-keyboard Version: 1.0.4 The claw-keyboard skill is a legitimate hardware utility designed to manage USB HID keyboards (specifically the LUXSWH R68pro). It provides functionality for RGB lighting, key remapping, and macro management, with the SKILL.md explicitly instructing the AI agent to seek user confirmation before performing any destructive or hardware-modifying actions (e.g., factory resets or keymap overwrites). The installation process uses standard OpenClaw download patterns from a project-specific GitHub repository, and no evidence of data exfiltration or malicious prompt injection was found.
能力评估
Purpose & Capability
The skill is an instruction-only wrapper around a native binary named 'claw-keyboard' and claims to control USB HID keyboards (RGB, macros, keymap, profiles). Requiring the 'claw-keyboard' binary is coherent with that purpose; no unrelated credentials, files, or services are requested.
Instruction Scope
SKILL.md lists only commands for discovering and controlling keyboards (rgb, led, keymap, macro, profile, KLE render). It explicitly marks destructive operations (factory reset, overwriting keymaps/macros) as requiring explicit user confirmation and warns not to run them autonomously. The instructions do not request environment variables or access to unrelated system files.
Install Mechanism
The SKILL.md includes download-based install entries pointing to GitHub Releases (good: a well-known host). However the URLs use the 'latest' release path, which is mutable and increases supply-chain risk compared with pinned versioned releases and checksums. Also, registry metadata indicated 'No install spec' while SKILL.md contains install entries — this mismatch should be clarified.
Credentials
No environment variables, credentials, or unrelated config paths are requested. The skill's access needs (direct USB HID interaction via the binary) are proportional to controlling a keyboard.
Persistence & Privilege
The skill is not always-enabled and is user-invocable. Model invocation is allowed (normal platform default), but because the skill can perform destructive hardware actions, you should rely on the SKILL.md requirement for explicit user confirmation. If you do not want any chance of autonomous hardware modification, consider disabling autonomous invocation for this skill at install-time.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install claw-keyboard
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /claw-keyboard 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.4
修复 ClawHub 安全扫描告警:metadata 改为纯 YAML 格式、破坏性操作添加用户确认标注、新增 Safety 章节
v1.0.3
修复 R68pro 通信协议(握手算法、macOS HID 兼容性)、新增键盘型号描述架构(models 包)、补全 SKILL.md 全部 CLI 命令文档
v1.0.2
v1.0.2 — 去除 SEMICO 引用、添加 R68pro 设备 ID、添加 SHA256 校验和 Linux udev 权限说明、添加 CLAUDE.md
v1.0.1
v1.0.1 — 公开仓库迁移至 clawdevice/claw-keyboard
v1.0.0
v1.0.0 — 首个正式发布。支持 RGB 背光控制、宏管理、键位读取、出厂重置。
元数据
Slug claw-keyboard
版本 1.0.4
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 5
常见问题

Claw Keyboard 是什么?

Control keyboard RGB backlight, custom LEDs, macros, key mapping, and profile settings via USB HID. Use when the user asks to control keyboard lighting, mana... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 178 次。

如何安装 Claw Keyboard?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install claw-keyboard」即可一键安装,无需额外配置。

Claw Keyboard 是免费的吗?

是的,Claw Keyboard 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Claw Keyboard 支持哪些平台?

Claw Keyboard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux, win32)。

谁开发了 Claw Keyboard?

由 任嘉(@dionren)开发并维护,当前版本 v1.0.4。

💬 留言讨论