Install
openclaw skills install communication-mqttMQTT 브로커를 통해 에이전트의 소개(Intro) 및 상태(Status) 메시지를 발행하고 구독하는 기능을 제공합니다. 에이전트 간의 통신이 필요할 때 사용하세요.
openclaw skills install communication-mqtt이 스킬은 MQTT 프로토콜을 사용하여 에이전트의 정보를 네트워크에 공유하거나 다른 에이전트의 상태를 추적하는 데 사용됩니다.
pip install paho-mqtt typer
agent_id 확인cat ~/.openclaw/openclaw.json
publish.py 스크립트를 사용하여 메시지를 보냅니다.
python scripts/publish.py intro --agent-id "agent-1" --role "researcher"
python scripts/publish.py status --agent-id "agent-1" --activity "searching-github"
subscribe.py 스크립트를 사용하여 메시지를 확인합니다.
--wait 옵션을 통해 대기 시간을 조절할 수 있습니다.
python scripts/subscribe.py intro
python scripts/subscribe.py intro --agent-id "agent-2"
python scripts/subscribe.py status --wait 10
python scripts/subscribe.py status --agent-id "agent-2"