docs/channels/synology-chat.md
Status: bundled plugin direct-message channel using Synology Chat webhooks. The plugin accepts inbound messages from Synology Chat outgoing webhooks and sends replies through a Synology Chat incoming webhook.
Synology Chat ships as a bundled plugin in current OpenClaw releases, so normal packaged builds do not need a separate install.
If you are on an older build or a custom install that excludes Synology Chat, install it manually:
Install from a local checkout:
openclaw plugins install ./path/to/local/synology-chat-plugin
Details: Plugins
openclaw onboard now shows Synology Chat in the same channel setup list as openclaw channels add.openclaw channels add --channel synology-chat --token <token> --url <incoming-webhook-url>https://gateway-host/webhook/synology by default.channels.synology-chat.webhookPath.openclaw onboardopenclaw channels add --channel synology-chat --token <token> --url <incoming-webhook-url>Webhook auth details:
body.token, then
?token=..., then headers.x-synology-tokenx-webhook-tokenx-openclaw-tokenAuthorization: Bearer <token>Minimal config:
{
channels: {
"synology-chat": {
enabled: true,
token: "synology-outgoing-token",
incomingUrl: "https://nas.example.com/webapi/entry.cgi?api=SYNO.Chat.External&method=incoming&version=2&token=...",
webhookPath: "/webhook/synology",
dmPolicy: "allowlist",
allowedUserIds: ["123456"],
rateLimitPerMinute: 30,
allowInsecureSsl: false,
},
},
}
For the default account, you can use env vars:
SYNOLOGY_CHAT_TOKENSYNOLOGY_CHAT_INCOMING_URLSYNOLOGY_NAS_HOSTSYNOLOGY_ALLOWED_USER_IDS (comma-separated)SYNOLOGY_RATE_LIMITOPENCLAW_BOT_NAMEConfig values override env vars.
SYNOLOGY_CHAT_INCOMING_URL cannot be set from a workspace .env; see Workspace .env files.
dmPolicy: "allowlist" is the recommended default.allowedUserIds accepts a list (or comma-separated string) of Synology user IDs.allowlist mode, an empty allowedUserIds list is treated as misconfiguration and the webhook route will not start (use dmPolicy: "open" with allowedUserIds: ["*"] for allow-all).dmPolicy: "open" allows public DMs only when allowedUserIds includes "*"; with restrictive entries, only matching users can chat.dmPolicy: "disabled" blocks DMs.user_id by default. channels.synology-chat.dangerouslyAllowNameMatching: true is break-glass compatibility mode that re-enables mutable username/nickname lookup for reply delivery.openclaw pairing list synology-chatopenclaw pairing approve synology-chat <CODE>Use numeric Synology Chat user IDs as targets.
Examples:
openclaw message send --channel synology-chat --target 123456 --text "Hello from OpenClaw"
openclaw message send --channel synology-chat --target synology-chat:123456 --text "Hello again"
openclaw message send --channel synology-chat --target synology:123456 --text "Short prefix"
Media sends are supported by URL-based file delivery.
Outbound file URLs must use http or https, and private or otherwise blocked network targets are rejected before OpenClaw forwards the URL to the NAS webhook.
Multiple Synology Chat accounts are supported under channels.synology-chat.accounts.
Each account can override token, incoming URL, webhook path, DM policy, and limits.
Direct-message sessions are isolated per account and user, so the same numeric user_id
on two different Synology accounts does not share transcript state.
Give each enabled account a distinct webhookPath. OpenClaw now rejects duplicate exact paths
and refuses to start named accounts that only inherit a shared webhook path in multi-account setups.
If you intentionally need legacy inheritance for a named account, set
dangerouslyAllowInheritedWebhookPath: true on that account or at channels.synology-chat,
but duplicate exact paths are still rejected fail-closed. Prefer explicit per-account paths.
{
channels: {
"synology-chat": {
enabled: true,
accounts: {
default: {
token: "token-a",
incomingUrl: "https://nas-a.example.com/...token=...",
},
alerts: {
token: "token-b",
incomingUrl: "https://nas-b.example.com/...token=...",
webhookPath: "/webhook/synology-alerts",
dmPolicy: "allowlist",
allowedUserIds: ["987654"],
},
},
},
},
}
token secret and rotate it if leaked.allowInsecureSsl: false unless you explicitly trust a self-signed local NAS cert.dmPolicy: "allowlist" for production.dangerouslyAllowNameMatching off unless you explicitly need legacy username-based reply delivery.dangerouslyAllowInheritedWebhookPath off unless you explicitly accept shared-path routing risk in a multi-account setup.Missing required fields (token, user_id, text):
Invalid token:
channels.synology-chat.tokenRate limit exceeded:
Allowlist is empty. Configure allowedUserIds or use dmPolicy=open with allowedUserIds=["*"].:
dmPolicy="allowlist" is enabled but no users are configuredUser not authorized:
user_id is not in allowedUserIds