Install
openclaw skills install antennaInter-host OpenClaw session messaging over reachable HTTPS using built-in gateway webhook hooks. Use when: (1) sending a message from this OpenClaw instance to another host's session, (2) checking status/health of a remote peer, (3) managing the peer registry (adding/removing/listing known peers), (4) exchanging bootstrap trust material for new peers, (5) any cross-host agent communication that should NOT go through visible chat channels like Telegram/WhatsApp/Discord. Triggers: "send to PEER", "message the other host", "antenna send", "antenna status", "antenna peers exchange", "cross-host message", "inter-host relay", "ping PEER", "peer list", "check antenna inbox", "approve message".
openclaw skills install antennaSend messages between OpenClaw instances over reachable HTTPS via the built-in /hooks/agent webhook.
Each participating host needs:
hooks.enabled: true)/hooks/agentagents section)hooks.allowedAgentIds includes "antenna"hooks.allowedSessionKeyPrefixes includes "hook:antenna"antenna-config.jsonantenna-peers.jsonNormal path:
antenna setup to generate the live runtime files.antenna-config.example.json and antenna-peers.example.json as tracked reference templates only.Notes:
Messages flow through a script-first relay pipeline:
antenna-send.sh which builds an [ANTENNA_RELAY] envelope and POSTs it to the recipient's /hooks/agent endpoint.write tool.antenna-relay-deliver.sh with that file path as its single argument.The LLM never performs relay parsing, delivery formatting, or session-routing logic; the scripts do all processing.
Antenna trust is layered:
[ANTENNA_RELAY] / [/ANTENNA_RELAY] are rejected as malformed (prevents envelope smuggling)timestamp:; stale or future-dated messages are rejected. Defaults: 300s max age, 60s max future skew. Tunable via .security.max_message_age_seconds and .security.max_future_skew_seconds.antenna status flags any token/secret file looser than chmod 600self_id configured; it does not fall back to $(hostname)For peer onboarding, Antenna now prefers Layer A encrypted bootstrap exchange using age. Legacy raw-secret export refuses non-TTY output (no piping runtime identity secrets into captured automation).
Live runtime files are local installation state:
antenna-config.jsonantenna-peers.jsonTracked reference files live beside them:
antenna-config.example.jsonantenna-peers.example.jsonUse antenna setup for normal installation; use the *.example.json files for schema reference or manual recovery.
antenna-config.json{
"max_message_length": 10000,
"default_target_session": "agent:betty:main",
"relay_agent_id": "antenna",
"relay_agent_model": "openai/gpt-5.4-nano",
"local_agent_id": "<your-agent-id>",
"install_path": "<absolute-path-to-this-skill-directory>",
"log_enabled": true,
"log_path": "antenna.log",
"log_max_size_bytes": 10485760,
"log_verbose": false,
"mcs_enabled": false,
"mcs_model": "sonnet",
"inbox_enabled": false,
"inbox_auto_approve_peers": [],
"inbox_queue_path": "antenna-inbox.json",
"allowed_inbound_sessions": ["agent:betty:main", "agent:betty:antenna"],
"allowed_inbound_peers": ["<peer-a>", "<peer-b>"],
"allowed_outbound_peers": ["<peer-a>", "<peer-b>"],
"rate_limit": {
"per_peer_per_minute": 10,
"global_per_minute": 30
},
"security": {
"max_message_age_seconds": 300,
"max_future_skew_seconds": 60
}
}
Key fields:
relay_agent_model — use a full provider/model ID, not a local aliaslocal_agent_id — used by local CLI conveniences when expanding bare names to full session keys like agent:<id>:maininstall_path — absolute path to this skill directoryallowed_inbound_sessions — inbound delivery allowlist (full session keys, e.g. agent:betty:main)allowed_inbound_peers / allowed_outbound_peers — peer allowlistsrate_limit.* — inbound abuse controlssecurity.max_message_age_seconds / max_future_skew_seconds — freshness-window tolerance (defaults shown; omit the block to use defaults)antenna-peers.json{
"<your-host-id>": {
"url": "https://<your-reachable-hostname>",
"token_file": "secrets/hooks_token_<your-host-id>",
"peer_secret_file": "secrets/antenna-peer-<your-host-id>.secret",
"exchange_public_key": "age1...",
"agentId": "antenna",
"display_name": "My Host",
"self": true
},
"<remote-peer-id>": {
"url": "https://<remote-reachable-hostname>",
"token_file": "secrets/hooks_token_<remote-peer-id>",
"peer_secret_file": "secrets/antenna-peer-<remote-peer-id>.secret",
"exchange_public_key": "age1...",
"agentId": "antenna",
"display_name": "Remote Host"
}
}
Key fields:
url — reachable HTTPS hook base URLtoken_file — bearer token for that peerpeer_secret_file — per-peer runtime identity secretexchange_public_key — peer's age public key for Layer A exchangeself — marks the local host entryscripts/antenna-send.sh <peer> "Your message here"
antenna msg <peer> "Your message here" # recipient resolves target session
antenna msg <peer> --subject "Config sync" "Here's the block you need..."
antenna msg <peer> --session "agent:<agent-id>:mychannel" "Your message" # explicit session override
echo "Long message body..." | antenna send <peer> --stdin
antenna send <peer> --dry-run "Test message"
Session resolution: When
--sessionis omitted,target_sessionis left out of the envelope entirely. The recipient resolves from their owndefault_target_sessionconfig. You don't need to know another host's internal session layout.
antenna pair # Full interactive wizard
antenna pair --peer-id myserver # Pre-fill peer ID
The wizard walks through keypair generation, public key sharing, optional ClawReef invite, bundle creation, optional bundle email send when mail tooling is available, exchange, connectivity test, and first message — with Next/Skip/Quit at each step. Also auto-offered at the end of antenna setup.
Preferred encrypted flow:
antenna peers exchange keygen
antenna peers exchange pubkey
antenna peers exchange initiate <peer-id> --pubkey <age1...> --print
antenna bundle verify <bundle-file> # read-only: decrypt & sanity-check before importing
antenna bundle verify <bundle-file> --json # machine-readable verdict
antenna bundle verify <bundle-file> --force-expired # inspect a past-expiry bundle without importing
antenna bundle verify <bundle-file> --no-decrypt # treat file as already-decrypted bundle JSON
antenna peers exchange import <bundle-file> # refuses expired bundles
antenna peers exchange import <bundle-file> --force-expired # disaster-recovery override
antenna peers exchange reply <peer-id>
Optional direct-send convenience (email):
antenna peers exchange initiate <peer-id> \
--pubkey <age1...> \
--email someone@example.com \
--send-email [--account <himalaya-account-name>]
Legacy/manual fallback:
antenna peers exchange <peer-id> --export # interactive TTY only; refuses to pipe secrets
antenna peers exchange <peer-id> --import <file>
antenna peers exchange <peer-id> --import-value <hex>
Peer registry updates:
antenna peers add <peer-id> --url <https-url> --token-file <path> # first time only
antenna peers add <peer-id> --url <new-url> --force # update existing: merges only the flags you pass
Notes:
age and age-keygenjq streams directly into age. Import decrypts to a temp file but cleans up on return, validation failure, preview failure, write failure, and Ctrl-C (SIGINT/SIGTERM).antenna bundle verify <file> is a read-only sanity check — it decrypts in place, validates shape / endpoint URL / freshness, and prints a safe summary (never the raw hooks token or identity secret). It never writes to antenna-peers.json or antenna-config.json. Use it before peers exchange import when a bundle comes from an untrusted or unclear channel.--force-expired only for genuine disaster recovery.himalaya. The sender email is resolved from your Himalaya TOML config (${HIMALAYA_CONFIG:-~/.config/himalaya/config.toml}, [accounts.<name>] email = "...") — there is no antenna@localhost fallback and no free-text From: override. Pass --account <name> to pick a specific configured account; interactive flows use selection-only UX.--yes is used.antenna peers add refuses to overwrite an existing peer without --force; --force does a field-level merge so unspecified peer fields (including exchange_public_key, self, and any future metadata) are preserved.antenna peers remove prunes peer-scoped allowlist entries (allowed_inbound_peers, allowed_outbound_peers, peer-scoped inbound sessions) so removing a peer does not leave stale allowlist debris behind. Peer secret files are intentionally left in place; secret deletion is an explicit operator action (see antenna doctor section 6b for secrets-hygiene warnings about leftover files).antenna sessions list # Show allowed inbound session targets
antenna sessions add antv3 # Bare name → auto-expanded to agent:<local>:antv3
antenna sessions add "agent:marie:lab1" # Cross-agent: use full session key
antenna sessions remove antv3 # Remove (bare names are expanded)
antenna sessions remove "agent:betty:main" --force # Core sessions need --force
Controls which session targets inbound messages can request via allowed_inbound_sessions in antenna-config.json.
Convention: full session keys everywhere. The allowlist stores full keys like agent:betty:main and agent:marie:lab1. The relay requires full keys from senders — bare names are rejected. The CLI auto-expands bare names to agent:<local_agent>:<name> for convenience when adding/removing, but the stored value is always the full key.
Core sessions (agent:<local>:main, agent:<local>:antenna) are protected from removal unless --force is used. Supports batch add/remove.
antenna doctor
antenna uninstall --dry-run
antenna uninstall
antenna peers list
antenna peers test <id>
antenna status
antenna log --tail 50
antenna doctor includes warn-only drift audits that complement the hard config/permission checks:
allowed_inbound_peers, allowed_outbound_peers, and peer-scoped inbound sessions in antenna-config.json against antenna-peers.json. Orphan peer IDs (allowlist entries for peers that no longer exist) are warnings, never failures. Catches the nexus / bruce-era debris class automatically.secrets/ (antenna-peer-<id>.secret, hooks_token_<id>, peer_secret_<id> whose <id> is no longer in antenna-peers.json), backup-pattern leftovers (.bak*, .backup*, ~, .old), loose secrets/ directory permissions (target 700), loose per-file permissions on secret-shaped files (target 600), and unknown-shape files inside secrets/.antenna test <model>
antenna test-suite --tier A
antenna test-suite --model <m>
antenna test-suite --models "<m1>,<m2>"
antenna test-suite --report
Model tests emit a per-run TEST_NONCE and match both success and pre-delivery rejections by that nonce, so parallel or historical runs cannot contaminate each other's verdicts and auth / peer / rate-limit failures return promptly instead of waiting for the full timeout. Tests drive gateway config through the CLI/helper path with a single batched restart rather than restarting per operation.
When inbox_enabled is true in config, inbound messages from peers not in inbox_auto_approve_peers are queued for review instead of being relayed immediately. Auto-approved peers bypass the queue and relay instantly (current behavior).
antenna inbox # list pending messages (table view)
antenna inbox count # pending count (for heartbeat/cron checks)
antenna inbox show <ref> # full message body for a ref
antenna inbox approve all # approve everything pending
antenna inbox approve 1,3,5-7 # selective approval (commas and ranges)
antenna inbox deny all # reject everything pending
antenna inbox deny 2,4 # selective denial
antenna inbox drain # deliver all approved (gateway sessions.send), remove denied
antenna inbox clear # purge all processed items
Delivery flow: antenna inbox drain iterates every approved item and delivers each via openclaw gateway call sessions.send (the same gateway RPC the relay path uses). On success, the item transitions to delivered; on RPC failure it transitions to failed with last_error recorded for triage. Denied items are removed. The script returns non-zero if any delivery failed, prints a one-line summary on stderr, and logs each per-ref result to antenna.log. The calling agent's role is a single exec of antenna inbox drain — no MCP tool calls required.
Configuration:
{
"inbox_enabled": false,
"inbox_auto_approve_peers": ["trusted-peer-id"],
"inbox_queue_path": "antenna-inbox.json"
}
Notes:
write + exec; it never calls sessions_send directly. Drain also stays in script-only territory — it shells out to openclaw gateway call sessions.send, so cron jobs can drain the queue without an agent in the loop.Heartbeat / cron integration:
Add to your HEARTBEAT.md:
## Antenna inbox check
- Run: `antenna inbox count`
- If > 0: run `antenna inbox list` and mention it
Or set up a cron job for automated handling:
Check antenna inbox. If there are pending messages from peers
in [trusted-peer-id], approve and drain them. For anything else,
summarize the queue and ask me.
Conversational usage: Ask your assistant "any Antenna messages waiting?" — it can run antenna inbox list, you review, then say "approve 1 and 3, deny 2" and it handles the rest.
clawreef.io is the optional community registry for Antenna hosts:
antenna pair flow locallyClawReef stores webhook credentials (hooksToken, identitySecret) for push delivery alongside public keys and endpoints — standard webhook-provider behavior. It does not store messages, private age keys, or message content. All trust decisions remain local to Antenna.
The pairing wizard (antenna pair) offers ClawReef invites as an alternative to manual encrypted exchange. Setup also displays ClawReef info after completion.
[ANTENNA_RELAY] / [/ANTENNA_RELAY]self_id (no $(hostname) fallback)--force-expired is the disaster-recovery override)antenna@localhost fallback, no free-text From: overridechmod 600; antenna status audits permissionsumask 077, chmod 0600, and shredded before unlink on cleanuphooks.token rather than overwriting itantenna doctorantenna uninstall (use --dry-run first if you want a preview)Relay rejected: timestamp out of range (stale|future): peer clock skew exceeds freshness window; sync clocks or widen .security.max_message_age_seconds / .security.max_future_skew_secondsRelay rejected: marker in body|headers: envelope-marker guard working as intended; rephrase or encode any literal [ANTENNA_RELAY] / [/ANTENNA_RELAY] contentself-id not configured - run antenna setup: sender is missing host identity in antenna-config.json; there is no $(hostname) fallbackage / age-keygen missingBundle expired - refusing import: request a fresh bundle from the peer, or pass --force-expired only for disaster recovery. To inspect an expired bundle without importing, use antenna bundle verify <file> --force-expired.antenna bundle verify: decrypt failed: the bundle was encrypted for a different age public key than yours. Ask the peer to re-initiate against your current antenna peers exchange pubkey.antenna bundle verify: endpoint URL rejected: the bundle's from_endpoint_url is not a valid HTTPS URL (e.g. main, bare host). Refuse to import; ask the peer to regenerate after fixing their self-peer URL.antenna doctor: self-peer URL is not a valid URL: your own self peer entry has a malformed url. Fix it in antenna-peers.json or rerun antenna setup with a valid --url <https://host>. REF-1313 now rejects malformed URLs at input time, but stale pre-fix entries still need to be corrected.antenna doctor: orphan peer references in config allowlists (warning, section 1b): allowlists in antenna-config.json reference peer IDs that no longer exist in antenna-peers.json. Remove the stale IDs with antenna peers remove <id> on any current peer (which also prunes its allowlist entries), or edit antenna-config.json directly.antenna doctor: orphan secret file / stale backup file / secrets/ dir is not 700 (warnings, section 6b): hygiene findings on the secrets/ directory. None of these can authenticate a peer that isn't in the registry, but they are real leak-surface / drift signals. Move orphan files to secrets.retired/ (or delete), rotate or remove .bak* leftovers, and run chmod 700 secrets/ / chmod 600 secrets/<file> to tighten permissions.Email send fails: could not resolve email for account: add email = "..." under [accounts.<name>] in your Himalaya TOML config, or pass --account <other> to pick a configured account that has an email setEmail send fails: himalaya not installed: install himalaya or fall back to sending the bundle file by handLegacy export refused - not a TTY: antenna peers exchange <peer> --export must run in an interactive terminal; switch to antenna peers exchange initiate for automated or remote operator handofftools.sessions.visibility = "all" and tools.agentToAgent.enabled = true on the receiver; the relay delivery wrapper uses gateway session delivery, which still depends on those settings. Also ensure sandbox: { mode: "off" } on the Antenna agent — sandboxed sessions silently clamp visibility to tree, blocking cross-agent delivery$(...), heredocs, or chaining); the antenna-relay-deliver.sh wrapper accepts a file path onlysandbox: { mode: "off" } in registration. Default advice is not to set tools.exec.security or tools.exec.ask on the Antenna agent — explicit exec overrides cause silent relay failure (fixed in v1.2.14). If you've intentionally customized tools.exec on the agent, setup reruns now preserve your overrides instead of wiping them.antenna peers add refuses to update an existing peer: by design — pass --force to update fields on a paired peer; without it, the command refuses to clobber trust materialskills/antenna/
├── SKILL.md
├── README.md
├── CHANGELOG.md
├── antenna-config.example.json
├── antenna-peers.example.json
├── antenna-peers.json
├── antenna-config.json
├── antenna.log
├── install.sh
├── bin/
│ └── antenna.sh
├── scripts/
│ ├── antenna-send.sh
│ ├── antenna-relay.sh
│ ├── antenna-relay-deliver.sh # v1.4+ — canonical single-call deliver wrapper
│ ├── antenna-relay-file.sh # internal file-based relay adapter
│ ├── antenna-relay-exec.sh # v1.1.6 — base64 wrapper (legacy fallback)
│ ├── antenna-pair.sh # v1.1.9 — interactive peer pairing wizard
│ ├── antenna-health.sh
│ ├── antenna-peers.sh
│ ├── antenna-doctor.sh
│ ├── antenna-exchange.sh
│ ├── antenna-inbox.sh
│ ├── antenna-model-test.sh
│ └── antenna-test-suite.sh
├── references/
│ ├── ANTENNA-RELAY-FSD.md # Relay architecture contract
│ └── issues.md # Known issues / gaps tracker
├── docs/ # Repo-only (operator / historical)
│ ├── full-removal-checklist.md
│ ├── SECURITY-ASSESSMENT-v1.0.20.md
│ ├── RED-TEAM-REPORT-v1.0.4.md
│ ├── LAYER-A-SECRET-EXCHANGE-PLAN.md
│ └── SECRET-EXCHANGE-OPTIONS.md
└── agent/
├── AGENTS.md
└── TOOLS.md
Notes:
antenna-config.json, antenna-peers.json, and antenna-inbox.json are local runtime files (gitignored)antenna-config.example.json and antenna-peers.example.json are tracked reference templatesantenna setup handles all of this automatically and is safe to rerun (e.g., after a clawhub update). Setup forces sandbox.mode = "off" and seeds a default tools.deny list only when absent. It preserves an existing gateway hooks.token and, on rerun, preserves any tools.exec overrides the operator has intentionally set on the Antenna agent.
On each host:
antenna registered in OpenClaw config under agents with:
agentDir and workspace both pointing to the Antenna agent/ directorysandbox: { mode: "off" } (required — sandbox silently clamps session visibility, breaking cross-agent relay)tools.deny (block web, browser, image, cron, memory tools)tools.exec.security or tools.exec.ask on the Antenna agent — explicit exec overrides cause silent relay failure (see v1.2.14 changelog). If you've intentionally customized these, setup reruns now preserve your overrides rather than wiping them.hooks.allowedAgentIds includes "antenna"hooks.allowedSessionKeyPrefixes includes "hook:antenna"tools.sessions.visibility set to "all" (required for cross-session relay delivery)tools.agentToAgent.enabled set to true