Discord
Connect OpenCrabs to Discord for server and DM interactions.
Setup
- Go to discord.com/developers/applications
- Create a new application
- Go to Bot section, create a bot
- Enable MESSAGE CONTENT Intent (required)
- Copy the bot token
- Add to
keys.toml:
[channels.discord]
bot_token = "your-bot-token"
- Enable in
config.toml:
[channels.discord]
enabled = true
- Invite the bot to your server using the OAuth2 URL with
botscope andSend Messages,Read Message Historypermissions
Features
- Server channels and DMs — Works in text channels and direct messages
- Button interactions — Provider picker, model picker, session switcher use Discord buttons
- Image support — Send and receive images
- Embed suppression — Agent wraps multiple links in
<>to suppress embeds - Slash commands — All built-in and custom commands work
- Reactions — Agent can add emoji reactions to messages
Formatting Notes
- No markdown tables in Discord — use bullet lists instead
- Wrap multiple links in
<url>to suppress embeds