[BUG] macOS Gatekeeper blocks Claude Code — "claude" Not Opened
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Bug Description
After updating(via Homebrew) and running Claude Code on macOS, Apple's Gatekeeper blocks the binary with the error:
"claude" Not Opened — Apple could not verify "claude" is free of malware that may harm your Mac or compromise your privacy.
The only options presented are "Move to Trash" and "Done".
Workaround
Users can bypass this by going to System Settings -> Privacy & Security and clicking "Allow Anyway" next to the blocked app, but this shouldn't be necessary for an official release.
Environment
- OS: macOS Tahoe 26.3
- Installation method: brew
- Claude Code version: 2.1.59
Screenshot
<img width="123" height="127" alt="Image" src="https://github.com/user-attachments/assets/81f03238-363d-41d7-b6de-14888147b4f4" />
Thank you!
What Should Happen?
Claude Code should launch without being flagged by Gatekeeper. The binary should be properly code-signed and notarized for macOS.
Error Messages/Logs
## Error Message
"claude" Not Opened — Apple could not verify "claude" is free of malware that may harm your Mac or compromise your privacy.
Steps to Reproduce
- Install claude code via
brew install --cask claude-code - Run
claudein terminal - macOS Gatekeeper dialog appears blocking execution
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.59
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
<img width="123" height="127" alt="Image" src="https://github.com/user-attachments/assets/81f03238-363d-41d7-b6de-14888147b4f4" />
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗