Skip to content

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

  1. Try running codex once so macOS records the block.
  2. Open System Settings → Privacy & Security.
  3. Scroll to Security and click Open Anyway for the blocked codex-aarch64-apple-darwin binary.
  4. Confirm and run codex again.

Option B: Remove the quarantine flag (Terminal)

  1. Find where codex is installed:

    command -v codex
    
  2. 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"
    
  3. Remove the quarantine attribute:

    xattr -d com.apple.quarantine /opt/homebrew/bin/codex
    

    If the path is a folder/app bundle (less common), use recursive removal:

    xattr -dr com.apple.quarantine /path/to/codex-or-app
    
  4. Verify quarantine is gone:

    xattr -l /opt/homebrew/bin/codex | grep -i quarantine || echo "No quarantine attribute present"
    
  5. Run codex again.

Optional: Check Gatekeeper assessment

If it still won’t run, check what Gatekeeper reports:

spctl --assess --verbose /opt/homebrew/bin/codex