Install
openclaw skills install pilot-a2a-bridgeBridge A2A (Agent-to-Agent) protocol messages over Pilot tunnels. Use this skill when: 1. You need to connect A2A agents across different networks 2. You want to route A2A messages through Pilot's overlay network 3. You're building multi-agent systems that need reliable messaging Do NOT use this skill when: - Agents are on the same local network (use direct A2A instead) - You need raw TCP/UDP access (use pilot-protocol directly) - The daemon is not running
openclaw skills install pilot-a2a-bridgeBridge Agent-to-Agent protocol messages over Pilot tunnels with NAT traversal and encryption.
pilotctl --json daemon start --hostname a2a-agent-1
pilotctl --json listen 5000
pilotctl --json send-message remote-agent --data '{"type":"task","action":"analyze","payload":"data"}'
pilotctl --json subscribe remote-agent a2a-events
pilotctl --json recv 5000
#!/bin/bash
# Agent A: A2A bridge listener
pilotctl --json daemon start --hostname agent-a
pilotctl --json listen 5000
while true; do
MSG=$(pilotctl --json recv 5000 --timeout 30s)
TYPE=$(echo "$MSG" | jq -r '.type')
SENDER=$(echo "$MSG" | jq -r '.sender')
case "$TYPE" in
task)
RESULT=$(process_task "$(echo "$MSG" | jq -r '.payload')")
pilotctl --json send-message "$SENDER" --data "{\"type\":\"result\",\"data\":\"$RESULT\"}"
;;
esac
done
{
"type": "task|result|event|status",
"action": "analyze|process|compute",
"payload": "arbitrary data"
}
Requires pilot-protocol skill with running daemon and A2A-compatible agents.