Desktop notifications and sound alerts for OpenCode.
- Desktop notifications and sound alerts
- Configurable per-event (generation completed, permission requested, question asked, errors)
- Optional
primaryOnlysound gating globally or per-event for subagent-heavy workflows - Cooldown system to prevent spam
- Cross-platform (macOS, Linux)
git clone https://github.com/trethore/opencode-notif.git
cd opencode-notif
npm install
npm run deployDefault template: ./notif.jsonc
Installed config file: ~/.config/opencode/plugins/notif.jsonc
See docs/configuration.md for all options.
Built-in audio lives under assets/notif/sounds/, and deploy only updates assets/notif/.
| Platform | Notifications | Audio |
|---|---|---|
| macOS | Built-in | Built-in |
| Linux | libnotify-bin |
ffmpeg |
See docs/platform-requirements.md for details.
MIT
{ "enabled": true, "showDesktopNotification": true, "soundAlert": true, "primaryOnly": false, "volume": 0.8, "cooldown": 30, }