Mattermost channel plugin for OpenClaw — self-hosted team messaging via bot token and WebSocket events. Supports channels, groups, DMs, threads, and media.
Docs: https://docs.openclaw.ai/channels/mattermost
Plugin system: https://docs.openclaw.ai/plugin
openclaw plugins install @openclaw/mattermostLocal dev (git checkout):
openclaw plugins install ./extensions/mattermostRestart the gateway after installation.
Minimal config under channels.mattermost:
{
channels: {
mattermost: {
enabled: true,
botToken: "your-bot-token",
baseUrl: "https://chat.example.com",
dmPolicy: "pairing",
},
},
}Or use environment variables (default account only):
MATTERMOST_BOT_TOKENMATTERMOST_URL
- oncall (default) — respond when @mentioned in channels
- onmessage — respond to every channel message
- onchar — respond when a message starts with a trigger prefix (
>,!)
Set via channels.mattermost.chatmode.
{
channels: {
mattermost: {
accounts: {
default: { botToken: "token-1", baseUrl: "https://chat.example.com" },
alerts: { botToken: "token-2", baseUrl: "https://alerts.example.com" },
},
},
},
}channel:<id>— post to a channeluser:<id>— DM a user by ID@username— DM a user by username