This file helps AI coding agents install the OpenCode SFX plugin.
A sound effects plugin for AI coding agents (OpenCode, Claude Code, Gemini CLI, Codex) that plays audio notifications when the agent finishes a task, needs user input, or encounters an error. It includes built-in notification sounds that work out of the box.
Run the installer with --yes to skip all interactive prompts:
git clone https://github.com/jimrubenstein/opencode-sfx.git ~/.config/opencode/plugins/opencode-sfx
cd ~/.config/opencode/plugins/opencode-sfx && ./install.sh --yesThis will:
- Install npm dependencies
- Add the plugin to
~/.config/opencode/opencode.json(OpenCode) - Configure hooks in
~/.claude/settings.json(Claude Code, if detected) - Configure hooks in
~/.gemini/settings.json(Gemini CLI, if detected) - Configure notify in
~/.codex/config.toml(Codex, if detected) - Install the
/sfxcommand globally (OpenCode)
The user must restart their AI coding agent after installation.
-
Clone to any directory:
git clone https://github.com/jimrubenstein/opencode-sfx.git ~/.config/opencode/plugins/opencode-sfx -
Install dependencies:
cd ~/.config/opencode/plugins/opencode-sfx && npm install
-
Add to
~/.config/opencode/opencode.json:{ "plugin": [ "~/.config/opencode/plugins/opencode-sfx/plugin.ts" ] } -
Copy the slash command:
cp ~/.config/opencode/plugins/opencode-sfx/commands/sfx.md ~/.config/opencode/commands/
- Node.js (for npm)
- git
- python3 (used by the installer to update JSON/TOML config files)
- At least one supported AI coding agent installed
- A system audio player (macOS
afplay, Linuxpaplay/aplay, or Windows PowerShell)
After the user restarts their agent, a startup chime should play. In OpenCode, the user can run /sfx test to verify.
To create a custom sound theme, the user can run opencode-sfx create in their terminal for an interactive wizard.
To install a theme pack from a URL or local zip file, the user can run opencode-sfx install <url-or-path>, then /sfx reload to pick it up.