claude-code-notifier
how it works guides faq
◐English
English العربية Deutsch Español Français עברית Italiano 日本語 한국어 Nederlands Polski Português (Brasil) Русский Türkçe Tiếng Việt 简体中文 繁體中文
Get started
All guides

What is Claude Code URL Handler on my Mac?

Updated 27 November 2026 · 3 min read
on this page 01Where it comes from 02What a claude-cli link does 03Is it safe? 04How to turn it off 05Other Claude Code pieces you may spot on a Mac 06FAQ

Claude Code URL Handler is a small helper app that Claude Code creates in ~/Applications on a Mac. It lets links that start with claude-cli:// open a new terminal window running Claude Code, in a chosen folder, with a prompt already typed in. It comes from Anthropic's Claude Code itself, not from anything else you installed. It never runs a prompt on its own: you still have to press Enter. To stop Claude Code creating it, set disableDeepLinkRegistration to "disable" in your settings.

01Where it comes from

According to Anthropic's deep links documentation, Claude Code registers the claude-cli:// link type the first time you send something in an interactive claude session, whether a message or a command like /help. Starting Claude Code and sending nothing does not register it. It is also registered when you start agent view (claude agents) in a trusted folder.

SystemWhat gets created
macOS~/Applications/Claude Code URL Handler.app
Linuxclaude-code-url-handler.desktop in ~/.local/share/applications
WindowsA claude-cli entry under HKEY_CURRENT_USER\Software\Classes

On a Mac it opens links in the terminal you used for your most recent Claude Code session, such as Terminal, iTerm2, Ghostty, kitty, Alacritty or WezTerm.

02What a claude-cli link does

A link looks like this:

claude-cli://open?repo=owner/name&q=Explain%20the%20build%20setup
  • q is the prompt to type in, up to 5,000 characters.
  • cwd is the folder to open in, as a full path.
  • repo is a GitHub repository; Claude Code opens the local copy where you last ran claude, or your home folder if it has none.

Teams use these links in docs, issue trackers and runbooks, so one click opens Claude Code ready to work on the right project.

03Is it safe?

The design keeps a link from doing anything by itself:

  • The prompt is typed in but not sent. Nothing happens until you read it and press Enter.
  • Claude Code shows a warning that the prompt came from an external link until you send or clear it.
  • Your permission mode, permission rules and CLAUDE.md apply as usual.
  • Paths with .., network paths and hidden control characters are rejected.

So the risk is the same as someone handing you a prompt to paste: read it before you press Enter.

04How to turn it off

Add this to ~/.claude/settings.json:

{
  "disableDeepLinkRegistration": "disable"
}

Organizations can set the same key in managed settings. It covers claude-cli:// links only; the VS Code extension has its own link type.

Anthropic does not document whether deleting the app is enough. Without the setting above, Claude Code may create it again the next time you use it, so set the setting first and then delete ~/Applications/Claude Code URL Handler.app if you want it gone.

05Other Claude Code pieces you may spot on a Mac

  • osascript in Activity Monitor, usually from a notification hook. See What is osascript?.
  • Hooks you or a tool added in ~/.claude/settings.json, listed with /hooks. Claude Code Notifier, an independent tool (not made by Anthropic) for phone notifications, adds its hooks there as ccn commands.

06FAQ

What is Claude Code URL Handler?

A small app Claude Code creates in ~/Applications so claude-cli:// links can open Claude Code in a terminal with a folder and prompt filled in.

Is Claude Code URL Handler a virus?

No. Claude Code creates it the first time you use an interactive session. A link can only fill in a prompt; nothing runs until you press Enter.

Can I delete Claude Code URL Handler?

Yes, but set disableDeepLinkRegistration to "disable" in ~/.claude/settings.json first, or Claude Code may create it again.

Where is Claude Code URL Handler installed?

At ~/Applications/Claude Code URL Handler.app in your home folder, not in the main Applications folder.

Claude Code Notifier Get a push on your phone when Claude Code finishes or needs you, then approve, deny or answer from there. The ccn command line tool is free on Mac, Windows and Linux.
Download for iOS Download for Android Install ccn

Use OpenAI's Codex CLI? Notifier for Codex does the same for Codex.

Use Antigravity? Try Antigravity Notifier

Related guides

  • What is osascript on a Mac, and why does Claude Code run it?osascript is macOS's built-in command for running AppleScript. Why it shows up with Claude Code, what the "wants access to control" prompt means, and how to reset it.
  • Claude Code hooks explained: every event and what it is forWhat Claude Code hooks are, where they go in settings.json, how matchers, input and exit codes work, and what each hook event is for.
  • Claude Code notifications on macOSGet a macOS notification when Claude Code finishes or needs permission: built-in terminal alerts, an osascript hook, terminal-notifier, or ccn.
  • Is it safe to approve Claude Code actions from your phone?How remote approval for Claude Code works, what can go wrong, what data leaves your computer, and the settings that keep it safe.
claude-code-notifier

Claude Code Notifier is an independent third-party application. It is not affiliated with, endorsed by, or sponsored by Anthropic, PBC. "Claude" and "Claude Code" are trademarks of Anthropic, PBC.

apps iOS App Android App ccn for macOS, Windows & Linux All guides Use Codex? Try Notifier for Codex Use Antigravity? Try Antigravity Notifier
legal Privacy Policy Terms of Service Other languages © 2026 touchtap. All rights reserved. TouchTap Ltd is registered in England and Wales, company number 13942589.