Claude Code notification sound: play a sound when Claude is done
Updated 2026-12-04
A sound is the lightest Claude Code notification: no popup, no app, nothing to install. Add a Stop hook that plays a short sound, and a Notification hook that plays a different one, so you can tell "done" from "Claude is waiting for you" without looking.
macOS
macOS ships with system sounds and the afplay command. Soft for done, louder for waiting:
{
"hooks": {
"Stop": [
{ "hooks": [ { "type": "command", "command": "afplay /System/Library/Sounds/Glass.aiff" } ] }
],
"Notification": [
{ "hooks": [ { "type": "command", "command": "afplay /System/Library/Sounds/Sosumi.aiff" } ] }
]
}
}
Linux
On most desktops with PulseAudio or PipeWire, paplay plays the standard freedesktop sounds. The path can differ per distribution, so check that the file exists first.
{
"hooks": {
"Stop": [
{ "hooks": [ { "type": "command", "command": "paplay /usr/share/sounds/freedesktop/stereo/complete.oga" } ] }
],
"Notification": [
{ "hooks": [ { "type": "command", "command": "paplay /usr/share/sounds/freedesktop/stereo/dialog-warning.oga" } ] }
]
}
}
Windows
PowerShell can play the built-in system sounds. The short sleep keeps the process alive until the sound has played.
{
"hooks": {
"Stop": [
{ "hooks": [ { "type": "command", "command": "powershell -NoProfile -Command \"[System.Media.SystemSounds]::Asterisk.Play(); Start-Sleep -Milliseconds 800\"" } ] }
],
"Notification": [
{ "hooks": [ { "type": "command", "command": "powershell -NoProfile -Command \"[System.Media.SystemSounds]::Exclamation.Play(); Start-Sleep -Milliseconds 800\"" } ] }
]
}
}
Tips
- Make "waiting" the louder sound. A missed question costs you the most time.
- Short tasks will beep too.
Stopfires after every reply. See hooks explained for skipping tasks under about 15 seconds. - Restart the session after editing
settings.json. - Away from your computer? A sound only helps within earshot. Use a phone push instead.
Frequently asked questions
How do I make Claude Code play a sound when it finishes?
Add a Stop hook to your Claude Code settings that runs a sound command: afplay on macOS, paplay on Linux, or a PowerShell SystemSounds call on Windows.
Can I use a different sound when Claude is waiting for me?
Yes. Add a separate Notification hook with a louder sound. That event fires when Claude needs permission or is waiting for your input.
Will it play a sound for every short reply?
Yes, Stop fires after every response. To skip short tasks, record the prompt start time with a UserPromptSubmit hook and compare it in a script.