wikis / Hermes / wiki / entities / platform-signal.md view as markdown report a mistake
Overview
Signal is the privacy-focused option among Hermes gateway platforms — end-to-end encrypted by default, open-source protocol, minimal metadata. Hermes connects through the signal-cli daemon running in HTTP mode: messages stream in via SSE and replies go out via JSON-RPC. signal-cli acts as a linked secondary device (like WhatsApp Web), so your phone stays primary. The adapter needs no new Python packages (it uses httpx, already a core dependency) — only signal-cli + Java 17+ installed externally. Full MEDIA: tag delivery arrived in v0.8.0; v0.12.0 added native formatting (markdown → bodyRanges, reply quotes, reactions) and multi-image sending.
Characteristics
- Prerequisites: signal-cli (Java 17+).
brew install signal-clion macOS; on Linux download from GitHub releases (not in apt/snap). - Linking:
signal-cli link -n "HermesAgent"→ scan QR via Signal Settings → Linked Devices → Link New Device. - Daemon:
signal-cli --account +1234567890 daemon --http 127.0.0.1:8080; verify withcurl http://127.0.0.1:8080/api/v1/check. - Env vars:
SIGNAL_HTTP_URL=http://127.0.0.1:8080andSIGNAL_ACCOUNT=+1234567890(E.164) required;SIGNAL_ALLOWED_USERS(E.164 numbers or UUIDs),SIGNAL_GROUP_ALLOWED_USERS(group IDs,*for all, omit to disable groups),SIGNAL_HOME_CHANNEL(cron delivery target),SIGNAL_ALLOW_ALL_USERS=falsedefault. - Access control: allowlist, or DM pairing (
hermes pairing approve signal CODE). Groups are disabled by default — all group messages ignored unlessSIGNAL_GROUP_ALLOWED_USERSis set. - Attachments: bidirectional, 100 MB limit. Inbound images/audio/documents; outbound via
MEDIA:tags →send_multiple_images,send_image_file,send_voice,send_video,send_document(full MEDIA: delivery added in v0.8.0;send_messagemedia delivery added in v0.11.0; native multi-image added in v0.12.0). Multi-image sends are batched in groups of 32 and throttled to respect Signal's attachment-upload rate limits. - Native formatting: markdown (
**bold**,*italic*, code,~~strike~~,||spoiler||, headings) → bodyRanges, reply quotes, reactions (added in v0.12.0); falls back to plaintext with a one-time warning if signal-cli is too old.require_mentionoption (added in v0.15.0). - Typing indicators refresh every 8 s while processing. Signal can't edit sent messages, so gateway tool-progress bubbles are suppressed on Signal even with
/verbose— use the CLI (or an editing-capable platform) for live per-tool progress. - Phone redaction: the tagged guide describes masking numbers in logs. Treat this as defense in depth, not permission to share raw signal-cli state or unreviewed diagnostics.
- Note to Self: with signal-cli linked on your own number, messaging yourself reaches the agent —
syncMessage.sentMessageenvelopes are detected automatically, with echo-back protection. No extra config. - Health monitoring: SSE auto-reconnect with exponential backoff (2 s → 60 s); pings signal-cli after 120 s of silence.
- Toolset:
hermes-signal— full tools including terminal.
How to Use
- Install signal-cli and link your account:
brew install signal-cli # macOS signal-cli link -n "HermesAgent" # scan QR from phone - Start the daemon (keep it running via systemd/tmux):
signal-cli --account +1234567890 daemon --http 127.0.0.1:8080 - Configure —
hermes gateway setup(select Signal), or add to~/.hermes/.env:SIGNAL_HTTP_URL=http://127.0.0.1:8080 SIGNAL_ACCOUNT=+1234567890 SIGNAL_ALLOWED_USERS=+1234567890,+0987654321 - Start the gateway:
hermes gateway # Foreground hermes gateway install # User service
The signal-cli session data in ~/.local/share/signal-cli/ contains account credentials — protect it like a password. Duplicate messages usually mean two signal-cli instances are listening on the same number.
Related Entities
- platform whatsapp, platform matrix — sibling privacy-leaning gateway platforms
- messaging gateway — gateway core, pairing, default-deny
- version v0.8.0 — full
MEDIA:tag delivery added - version v0.12.0 — native formatting + multi-image sending
- cron scheduling —
SIGNAL_HOME_CHANNELas cron delivery target
Sources
raw/docs-user-guide-messaging-signal.mdraw/docs-user-guide-messaging.mdraw/05-deployment-and-platforms.mdraw/release-v0.8.0.mdraw/release-v0.11.0.mdraw/release-v0.12.0.mdraw/release-v0.15.0.mdraw/tag-v0.22.2-website--docs--user-guide--messaging--signal.mdraw/tag-v0.22.2-website--docs--reference--toolsets-reference.md
