/install claw-keyboard
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 keyboardsclaw-keyboard info— show keyboard details (rows, cols, firmware, mode, RGB state)claw-keyboard rgb color red— set backlight to redclaw-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, colorclaw-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 brightnessclaw-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 positionclaw-keyboard led off \x3Crow> \x3Ccol>— turn off a single LEDclaw-keyboard led clear— turn off all LEDsclaw-keyboard led list— list currently lit LED positionsclaw-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 layersclaw-keyboard keymap get \x3Clayer> \x3Crow> \x3Ccol>— read the 2-byte HID key value at a positionclaw-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 macrosclaw-keyboard macro clear— erase all macros. Requires user confirmation — this deletes all macros permanently.claw-keyboard macro dump— hex dump of raw macro storage dataclaw-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)
- Action format:
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,--powerdownflags)
KLE layout tools
claw-keyboard kle info \x3Cfile.json>— show parsed KLE layout summaryclaw-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 macroskeymap set/keymap write— changes key bindingsrgb 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
0xFF60and Usage0x61, then verifying via a challenge-response handshake. - Not all keyboards expose the vendor HID interface. If
discoverfinds 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.ruleswithSUBSYSTEM=="hidraw", ATTRS{idVendor}=="1a86", MODE="0666"and runsudo udevadm control --reload-rules. - SHA256 checksums for all binaries are available in the
SHA256SUMSfile on the GitHub Releases page. Verify after downloading:shasum -a 256 -c SHA256SUMS. - Use
--jsonflag for machine-readable output.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install claw-keyboard - After installation, invoke the skill by name or use
/claw-keyboard - Provide required inputs per the skill's parameter spec and get structured output
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 178 downloads so far.
How do I install Claw Keyboard?
Run "/install claw-keyboard" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Claw Keyboard free?
Yes, Claw Keyboard is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Claw Keyboard support?
Claw Keyboard is cross-platform and runs anywhere OpenClaw / Claude Code is available (darwin, linux, win32).
Who created Claw Keyboard?
It is built and maintained by 任嘉 (@dionren); the current version is v1.0.4.