Desktop notification plugin for OpenCode.
Sends native desktop notifications when:
- Session completes โ shows project name, elapsed time, and your last message as preview
- Session errors โ alerts when something goes wrong
- Permission requested โ notifies when OpenCode needs approval
- Waiting for input โ notifies when OpenCode asks you a question / presents choices
| Platform | Method | Requirements |
|---|---|---|
| Linux (Wayland/X11) | dbus-send (freedesktop Notifications) |
A notification daemon (dunst, mako, swaync, fnott, etc.) |
| macOS | osascript |
None (built-in) |
Add to your opencode.json:
{
"plugin": ["opencode-simple-notify"]
}Copy index.js to your plugin directory:
# Global
cp index.js ~/.config/opencode/plugins/notify.js
# Project-level
cp index.js .opencode/plugins/notify.jsโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ my-project done (2m35s) โ
โ ๅธฎๆๅไธไธชๆๅบๅฝๆฐ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ OpenCode needs approval โ
โ Permission: bash โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ OpenCode waiting โ
โ ้ๆฉๅๅธๆนๅผ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ my-project error โ
โ session encountered an error โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
MIT
