Claude Code Notifications: Hooks, Ghostty, iTerm2, Phone
Short answer: Claude Code notifications work out of the box in Ghostty and Kitty, and in iTerm2 after two settings: you get a desktop alert when it finishes or needs permission while you’re away. Anywhere else, set "preferredNotifChannel": "terminal_bell" or add a Notification hook to ~/.claude/settings.json. Remote Control pushes to your phone; a notch app lets you approve in place.
TL;DR
- Terminal: Ghostty and Kitty need no setup, iTerm2 needs two settings, Apple Terminal, Warp and VS Code need the bell or a hook.
- Hook: a
Notificationhook shows a macOS banner when Claude needs input; aStophook fires the instant each turn ends. - Phone: Remote Control pushes permission prompts and finished tasks to the Claude app on Pro, Max, Ultra, Team and Enterprise plans.
- Notch: a notch app turns the same events into cards you can approve, deny or answer.
- Codex has its own
notifyandtui.notificationssettings.
Checked 14 November 2026 against Anthropic’s Claude Code terminal configuration, hooks guide and Remote Control docs. We make FavTray, so weigh our take accordingly; it’s one of the notch options below.
Which Claude Code events can send a notification?
Claude Code raises a Notification hook event when it needs permission, has sat idle waiting for your input, or an MCP server wants something, and a separate Stop event every time Claude finishes responding. The terminal’s built-in alert shares the timing of the timed notification types; a Stop hook runs straight away.
| Event (matcher) | When it fires | Delay | Use it for |
|---|---|---|---|
permission_prompt | Claude needs you to approve a tool use or a sandboxed command’s network request | About 6 seconds after the prompt appears | ”Come back and approve” |
idle_prompt | Claude finished responding and you haven’t typed since | About 60 seconds | ”Done, and waiting for your input” |
Stop (its own event) | Claude finishes responding, at the end of every turn | Immediate | An instant “finished” sound |
elicitation_dialog | An MCP server opens a form and you haven’t typed | About 6 seconds | Forms from MCP servers |
agent_needs_input | A background session starts waiting on you while agent view is open | Immediate or about 6 seconds | Several sessions at once |
auth_success | Authentication completes | Immediate | Knowing a login went through |
Everything except Stop is a matcher value for the Notification hook. An empty matcher fires on every type, and the hooks guide lists the rest, including usage-limit auto-resume types. In a terminal, the timed types only fire while you seem to be away, so typing holds them off. Stop doesn’t fire when you interrupt with Ctrl+C. Claude Desktop and the VS Code extension time permission_prompt differently from a terminal.
For the full list of hook events beyond notifications, see our Claude Code hooks guide.
Does my terminal already send Claude Code notifications?
Yes in Ghostty and Kitty, and in iTerm2 after two settings. When Claude Code detects one of those three and Claude finishes a task or pauses for permission while you’re away, it sends a desktop notification by default. Apple Terminal, Warp and VS Code’s integrated terminal send nothing useful by default and need the bell setting or a hook.
| Terminal | Default behaviour (as of November 2026) | What to do |
|---|---|---|
| Ghostty | Desktop notification | Nothing; allow Ghostty in System Settings > Notifications |
| Kitty | Desktop notification | Nothing |
| iTerm2 | Desktop notification, shown only once alerts are on | Turn on two settings (below) |
| Apple Terminal | A silent bell character, or nothing | terminal_bell plus Audible bell on |
| Warp, VS Code, other terminals | Nothing | terminal_bell or a Notification hook |
How do I turn on Claude Code notifications in iTerm2?
Open iTerm2 Settings > Profiles > Terminal, check Notification Center Alerts, then click Filter Alerts and turn on Send escape sequence-generated alerts. If nothing shows, confirm iTerm2 itself is allowed under System Settings > Notifications.
How do I get a sound in Apple Terminal, Warp or VS Code?
Make Claude Code ring the terminal bell by adding this to ~/.claude/settings.json, alongside any settings already there:
{
"preferredNotifChannel": "terminal_bell"
}
If you accepted Claude Code’s first-run setup in Apple Terminal, it turned the audible bell off; turn it back on under Terminal Settings > Profiles > Advanced > Audible bell.
Do notifications work over SSH?
Yes, once you tell Claude Code which terminal is on your Mac. On the remote machine, set preferredNotifChannel to "ghostty", "kitty" or "iterm2" to match your local terminal. Ghostty and Kitty then forward the alert to macOS with no further setup; iTerm2 needs the two settings above.
Do Claude Code notifications work inside tmux?
Yes, once tmux passes them through. Turn on passthrough, set preferredNotifChannel to your outer terminal ("ghostty", "kitty" or "iterm2"), and reload tmux:
echo 'set -g allow-passthrough on' >> ~/.tmux.conf
tmux source-file ~/.tmux.conf
Only a pane in the window you’re viewing forwards its notification; a pane in a hidden window sends none.
How do I add a Claude Code notification hook on macOS?
Add a Notification hook to ~/.claude/settings.json that runs osascript to show a macOS banner whenever Claude Code needs your input. It runs alongside the terminal’s own alert rather than replacing it, so it works in any terminal. This is the macOS example from Anthropic’s hooks guide:
{
"hooks": {
"Notification": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "osascript -e 'display notification \"Claude Code needs your attention\" with title \"Claude Code\"'"
}
]
}
]
}
}
If settings.json already has a hooks key, add Notification next to the events already in it instead of replacing the whole object. Anthropic’s terminal docs also give a sound-only version: swap the command for afplay /System/Library/Sounds/Glass.aiff.
How do I get separate alerts for permission and “finished”?
Use one matcher per notification type, and add a Stop hook for an instant sound. This version shows one banner for permission prompts, another when Claude goes idle, and plays the Glass sound as each turn ends:
{
"hooks": {
"Notification": [
{
"matcher": "permission_prompt",
"hooks": [
{
"type": "command",
"command": "osascript -e 'display notification \"Claude Code needs your permission\" with title \"Claude Code\"'"
}
]
},
{
"matcher": "idle_prompt",
"hooks": [
{
"type": "command",
"command": "osascript -e 'display notification \"Claude Code is waiting for you\" with title \"Claude Code\"'"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "afplay /System/Library/Sounds/Glass.aiff"
}
]
}
]
}
}
Stop takes no matcher and fires after every turn, so the sound can get chatty. If it does, delete the Stop block and rely on idle_prompt, which waits about 60 seconds.
How do I test that the hook works?
Type /hooks in Claude Code and check your hook is listed under Notification. Then press Esc, press Shift+Tab until the status bar shows manual mode, ask Claude to do something that needs permission, and switch to another app. A banner should appear after about six seconds.
If no banner appears: osascript notifications come from Script Editor. Without its permission the command fails silently, and macOS doesn’t ask. Run this once (it only shows a test banner):
osascript -e 'display notification "test"'
Then open System Settings > Notifications > Script Editor, turn on Allow Notifications, and run it again to confirm.
Hooks in ~/.claude/settings.json apply to all your projects; .claude/settings.json in a repo applies to that project and can be committed for your team. These are all local notifications: nothing leaves your Mac.
Can I get Claude Code push notifications on my phone?
Yes, with Claude Remote Control notifications. Remote Control connects the Claude app on iOS or Android, or claude.ai/code, to the Claude Code session on your Mac, and pushes a notification when Claude needs a decision or finishes a long task. As of November 2026 it needs a Claude Pro, Max, Ultra, Team or Enterprise plan; API keys aren’t supported.
- Start it. Run
claude --remote-control, or/remote-controlinside a running session.claude remote-controlstarts server mode, which serves several sessions. - Sign in on your phone. Install the Claude app, sign in with the same account and organization you use for Claude Code, and accept the notification prompt.
- Turn push on. In
/config, enable Push when actions required (permission prompts and questions), Push when Claude decides (typically when a long task finishes), or both. You can also ask in a prompt: “notify me when the tests finish”.
Worth knowing:
- On Team and Enterprise plans, an Owner must enable Remote Control first in the Claude Code admin settings.
- Pushes are skipped while you’re typing in, or focused on, the connected terminal. To skip them whenever you’re at the Mac, set
CLAUDE_CLIENT_PRESENCE_FILEto a marker file path; no pushes go out while it exists. - If
/configshows No mobile registered, open the Claude app so it refreshes its push token. - On iOS, Focus modes and notification summaries can delay or suppress pushes (Settings > Notifications > Claude). On Android, battery optimization can delay them.
Can Claude Code notifications show in the MacBook notch?
Yes. A notch app installs Claude Code hooks and shows each event as a card under the notch. Unlike a banner or a bell, you act in place: approve or deny a permission prompt, or answer Claude’s question, and Claude Code carries on without you switching to the terminal. For a deeper comparison, see how to approve Claude Code from the notch.
FavTray is a macOS menu bar app that bundles developer and productivity tools, free with daily limits and $4.99 once for Lifetime. Its Agent Sessions feature shows four Claude Code cards in the notch (as of version 2.3.0):
- “Claude Code wants: tool” shows the command, file or URL with Allow and Deny. It arrives as soon as Claude asks, because it uses the
PermissionRequesthook rather than the six-secondpermission_prompt. After 55 seconds, Claude Code’s own terminal prompt takes over; FavTray never approves or denies on a timeout. - “Claude Code asks” shows the project, the question and its options. Answer opens the island’s Agents page, where you pick one, tick several or type your own. After 30 seconds, the question goes back to the terminal.
- “Claude Code finished” shows the project and the start of Claude’s last message when a turn ends.
- “Claude Code is waiting for you” appears when Claude goes idle (
idle_prompt), at most once every 2 minutes per session.
Show me on the finished and waiting cards opens that session on the Agents page, and the 26-second notch approvals video shows the flow.
- Setup: turn it on in Settings > Claude Code; your next Claude Code session picks it up. FavTray adds
PermissionRequest,Stop,NotificationandPreToolUse(forAskUserQuestion) hooks to~/.claude/settings.jsonnext to your own, backs the file up each time it installs them, and removes only its own entries when you turn it off. Requests and answers travel over a local unix socket that only your macOS user can open. - Sounds: optional cues, off by default, and quiet in fullscreen apps, during screen sharing and in a Focus.
- No notch: the cards come from a small glass pill at the top of the screen.
- Limits: cards and approvals are Claude Code only (Codex sessions are listed, with no cards; Gemini and Cursor agents aren’t monitored), no phone app, and it never shows other apps’ notifications.
- Plan: Claude Code approvals are part of FavTray Pro, included in the 7-day free trial every install gets. The free tier doesn’t include them.
Other notch apps, all checked on 14 November 2026:
| App | Price | Licence | Phone app | Agents |
|---|---|---|---|---|
| coucou | Free, open source | MIT (name and artwork reserved) | iPhone (TestFlight beta); its Android app pairs with Windows or Linux, not a Mac | Claude Code, Codex, Cursor, Gemini CLI and others |
| CodeIsland | Free | MIT | iPhone (Code Island Buddy) | 30+ coding agents |
| Vibe Notch | Free | Apache-2.0 | Not listed | Claude Code |
| Vibe Island | $19.99 once (1 Mac, 1 year of updates) | Paid | Not listed | 30 coding agents |
| FavTray | Pro, $4.99 once; 7-day trial | Paid | No | Claude Code cards; Codex sessions listed |
If you mainly want an iPhone app or support for many agents, coucou or CodeIsland do more than FavTray here. FavTray makes sense if you also want the rest of its menu bar tools, such as the AI usage tracker for your Claude Code usage limits. Other notch ideas are in our roundup of Dynamic Island apps for the Mac notch.
Which Claude Code notification method should you use?
Choose by where you’ll be when Claude needs you. At your desk, the terminal’s alert, the bell or a hook is enough. Away from it, use Remote Control. At your Mac but busy in other apps, a notch app lets you answer without switching windows.
| Way | Setup | Tells you when | Can you act on it there? | Away from your Mac | Cost |
|---|---|---|---|---|---|
| Terminal notification | None in Ghostty and Kitty; two settings in iTerm2 | Claude finishes or needs permission while you’re away | No, you go back to the terminal | No | Free |
| Terminal bell | One setting | The same events | No | No | Free |
| Notification hook | Edit settings.json | Any notification type you match, and every finished turn with Stop | No | Only if your command forwards it | Free |
| Remote Control push | /config toggles and the Claude app | Claude needs a decision, or decides to tell you | Yes, in the Claude app | Yes | Included in Claude Pro, Max, Ultra, Team and Enterprise |
| Notch app | Install the app, which adds hooks | Permission prompts and questions, plus more depending on the app | Approve, deny and answer | No (some have phone apps) | Free to $19.99 |
- One terminal, at your desk: the terminal’s own notification or the bell, plus a
Stophook if you want to hear every finished turn. - Long tasks while you’re out: Remote Control with Push when actions required on.
- Several sessions in the background: a notch app, so approvals don’t wait for you to switch windows. Running several sessions also burns tokens faster; see how to reduce Claude Code token usage.
How do I get Codex notifications?
Codex CLI uses its own settings in ~/.codex/config.toml, not Claude Code’s. notify runs a program you choose whenever Codex emits a supported event (currently only agent-turn-complete). tui.notifications, in the [tui] table, turns on the terminal UI’s built-in alerts and can be filtered to event types such as agent-turn-complete and approval-requested; tui.notification_method picks auto, osc9 or bel.
Codex also has hooks in ~/.codex/hooks.json or inline [hooks] tables. The advanced config and config reference docs have the details.
Why isn’t my Claude Code notification showing?
Usually it’s macOS or timing, not Claude Code: a missing notification permission, a Focus, tmux without passthrough, or a timed notification that hasn’t fired because you were typing or didn’t wait the 6 to 60 seconds. Check these in order:
| Symptom | Likely cause | Fix |
|---|---|---|
| Hook runs, no banner | Script Editor can’t notify | Run the osascript test, allow Script Editor in System Settings > Notifications |
| No built-in alert in Ghostty or iTerm2 | The terminal can’t notify | Allow Ghostty, Kitty or iTerm2 in System Settings > Notifications; turn on iTerm2’s alert settings |
| Nothing at all | Focus or Do Not Disturb is on | Turn it off or allow the terminal and Script Editor in the Focus |
| Works outside tmux only | tmux swallows it | set -g allow-passthrough on and set preferredNotifChannel |
| Hook never runs | Wrong file or invalid JSON | Use ~/.claude/settings.json or .claude/settings.json; check with /hooks |
| Alert comes late | Timing | permission_prompt waits about 6 seconds, idle_prompt about 60; use Stop for instant |
| No sound in Apple Terminal | Audible bell is off | Settings > Profiles > Advanced > Audible bell |
| No phone push | You’re at the terminal, or no device registered | Pushes skip while you’re focused there; open the Claude app if /config shows No mobile registered |
Start with what your terminal already does, add a hook for a banner or a sound, and reach for Remote Control or a notch app when you need to answer from somewhere other than the terminal. If you want those answers under the notch alongside your other menu bar tools, see FavTray pricing.
Sources (checked 14 November 2026): Claude Code terminal configuration, hooks guide, hooks reference and Remote Control; Codex advanced config, config reference and hooks; coucou, CodeIsland, Vibe Notch and Vibe Island; and the FavTray changelog.
Frequently Asked Questions
How do I get a notification when Claude Code finishes?
In Ghostty and Kitty, Claude Code already sends a desktop notification when it finishes or pauses for permission while you seem to be away, and iTerm2 does the same once its Notification Center alerts are on. In other terminals, set preferredNotifChannel to terminal_bell in ~/.claude/settings.json or add a Notification hook. For an alert the moment each turn ends, add a Stop hook.
Why doesn't my Claude Code notification hook show anything?
Usually Script Editor isn't allowed to notify. osascript banners come from Script Editor, and macOS fails silently instead of asking. Run osascript -e 'display notification "test"' once, then turn on Allow Notifications for Script Editor in System Settings > Notifications. Also check Focus, that the JSON in ~/.claude/settings.json is valid (type /hooks to see what loaded), and timing: idle_prompt fires about 60 seconds after Claude finishes.
What's the difference between the Notification and Stop hooks in Claude Code?
Notification runs when Claude Code sends a notification: a permission prompt that has waited about six seconds, Claude idle about 60 seconds after finishing, an MCP server asking for input, and more. In a terminal those only fire while you seem to be away. Stop runs straight away every time Claude finishes responding, so it suits an instant finished sound, but it fires after every turn and not when you interrupt with Ctrl+C.
Does Claude Code send notifications in Ghostty and iTerm2?
Yes. When Claude Code detects Ghostty, Kitty or iTerm2, it sends a desktop notification by default when it finishes or needs permission while you're away from the terminal. Ghostty and Kitty need no setup. In iTerm2, open Settings > Profiles > Terminal, check Notification Center Alerts, then under Filter Alerts turn on Send escape sequence-generated alerts. The terminal app itself also needs notification permission in System Settings.
Can I get Claude Code notifications on my iPhone?
Yes, with Remote Control on a Claude Pro, Max, Ultra, Team or Enterprise plan; API keys aren't supported. Start the session with claude --remote-control or /remote-control, sign in to the Claude app with the same account and allow notifications, then in /config turn on Push when actions required, Push when Claude decides, or both. Pushes are skipped while you're focused on the connected terminal. Android works the same way.
Can Claude Code notifications show in my MacBook's notch?
Yes, with a notch app that installs Claude Code hooks. FavTray (our app, a Pro feature), coucou, CodeIsland, Vibe Notch and Vibe Island show Claude Code's permission requests under the notch with buttons to approve or deny them, so you don't switch to the terminal. They differ in price, licence, phone apps and which other coding agents they support.