Skip to content

frieser/opencode-discord-notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opencode-discord-notification

OpenCode plugin that sends Discord notifications on session completion and permission requests.

Example Notification

Features

  • 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.

Installation

Add it to your opencode.json:

{
  "plugin": ["opencode-discord-notification@0.1.1"]
}

Configuration

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"
}

Development

  1. Clone the repo.
  2. Install dependencies: bun install.
  3. Type-check: bun x tsc.

License

MIT

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published