A robust skill for AI agents to programmatically control physical USB relay modules for hardware automation and power management.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install control-usb-relay
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install control-usb-relay using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Control USB Relay skill empowers AI coding agents to bridge the gap between software logic and physical hardware. By utilizing Openclaw Skills, developers can automate the switching of external devices, manage power cycles, and integrate physical triggers into their broader automation workflows. This skill specifically targets Linux environments where USB relay modules are controlled via serial communication.
Built to handle the nuances of serial protocols, this skill ensures reliable interaction with hardware modules. It simplifies the complexity of sending hex commands to serial ports, making it easier for agents to perform tasks like restarting a router, toggling laboratory equipment, or managing smart office peripherals through Openclaw Skills.
Before using this skill within Openclaw Skills, ensure your Linux environment is properly configured for serial access.
# Install Python 3 if not already present
sudo apt update && sudo apt install python3
# Add your user to the dialout group to permit serial port access
sudo usermod -a -G dialout $USER
# Verify the relay is detected at the expected endpoint
ls /dev/ttyUSB*
Note: You may need to restart your session or reboot for group permission changes to take effect.
The skill manages hardware interactions using a non-persistent, session-based approach to data tracking.
| Attribute | Type | Description |
|---|---|---|
| Endpoint | String | The hardware path, default is /dev/ttyUSB1 |
| State | Boolean | Current ON/OFF status tracked in-memory |
| Protocols | Hex Codes | Predefined command strings for different relay modules |
| Dependencies | Binary | Requires python3 and linux-specific serial drivers |
Loading
A professional financial modeling tool for e-commerce teams to pressure-test the commercial viability of discounts, bundles, and marketing offers.

A mission-critical security protocol that mandates explicit user authorization before an AI agent performs any system or file modifications.

A high-performance, pure C implementation for offline Chinese and mixed English-Chinese speech-to-text conversion.

A powerful automation interface to manage Trello boards, lists, and cards directly through the Trello REST API.

A professional-grade IMAP automation skill for performing deep mailbox inspection, incremental synchronization, and structured email data management.

A standardized protocol for AI agents to transparently display terminal commands and their full execution outputs.








































