OpenClaw operations guide
Mattermost OpenClaw bot setup for your first reply
Mattermost OpenClaw setup needs a bot account on your team and a working Gateway. Install the Mattermost plugin on the Gateway and configure it with your server URL and bot token. Send the bot a direct message, approve the pairing code on the Gateway, then send another message and look for the reply in the same chat.
Last updated · Published
By CWYN · Reviewed November 19, 2026 against OpenClaw 2026.11.5 · Checked against docs, not run (Mattermost channel reference)
1. Create a Mattermost bot account for the test
If you’re starting on a new Mac, install the OpenClaw macOS app and check for a dashboard reply before connecting Mattermost.
Start with a working local OpenClaw Gateway and a Mattermost server with a public HTTPS address. In Mattermost, have a system admin enable bot account creation and add a bot account. Save its bot token privately and add the bot to the test user's team. Copy the server's base URL, such as https://chat.example.com.
2. Install the Mattermost plugin
Run this on the Gateway host and check the installer result before editing the configuration. The Mattermost plugin receives messages over a WebSocket connection to Mattermost. Keep native slash commands off for this DM test.
openclaw plugins install @openclaw/mattermost
3. Configure the bot account and require DM pairing
Use openclaw config file to find your active configuration. Add this entry under the existing channels object. Replace the URL and token placeholders in the local file, and keep that file private. Leave the group allowlists empty for this setup.
{
channels: {
mattermost: {
enabled: true,
baseUrl: "https://chat.example.com",
botToken: "REPLACE_WITH_MATTERMOST_BOT_TOKEN",
dmPolicy: "pairing",
groupPolicy: "allowlist",
},
},
}
4. Validate the settings and probe the connection
Fix any validation errors first. Then restart the managed local Gateway and look for the Mattermost account in the live channel probe. If the probe fails, check the server address and bot token before trying a DM.
openclaw config validate
openclaw gateway restart
openclaw channels status --probe
5. Approve your DM and ask for a reply
Open a DM with the bot from your test user and send a short message. Compare the code in that DM with the pending request and approve it on the Gateway host. Replace CODE with your code. Then send a new message asking the bot to reply with a word you choose. Look for that reply in the same DM.
openclaw pairing list mattermost
openclaw pairing approve mattermost CODE
If you are adding Matrix to this Gateway next, accept the Matrix DM invitation as the bot before pairing the sender there.