Is damaged and cant be opened

Resolved 💬 11 comments Opened Feb 7, 2026 by smileBeda Closed Feb 27, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex CLI is running?

0.98.0

What subscription do you have?

PRO

Which model were you using?

-

What platform is your computer?

Darwin 25.2.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

Terminal.app

What issue are you seeing?

brew install codex
...
codex
<img width="538" height="566" alt="Image" src="https://github.com/user-attachments/assets/7aa695ad-8a67-4be6-b597-1ac704c8a51c" />

What steps can reproduce the bug?

See above

What is the expected behavior?

a working CLI

Additional information

I have the APP installed as well (downloaded from the internet) - not sure if that is related.

View original on GitHub ↗

11 Comments

github-actions[bot] contributor · 5 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #9632
  • #9060

Powered by Codex Action

etraut-openai contributor · 5 months ago

Are you able to repro this, or was it a one-time occurrence? I'm wondering whether there was just a download error or interruption.

smileBeda · 5 months ago

yes, it is replicable, ever since I try to install/use it.

smileBeda · 5 months ago
brew install codex
==> Auto-updating Homebrew...
Adjust how often this is run with `$HOMEBREW_AUTO_UPDATE_SECS` or disable with
`$HOMEBREW_NO_AUTO_UPDATE=1`. Hide these hints with `$HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
==> Auto-updated Homebrew!
==> Updated Homebrew from 5.0.12 (024ad4fe06) to 5.0.13 (589bfc7ad7).
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
agent-browser: Browser automation CLI for AI agents
cozyhr: Cozy wrapper around Helm and Flux CD for local development
go-air: Live reload for Go apps
ic-wasm: CLI tool for performing Wasm transformations specific to ICP canisters
icp-cli: Development tool for building and deploying canisters on ICP
jqfmt: Opinionated formatter for jq
mac-cleanup-go: TUI macOS cleaner that scans caches/logs and lets you select what to delete
odiff: Very fast SIMD-first image comparison library (with nodejs API)
sheenbidi: Fast and stable implementation of the Unicode Bidirectional Algorithm
static-web-apps-cli: SWA CLI serves as a local development tool for Azure Static Web Apps
transifex-cli: Transifex command-line client
yap: On-device audio transcription using Speech.framework
==> New Casks
clash-mi: Another Mihomo GUI based on Flutter
codex-app: OpenAI's Codex desktop app for managing coding agents
codexbar: Menu bar usage monitor for Codex and Claude
commander: AI agent operator
elegoo-slicer: Open-source slicer for FDM 3D printers
ethui: Ethereum development toolkit with wallet and anvil support
luxury-yacht: Desktop app for managing Kubernetes clusters
middledrag: Middle-click and middle-drag via three-finger trackpad gestures
plasticity: 3D modeling software for concept artists and designers
posturr: Posture monitoring app
repobar: Menu bar dashboard for GitHub repository health
retrace: Local-first screen recording and search application
tana: Knowledge management workspace with AI-powered outlining
thaw: Menu bar manager
trimmy: Paste-once, run-once clipboard cleaner for terminal snippets
yandextelemost: Yandex video calls and meetings platform

You have 34 outdated formulae installed.


The 5.0.13 changelog can be found at:
  https://github.com/Homebrew/brew/releases/tag/5.0.13
==> Downloading https://github.com/openai/codex/releases/download/rust-v0.98.0/codex-aarch64-apple-darwin.tar.gz
Already downloaded: /Users/bedas/Library/Caches/Homebrew/downloads/5b1ee29d533d45a26191cd86b8da5b1ac7301d83442ce6b12ac64af941463ead--codex-aarch64-apple-darwin.tar.gz
==> Installing dependencies: ripgrep
==> Fetching downloads for: ripgrep
✔︎ Bottle Manifest ripgrep (15.1.0)                                                                         Downloaded    8.8KB/  8.8KB
✔︎ Bottle ripgrep (15.1.0)                                                                                  Downloaded    2.2MB/  2.2MB
==> Installing ripgrep
==> Pouring ripgrep--15.1.0.arm64_tahoe.bottle.tar.gz
🍺  /opt/homebrew/Cellar/ripgrep/15.1.0: 14 files, 6.4MB
==> Installing Cask codex
==> Linking Binary 'codex-aarch64-apple-darwin' to '/opt/homebrew/bin/codex'
🍺  codex was successfully installed!
bedas@apollo wargame % codex

And then, the screen thing pops up I show in the opening comment.

etraut-openai contributor · 5 months ago

Are you still seeing this with the latest builds?

botic · 5 months ago

Just got it after a fresh macOS 26.3 update from 26.2.

Woraround: Settings ➡️ Security ➡️ Excplicitly allow this binary. You will get this entry in the settings only after seeing the "macOS blocked unsigned softare" alert.

<img width="1651" height="1704" alt="Image" src="https://github.com/user-attachments/assets/357e6383-7add-4ec5-a5c8-de2309dc9f72" />

ushkinaz · 5 months ago

Started seeing today after standalone codex app update. Reproducible even after brew reinstall.
npm version runs fine

smileBeda · 5 months ago

This is not a solution that should be promoted. Also, it is entirely unrelated to the issue reported here.
It works for the case that user experienced (UNSIGNED NOT EQUAL DAMAGED), but there is a reason things are flagged, and ignoring that, makes the entire tool meaningless (Mac's safety guards, not codex)

---

@ushkinaz - I kept trying when it happened to me, and suddenly it worked.
Far shot but are you on a starlink connection? I am, and I suspect it might have to do something with it (dropped packages, something alike that)

ushkinaz · 5 months ago

@smileBeda good call, but no, I'm not. As far as I know brew uses checksums, so it's probably not connection issues.

ushkinaz · 5 months ago

Nope, I was wrong, is damaged download cache.

brew cleanup -s # not exactly required, but probably better to clean anyway
brew uninstall codex
rm ~/Library/Caches/Homebrew/downloads/*codex-*
# nuclear version: rm -rf "$(brew --cache)"
brew install --cask codex
codex --version

I blame Elon for that damaged cache. Just in case.

boweic · 2 months ago
and suddenly it worked.

@smileBeda haha having the same issue with 0.128.0, have tried all the solutions provided above but no luck, can you help how suddenly it worked. lol