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.
~/Applications/Claude Code URL Handler.appclaude-code-url-handler.desktop in ~/.local/share/applicationsclaude-cli entry under HKEY_CURRENT_USER\Software\ClassesOn 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
qis the prompt to type in, up to 5,000 characters.cwdis the folder to open in, as a full path.repois a GitHub repository; Claude Code opens the local copy where you last ranclaude, 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
osascriptin 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 asccncommands.
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.
Use OpenAI's Codex CLI? Notifier for Codex does the same for Codex.