For a Claude Code notification sound when done on Mac, add a Stop hook to ~/.claude/settings.json that runs afplay with a system sound. A Notification hook alerts you when Claude needs input or approval. To hear the reply itself, the free Readwalk for Mac reads it aloud and listens for your answer.
Does Claude Code play a sound when it's done?
The default alert depends on your terminal. When Claude Code detects Ghostty, Kitty or iTerm2, it sends a desktop notification. In iTerm2, you must enable Notification Center Alerts, then select "Send escape sequence-generated alerts" under Filter Alerts.
By default, Claude Code sends Apple Terminal a silent bell character only when it detects that Audible bell is off; otherwise it sends nothing. Set preferredNotifChannel to terminal_bell and enable Audible bell to hear it. Visual bell or Dock bounce can still flash the window or bounce the Dock icon if enabled. Other terminals get no built-in alert by default. See the official terminal bell and notification documentation.
To hear a Claude Code terminal notification sound, put this setting in ~/.claude/settings.json:
{
"preferredNotifChannel": "terminal_bell"
}
If the file already has settings, add this property inside its existing outer braces. In Apple Terminal, also turn on Audible bell under Settings › Profiles › Advanced. Running /terminal-setup turns Audible bell off in your Apple Terminal profile, so turn it back on if you've used that command.
Which hook gives me a Claude Code notification sound when done?
Use Stop for the moment Claude finishes responding. Notification runs when Claude Code sends a notification, which can happen after it has been waiting for you:
permission_promptfires when a tool approval prompt has waited about six seconds.idle_promptfires about 60 seconds after Claude finishes responding if you haven't typed since.
A Notification hook alone therefore gives you the finished-turn alert about a minute late. Use both events if you want to hear when Claude finishes and know when it needs approval. Omitting the Notification matcher makes the hook run for every notification type.
These hooks also run for sessions in the VS Code extension; see how to talk to Claude Code in VS Code.
For how events, matchers and exit codes work in general, see Claude Code hooks explained.
How do I add a sound hook on Mac?
This Claude Code notification sound hook plays Glass when a turn ends and shows a banner when Claude needs attention.
Open
~/.claude/settings.json, or create it if it doesn't exist. This file applies to all your projects.Add the
hooksblock below. If you already have ahooksblock, add these entries to it and keep your existing hooks. The example uses Stop for the sound and Notification for the banner.{ "hooks": { "Stop": [ { "hooks": [ { "type": "command", "command": "afplay /System/Library/Sounds/Glass.aiff" } ] } ], "Notification": [ { "hooks": [ { "type": "command", "command": "osascript -e 'display notification \"Claude Code needs your attention\" with title \"Claude Code\"'" } ] } ] } }Type
/hooksin Claude Code and check that both hooks are listed.
Your hooks run alongside Claude Code's built-in notification. Adding them doesn't turn that notification off.
To hear the reply itself instead of a sound, a Stop hook can pass it to say: see Claude Code text to speech.
Can I get a macOS banner instead of a sound?
Yes. The Notification hook above uses this command:
osascript -e 'display notification "Claude Code needs your attention" with title "Claude Code"'
To get a banner as soon as a turn finishes, use that command in the Stop hook too, in place of the afplay command.
These notifications come from Script Editor. Without notification permission for Script Editor, the command fails silently. Run the osascript command above once first so Script Editor appears in the list (Claude Code hooks guide). Then go to System Settings › Notifications › Script Editor and turn on Allow Notifications. Check Focus if banners don't appear.
Away from your Mac, Remote Control can send push notifications to your phone instead. See how to talk to Claude Code from your phone.
Can Readwalk tell me what Claude Code did?
Readwalk for Mac is free and needs macOS 15 or later on a Mac with Apple silicon. In Readwalk's menu, choose Claude Sessions › Connect to Claude Code…, then switch on the session you want to hear. Readwalk reads Claude's messages when a turn ends. It skips tool calls and tool output.
The session you're talking to reads its reply in its own voice. Readwalk then plays a chime and listens for your spoken answer, which it sends to that session. See how to talk to Claude Code by voice.
With several Claude Code sessions, other switched-on sessions give a one-line headline in their own voice. The headline keeps the session's closing question and ends with "There's more: say read the rest."
If you're starting several agents at once, run each in its own git worktree so their changes stay apart.
Readwalk waits for any reading you started to finish before speaking. It doesn't listen while it reads. Switching sessions and typing into idle sessions use Apple's Terminal app only.
Your own hooks stay in place when Readwalk connects, so your afplay hook can keep running. The setup guide explains what Connect to Claude Code changes in your settings.
What if the sound doesn't play?
Start with /hooks to confirm that your hook is registered. For the built-in bell, check preferredNotifChannel and Apple Terminal's Audible bell setting. Remember that /terminal-setup turns Audible bell off. For missing banners, check Script Editor's notification permission.
Over SSH, set preferredNotifChannel on the machine running Claude Code to your local terminal's value: iterm2, kitty or ghostty.
For tmux, add this to ~/.tmux.conf:
set -g allow-passthrough on
To apply the change to a running tmux server, run tmux source-file ~/.tmux.conf, detach and reattach, then restart Claude Code. See the official tmux setup instructions.
With preferredNotifChannel set to iterm2, kitty or ghostty, notifications can reach the outer terminal from a visible pane. With this configuration, a pane in a window you aren't viewing sends no notification, as described in the official tmux notification documentation.
Frequently asked questions
How do I make Claude Code play a sound when it's done?
Add a Stop command hook to ~/.claude/settings.json that runs afplay /System/Library/Sounds/Glass.aiff. Stop runs when Claude finishes responding. Check the hook with /hooks.
Can Claude Code play a sound when it asks a question or needs permission?
Use a Notification hook running afplay /System/Library/Sounds/Glass.aiff. The permission_prompt matcher fires after a tool approval prompt has waited about six seconds. For a finished reply waiting on your answer, idle_prompt fires after about 60 seconds without typing; use Stop if you want the sound as soon as the reply ends.
Why does my Claude Code notification come a minute late?
The Notification event's idle_prompt waits about 60 seconds after Claude finishes responding, with no typing from you. Put your sound command in a Stop hook to hear it when the turn ends.
Can Claude Code read its reply aloud when it finishes?
Yes. The free Readwalk for Mac reads the reply in the session's voice, then chimes and listens for your answer. Connect it through Claude Sessions › Connect to Claude Code… and switch the session on.