OpenCode plugin that sends Discord notifications on session completion and permission requests.
- ✅ Completion Notifications: Get a Discord message when OpenCode finishes a long task.
- 📊 Context Stats: Includes context usage percentage and total tokens.
- 🤖 Model Info: Shows which model was used for the response.
⚠️ Permission Alerts: Real-time notifications when OpenCode is blocked waiting for terminal permissions, including the command it's trying to run.
Add it to your opencode.json:
{
"plugin": ["opencode-discord-notification@0.1.1"]
}Create a configuration file at ~/.config/opencode/discord-notification-config.json:
{
"enabled": true,
"webhookUrl": "https://discord.com/api/webhooks/...",
"username": "OpenCode Notifier",
"avatarUrl": "https://opencode.ai/logo.png"
}- Clone the repo.
- Install dependencies:
bun install. - Type-check:
bun x tsc.
MIT
