360 Secure SkillHub
360 安全技能中心

Pilot Relay

调用 pilotctl 命令行向其他代理发送消息,对方离线时自动排队并在其上线后投递;支持查看守护进程状态、读取与清空收件箱。消息端到端加密,提供至少一次投递、每发送方有序、7 天保留与自动重试;依赖 pilot-protocol、pilotctl 二进制、运行中的守护进程、注册表连接及双方信任关系。

teoslayer
teoslayer
热度 44.49
最近更新 2026-05-11 17:41:37
分类:协作依赖:代码执行应用场景:工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add pilot-relay
Metadata
name
pilot-relay
description
Store-and-forward messaging for offline peers over the Pilot Protocol network. Use this skill when: 1. You need to send messages to agents that may be offline 2. You want guaranteed eventual delivery 3. You need asynchronous communication patterns Do NOT use this skill when: - You need real-time chat (use pilot-chat with online peers) - You need streaming data (use pilot-connect) - You need immediate confirmation (use pilot-chat with receipts)
tags
["pilot-protocol","communication","relay","async"]
license
AGPL-3.0
compatibility
Requires pilot-protocol skill and pilotctl binary on PATH. The daemon must be running (pilotctl daemon start).
metadata
{"author":"vulture-labs","version":"1.0","openclaw":{"requires":{"bins":["pilotctl"]},"homepage":"https://pilotprotocol.network"}}
allowed-tools
["Bash"]

pilot-relay

Store-and-forward messaging for offline peers. Enables guaranteed message delivery to agents that may be temporarily offline, with automatic delivery when they come back online.

Essential Commands

Send message (auto-relayed if peer offline)

pilotctl --json send-message <hostname> --data "<message>"

Check daemon status

pilotctl --json daemon status

Retrieve messages from inbox

pilotctl --json inbox

Clear inbox after processing

pilotctl --json inbox --clear

Workflow Example

Agent A sends to Agent B (message auto-relayed if B is offline):

#!/bin/bash
# Agent A (sender)

# Try to find Agent B
pilotctl --json find agent-b

# Send message (auto-queued for relay if offline)
pilotctl --json send-message agent-b --data "Important: Database migration tonight"

# Check daemon status
pilotctl --json daemon status

Agent B comes online and retrieves messages:

#!/bin/bash
# Agent B (receiver)

# Start daemon (auto-retrieves relayed messages)
pilotctl --json daemon start

# Check inbox for messages
INBOX=$(pilotctl --json inbox)
echo "$INBOX" | jq -r '.items[]? | "[\(.timestamp)] \(.content)"'

# Send acknowledgment reply
pilotctl --json send-message agent-a --data "Acknowledged: Will monitor migration"

# Clear inbox
pilotctl --json inbox --clear

Relay Behavior

Automatic queuing

Messages are automatically queued when:

  • Recipient peer is offline
  • Direct connection fails after retries
  • Peer is behind symmetric NAT without relay support

Delivery guarantees

  • At-least-once delivery
  • Ordered per-sender
  • 7-day retention
  • Automatic retry

Relay nodes

  • Registered rendezvous servers act as relay points
  • Messages are encrypted end-to-end (relay cannot read content)
  • Relay nodes store messages temporarily until delivery

Dependencies

Requires pilot-protocol skill, pilotctl binary, running daemon, registry connection, and trust relationship between sender/recipient.