Why Discord
If your team or community already lives in Discord, putting OpenClaw there means nobody has to install anything or learn a new surface. The agent becomes another member of the server — one that can answer questions, run scheduled posts, and summarize a channel on demand. For a server owner, that's more useful than a Telegram bot for a single person.
Developer portal setup
Discord bots are created in the Developer Portal, not in the Discord app:
- Go to the Discord Developer Portal and create a new application.
- Under the Bot tab, create the bot and copy its token. Like any bot token, treat it as a password.
- Generate an invite link (OAuth2 → URL Generator) with the
botscope, then invite it to your server.
The permission scopes you pick here matter. A bot that only needs to read and send messages shouldn't get administrator. Grant the minimum that your use case needs, then revisit it if a feature complains.
Point OpenClaw at it
Add Discord as a channel in OpenClaw's config, then restart:
openclaw config set channels.discord.botToken "YOUR_BOT_TOKEN"
openclaw config set channels.discord.enabled true
Exact key names drift between releases, so check the current channel docs if channels.discord errors. After restart, mention the bot in a channel and confirm it replies.
Keeping it safe
A Discord bot in a public server is a bigger target than a private Telegram bot, because strangers can talk to it. Two rules I treat as non-negotiable:
- Restrict which channels it listens to. Don't let it respond everywhere; confine it to channels where you want it active.
- Sandbox the agent. If a random user can trigger shell commands through your bot, that's a breach waiting to happen. Keep permissions tight and read the prompt injection and gateway guides before opening it up.