codex remove quarantine
remove the macbook quarantine from codex executable after upgrades
IDE:
claude
codex
vscode
Version:
0.0.0
Scenario
Apple could not verify "codex-aarch64-apple-darwin" is free of malware that may harm your Mac or compromise your privacy, and you fix that
Fix
Only do this if you trust the source of the codex binary (e.g., you installed it via Homebrew or downloaded it from an official release).
Option A (Recommended): Approve via macOS UI
- Try running
codexonce so macOS records the block. - Open System Settings → Privacy & Security.
- Scroll to Security and click Open Anyway for the blocked
codex-aarch64-apple-darwinbinary. - Confirm and run
codexagain.
Option B: Remove the quarantine flag (Terminal)
-
Find where
codexis installed:command -v codex -
Inspect quarantine attributes (replace the path with the output from step 1):
xattr -l /opt/homebrew/bin/codex | grep -i quarantine || echo "No quarantine attribute present" -
Remove the quarantine attribute:
xattr -d com.apple.quarantine /opt/homebrew/bin/codexIf the path is a folder/app bundle (less common), use recursive removal:
xattr -dr com.apple.quarantine /path/to/codex-or-app -
Verify quarantine is gone:
xattr -l /opt/homebrew/bin/codex | grep -i quarantine || echo "No quarantine attribute present" -
Run
codexagain.
Optional: Check Gatekeeper assessment
If it still won’t run, check what Gatekeeper reports:
spctl --assess --verbose /opt/homebrew/bin/codex

