Nextcloud Talk Plugin: Installation, Setup, and Configuration
This page covers how to install and configure the Nextcloud Talk plugin for OpenClaw. It is intended for users who want to integrate OpenClaw with a self-hosted Nextcloud instance using a Talk webhook bot.
Read this when
- Working on Nextcloud Talk channel features
Nextcloud Talk is a downloadable channel plugin (@openclaw/nextcloud-talk) that links OpenClaw to a self-hosted Nextcloud instance using a Talk webhook bot. It supports direct messages, rooms, reactions, and markdown messages. Media is sent as URLs.
Install
openclaw plugins install @openclaw/nextcloud-talk
Use the bare package spec to track the latest official release tag. Pin a specific version only when you need a reproducible install.
From a local checkout (development workflows):
openclaw plugins install ./path/to/local/nextcloud-talk-plugin
After installing, restart the gateway. Details: Plugins
Quick setup (beginner)
-
Install the plugin (see above).
-
On your Nextcloud server, create a bot:
./occ talk:bot:install "OpenClaw" "<shared-secret>" "<webhook-url>" --feature webhook --feature response --feature reactionKeep
--feature response: without it, outbound replies fail with a 401 error. Repair an existing bot with./occ talk:bot:state --feature webhook --feature response --feature reaction <botId> 1. -
Enable the bot in the target room settings.
-
Configure OpenClaw:
- Config:
channels.nextcloud-talk.baseUrl+channels.nextcloud-talk.botSecret - Or env:
NEXTCLOUD_TALK_BOT_SECRET(default account only)
CLI setup (
--url/--tokenare aliases for the explicit fields;nc-talkandncwork as channel aliases):openclaw channels add --channel nextcloud-talk \ --url https://cloud.example.com \ --token "<shared-secret>"Equivalent explicit fields:
openclaw channels add --channel nextcloud-talk \ --base-url https://cloud.example.com \ --secret "<shared-secret>"File-backed secret:
openclaw channels add --channel nextcloud-talk \ --base-url https://cloud.example.com \ --secret-file /path/to/nextcloud-talk-secret - Config:
-
Restart the gateway (or finish setup).
Minimal config:
{
channels: {
"nextcloud-talk": {
enabled: true,
baseUrl: "https://cloud.example.com",
botSecret: "shared-secret",
dmPolicy: "pairing",
},
},
}
Notes
- Bots cannot start DMs. The user must send the first message to the bot.
- The webhook URL must be reachable from the Nextcloud server. Set
webhookPublicUrlwhen the gateway is behind a proxy. Webhook requests are HMAC-SHA256 signed with the bot secret. Invalid signatures are rejected and rate limited. - The bot API does not support media uploads. Outbound media is added as an
Attachment: <url>line. - The webhook payload does not distinguish DMs from rooms. Set
apiUser+apiPasswordto enable room-type lookups (cached for about 5 minutes). Without these, every conversation is treated as a room. - Outbound requests go through the SSRF guard. To allow a Nextcloud host on a trusted private or internal network, opt in with
channels.nextcloud-talk.network.dangerouslyAllowPrivateNetwork: true. - With
apiUser/apiPasswordandwebhookPublicUrlset,openclaw channels statusprobes the bot and warns when theresponsefeature is missing.
Access control (DMs)
- Default:
channels.nextcloud-talk.dmPolicy = "pairing". Unknown senders receive a pairing code. - Approve via:
openclaw pairing list nextcloud-talkopenclaw pairing approve nextcloud-talk <CODE>
- Public DMs:
channels.nextcloud-talk.dmPolicy="open"pluschannels.nextcloud-talk.allowFrom=["*"]. allowFrommatches Nextcloud user IDs only (lowercased). Display names are ignored.
Rooms (groups)
- Default:
channels.nextcloud-talk.groupPolicy = "allowlist"(mention-gated). - Allowlist rooms with
channels.nextcloud-talk.rooms, keyed by room token."*"sets a wildcard default:
{
channels: {
"nextcloud-talk": {
rooms: {
"room-token": { requireMention: true },
},
},
},
}
- Per-room keys:
requireMention(default true),enabled(false disables the room),allowFrom(per-room sender allowlist),tools(allow/deny tool overrides),skills(limit loaded skills),systemPrompt. - To allow no rooms, keep the allowlist empty or set
channels.nextcloud-talk.groupPolicy="disabled".
Capabilities
| Feature | Status |
|---|---|
| Direct messages | Supported |
| Rooms | Supported |
| Threads | Not supported |
| Media | URL-only |
| Reactions | Supported |
| Native commands | Not supported |
Configuration reference (Nextcloud Talk)
Full configuration: Configuration
Provider options:
channels.nextcloud-talk.enabled: enable or disable channel startup.channels.nextcloud-talk.baseUrl: Nextcloud instance URL.channels.nextcloud-talk.botSecret: bot shared secret (string or secret reference).channels.nextcloud-talk.botSecretFile: regular-file secret path. Symlinks are rejected.channels.nextcloud-talk.apiUser: API user for room lookups (DM detection) and the status probe.channels.nextcloud-talk.apiPassword: API or app password for room lookups.channels.nextcloud-talk.apiPasswordFile: API password file path.channels.nextcloud-talk.webhookPort: webhook listener port (default: 8788).channels.nextcloud-talk.webhookHost: webhook host (default: 0.0.0.0).channels.nextcloud-talk.webhookPath: webhook path (default: /nextcloud-talk-webhook).channels.nextcloud-talk.webhookPublicUrl: externally reachable webhook URL.channels.nextcloud-talk.dmPolicy:pairing | allowlist | open | disabled(default: pairing).openrequiresallowFrom=["*"].channels.nextcloud-talk.allowFrom: DM allowlist (user IDs).channels.nextcloud-talk.groupPolicy:allowlist | open | disabled(default: allowlist).channels.nextcloud-talk.groupAllowFrom: room sender allowlist (user IDs). Falls back toallowFromwhen unset.channels.nextcloud-talk.rooms: per-room settings and allowlist (see above).- Static sender access groups can be referenced from
allowFromandgroupAllowFromwithaccessGroup:<name>. channels.nextcloud-talk.historyLimit: group history limit (0 disables).channels.nextcloud-talk.dmHistoryLimit: DM history limit (0 disables).channels.nextcloud-talk.dms: per-DM overrides keyed by user ID (historyLimit).channels.nextcloud-talk.textChunkLimit: outbound text chunk size in characters (default: 4000).channels.nextcloud-talk.streaming.chunkMode:length(default) ornewlineto split on blank lines (paragraph boundaries) before length chunking.channels.nextcloud-talk.streaming.block.enabled: enable or disable block streaming for this channel.channels.nextcloud-talk.streaming.block.coalesce: block streaming coalesce tuning.channels.nextcloud-talk.responsePrefix: outbound reply prefix.channels.nextcloud-talk.markdown.tables: markdown table rendering mode (off | bullets | code | block).channels.nextcloud-talk.mediaMaxMb: inbound media cap (MB).channels.nextcloud-talk.network.dangerouslyAllowPrivateNetwork: allow private or internal Nextcloud hosts past the SSRF guard.channels.nextcloud-talk.accounts.<id>: per-account overrides (same keys).defaultAccountpicks the default. Env varsNEXTCLOUD_TALK_BOT_SECRET/NEXTCLOUD_TALK_API_PASSWORDapply to the default account only.
Related
- Channels Overview, all supported channels
- Pairing, DM authentication and pairing flow
- Groups, group chat behavior and mention gating
- Channel Routing, session routing for messages
- Security, access model and hardening