@opin-cli/discord
v2026.2.10
Published
Opin Discord channel plugin
Readme
@opin-cli/discord
Discord channel plugin for Opin.
Connect your Opin gateway to Discord — respond to DMs and server messages, use slash commands, and run your AI agent inside any Discord server or thread.
Install
opin plugins install @opin-cli/discordRestart the gateway after install.
Requirements
- A Discord bot token (create one here)
- Bot invited to your server with the
botandapplications.commandsscopes
Quick Setup
- Create a bot at discord.com/developers
- Copy the bot token
- Configure Opin:
{
"channels": {
"discord": {
"token": "${DISCORD_BOT_TOKEN}"
}
}
}- Invite the bot to your server using the OAuth2 URL generator
Configuration
| Key | Type | Default | Description |
|---|---|---|---|
| token | string | required | Discord bot token |
| dmPolicy | string | "pairing" | Access control for DMs |
| allowedGuilds | string[] | [] | Restrict to specific server IDs |
Features
- Respond to DMs and server messages
- Slash command support
- Thread-aware conversations
- Pairing code access control
CLI
opin message send --channel discord --to "username#0000" "Hello from Opin"Links
License
MIT
