You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
codex 0.144.0 homebrew cask is missing codex-code-mode-host every command is failing with "failed to spawn code-mode host" #31906
What terminal emulator and version are you using (if applicable)?
No response
Codex doctor report
What issue are you seeing?
Summary
Fresh brew install --cask codex (0.144.0) is totally unusable. Every command fails before running:
failed to spawn code-mode host /opt/homebrew/bin/codex-code-mode-host: No such file or directory (os error 2)
Even ls fails, because code-mode routes all exec through this sidecar.
Cause
0.144.0 needs a codex-code-mode-host sidecar, but the cask installs only the codex binary. Casks/c/codex.rb declares just:
binary "codex-#{arch}-#{os}", target: "codex"
brew info --cask codex confirms: no codex-code-mode-host in the artifacts.
Cask-only bug — other channels ship the sidecar:
npm @openai/[email protected] has vendor/aarch64-apple-darwin/bin/codex-code-mode-host
ChatGPT desktop app bundles it in Contents/Resources/
Environment
codex-cli 0.144.0 (Homebrew cask), macOS, Apple Silicon (arm64)
What steps can reproduce the bug?
Fresh installation of codex newest version with homebrew
What is the expected behavior?
No response
Additional information
No response
Reacted by Hai Feng Kao, Toly Pochkin, Nick Camillo, Minoru Mizutani, Matt Green, Joel Burget, Mekonnen Alemu, André Afonso, Marcus Kimpenhaus, Hector Magaña and 34 more
Reacted by André Afonso, Chris Bennight, Christian Reyes, Quentin Calvez, Junoh Moon, Hyunsug, Oh, Alex and Vanson
Same here. From codex itself:
That confirms a Codex 1.44 packaging/launcher regression, not an Xcode MCP problem. MCP connects successfully, but Codex fails before invoking it because the code-mode helper is missing at:
/opt/homebrew/bin/codex-code-mode-host
codex doctor apparently does not validate that helper. The useful bug report is: 1.44, macOS/Apple Silicon, doctor passes, Xcode MCP connects, every tool call fails spawning that missing executable.
Downgrading to the prior Codex version is the immediate workaround.
version = "0.144.0"
releases = json.load(sys.stdin)
release = next(
(r for r in releases if r["tag_name"].endswith(version)),
None,
)
if release is None:
raise SystemExit("Release not found")
assets = [
a for a in release["assets"]
if "codex-code-mode-host" in a["name"]
and "aarch64-apple-darwin" in a["name"]
and not a["name"].endswith((".sha256", ".sig"))
]
if not assets:
raise SystemExit("Host asset not found")
assets.sort(key=lambda a: (
not a["name"].endswith(".tar.gz"),
a["name"],
))
print(assets[0]["browser_download_url"])
'
)"
thanks for the reports here: this was fixed in the 0.144.1 hotfix, and homebrew was updated to that release in Homebrew/homebrew-cask#274225
the same issue was tracked in #31831, which is now closed as completed, so i’m closing this duplicate too
if the missing codex-code-mode-host error still reproduces on a current homebrew release, please share codex --version and brew info --cask codex and we can take another look
Activity
github-actions commentedon Jul 9, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
codex-code-mode-hostis missing #31863codex-code-mode-host is missingerrors after upgrading codex #31833Powered by Codex Action
mobiletoly commentedon Jul 9, 2026
upgraded. have exactly the same issue. so effectively codex CLI is unusable.
wonderg commentedon Jul 9, 2026
same problem here. only possible solution now is
afvca commentedon Jul 9, 2026
It seems this only affects gpt-5.6 models. 5.5 is working fine.
productspace-gh commentedon Jul 9, 2026
Same here. From codex itself:
That confirms a Codex 1.44 packaging/launcher regression, not an Xcode MCP problem. MCP connects successfully, but Codex fails before invoking it because the code-mode helper is missing at:
/opt/homebrew/bin/codex-code-mode-host
codex doctor apparently does not validate that helper. The useful bug report is: 1.44, macOS/Apple Silicon, doctor passes, Xcode MCP connects, every tool call fails spawning that missing executable.
Downgrading to the prior Codex version is the immediate workaround.
raspverry commentedon Jul 9, 2026
I fixed this issue with this.
`
set -euo pipefail
version="0.144.0"
tmp="$(mktemp -d)"
trap 'rm -rf "$tmp"' EXIT
url="$(
curl -fsSL "https://api.github.com/repos/openai/codex/releases?per_page=20" |
python3 -c '
import json, sys
version = "0.144.0"
releases = json.load(sys.stdin)
release = next(
(r for r in releases if r["tag_name"].endswith(version)),
None,
)
if release is None:
raise SystemExit("Release not found")
assets = [
a for a in release["assets"]
if "codex-code-mode-host" in a["name"]
and "aarch64-apple-darwin" in a["name"]
and not a["name"].endswith((".sha256", ".sig"))
]
if not assets:
raise SystemExit("Host asset not found")
assets.sort(key=lambda a: (
not a["name"].endswith(".tar.gz"),
a["name"],
))
print(assets[0]["browser_download_url"])
'
)"
asset="$tmp/${url##*/}"
mkdir "$tmp/unpacked"
curl -fL "$url" -o "$asset"
case "$asset" in
.tar.gz|.tgz|.tar.zst|.tar.xz)
tar -xf "$asset" -C "$tmp/unpacked"
;;
*.zip)
ditto -x -k "$asset" "$tmp/unpacked"
;;
*)
cp "$asset" "$tmp/unpacked/codex-code-mode-host-aarch64-apple-darwin"
;;
esac
host="$(find "$tmp/unpacked" -type f -name 'codex-code-mode-host*' | head -n 1)"
test -n "$host"
file "$host" | grep -Eq 'Mach-O.*(arm64|universal)'
install -m 0755 "$host" /opt/homebrew/bin/codex-code-mode-host
ls -la /opt/homebrew/bin/codex-code-mode-host
`
tomjod commentedon Jul 9, 2026
Same problem here
NorthSeven-02 commentedon Jul 10, 2026
same as 0.144.0 gpt-5.6-Sol for /opt/homebrew/bin/codex-code-mode-host: No such file or directory
sibbl commentedon Jul 10, 2026
lol so Codex just wasted a full 5 hour window because of this bug. What a waste of tokens.
Looking forward to a fix! Brew reinstall etc didn't work. Codex can't fix itself either, as it seems.
chess-oai commentedon Aug 15, 2026
thanks for the reports here: this was fixed in the
0.144.1hotfix, and homebrew was updated to that release in Homebrew/homebrew-cask#274225the same issue was tracked in #31831, which is now closed as completed, so i’m closing this duplicate too
if the missing
codex-code-mode-hosterror still reproduces on a current homebrew release, please sharecodex --versionandbrew info --cask codexand we can take another lookcodex: ship codex-code-mode-host alongside codex
Install Codex from npm instead of the Homebrew cask
darccio commentedon Oct 25, 2026
@chess-oai This still happens on
0.164.0, which doesn't containcodex-code-mode-host: