简介
RealWorldClaw
原始描述
Give your AI agent physical world capabilities via RealWorldClaw — control ESP32 modules, read sensors (temperature, humidity, motion), actuate relays/servos...
通过你的 Agent 添加
安装目录:realworldclaw/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: realworldclaw description: "Give your AI agent physical world capabilities via RealWorldClaw — control ESP32 modules, read sensors (temperature, humidity, motion), actuate relays/servos/LEDs, and create automation rules. Use when: (1) controlling IoT/ESP32 hardware, (2) reading sensor data, (3) automating physical actions based on conditions, (4) managing RWC-compatible devices, (5) 3D printing related device control. NOT for: pure software tasks, cloud-only APIs unrelated to physical devices."
RealWorldClaw — Physical World for AI Agents
Give any AI agent the ability to sense and act in the physical world.
Setup
- Install dependencies:
pip install httpx paho-mqtt
- Configure device connection in
config.json(skill directory):
{
"api_url": "https://realworldclaw-api.fly.dev/api/v1",
"devices": [
{
"name": "my-esp32",
"ip": "192.168.x.x",
"access_code": "xxxxxxxx",
"serial": "xxxxxxxxxxxx",
"type": "esp32"
}
]
}
Quick Start
Read sensor data
python3 scripts/rwc.py sense --device my-esp32
Returns temperature, humidity, and other connected sensor values.
Control actuator
python3 scripts/rwc.py act --device my-esp32 --action relay_on
python3 scripts/rwc.py act --device my-esp32 --action relay_off
python3 scripts/rwc.py act --device my-esp32 --action led --value '{"r":255,"g":0,"b":0}'
Create automation rule
python3 scripts/rwc.py rule add --name "cool-down" \
--condition "temperature > 30" \
--action "relay_on" \
--device my-esp32
List devices and status
python3 scripts/rwc.py status
python3 scripts/rwc.py devices
Platform API (optional, for registered users)
python3 scripts/rwc.py api health
python3 scripts/rwc.py api modules
python3 scripts/rwc.py api register --username x --email x --password x
Commands Reference
| Command | Description |
|---|---|
status |
Show all device status |
devices |
List configured devices |
sense --device NAME |
Read all sensors from device |
act --device NAME --action ACTION |
Execute actuator command |
rule add/list/remove |
Manage automation rules |
api health/modules/register/login |
Platform API access |
monitor --device NAME --interval 5 |
Continuous monitoring mode |
Supported Hardware
- ESP32 / ESP32-C3 / ESP32-S3 with RWC firmware
- Sensors: DHT22 (temp/humidity), PIR (motion), LDR (light), soil moisture
- Actuators: Relay, Servo, LED (RGB), Buzzer
- Communication: WiFi + MQTT (local) or HTTP (cloud API)
RWC Protocol
Devices expose capabilities via manifest. Read references/protocol.md for full spec.
Architecture
AI Agent (OpenClaw)
↓ skill command
RWC Skill (this)
↓ MQTT (local) or HTTP (cloud)
ESP32 Module
↓ GPIO
Physical World (sensors/actuators)
Local MQTT is preferred for low latency. Cloud API for remote access.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。