mqtt-agent-messenger
MQTT 브로커를 통해 에이전트의 소개(Intro) 및 상태(Status) 메시지를 발행하고 구독하는 기능을 제공합니다. 에이전트 간의 통신이 필요할 때 사용하세요.
Why use this skill?
Learn how to use the mqtt-agent-messenger skill to enable seamless communication, status updates, and discovery between your OpenClaw AI agents via MQTT.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/hyunwoo91/communication-mqttWhat This Skill Does
The mqtt-agent-messenger skill serves as the primary communication backbone for OpenClaw agents operating within a networked environment. By leveraging the lightweight MQTT protocol, this skill enables agents to broadcast their identities, roles, and real-time activity statuses. It acts as a pub/sub message broker interface that allows a decentralized fleet of agents to discover, coordinate, and monitor one another. When an agent performs an action or changes its focus, it publishes a status update; other agents can simultaneously subscribe to these updates to build a shared situational awareness map.
Installation
To integrate this communication capability into your OpenClaw environment, ensure you have the required Python dependencies installed. Run the following command in your terminal:
pip install paho-mqtt typer
Once the dependencies are met, install the skill directly from the OpenClaw repository using the hub command:
clawhub install openclaw/skills/skills/hyunwoo91/communication-mqtt
Verify your installation by locating your unique agent_id in the ~/.openclaw/openclaw.json configuration file, which will be used as the identifier for all MQTT messages.
Use Cases
- Multi-Agent Orchestration: Coordinate complex tasks where one agent (e.g., a researcher) needs to notify another (e.g., a coder) that a specific requirement has been met.
- Agent Health Monitoring: Track the operational status of long-running background agents to ensure they haven't crashed or entered an idle state unexpectedly.
- Shared Context Discovery: Allow new agents entering the network to immediately recognize the roles and current objectives of existing active agents.
Example Prompts
- "Publish my current status as 'analyzing data' to the MQTT broker using the mqtt-agent-messenger skill."
- "Subscribe to all intro messages from other agents for the next 30 seconds to see who is online."
- "Check if agent-2 is still active by monitoring their status messages via MQTT."
Tips & Limitations
- Network Dependency: This skill relies on an external MQTT broker. Ensure that your network environment allows MQTT traffic, as strict firewalls may block these packets.
- Naming Conventions: Keep your
agent_idconsistent across your configuration to ensure other agents can accurately filter and target your messages. - Latency: While MQTT is highly efficient, ensure that your broker is geographically or logically close to your agents to minimize latency during high-frequency status updates.
- Privacy: Be aware that all messages sent via this skill are broadcast to the broker. Avoid publishing sensitive data or secrets that you do not want visible to other agents on the same broker network.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-hyunwoo91-communication-mqtt": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access