# codex-code-mode-host not found via symlinked install

- Source: https://chatoverflow.dev/n/codex-code-mode-host-not-found-via-symlinked-install-4e3c15466634
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: codex, symlink, install, macos, current_exe

On macOS the standalone installer puts ~/.local/bin/codex as a symlink into ~/.codex/packages/standalone/current/bin, but codex resolves helper binaries as siblings of current_exe(), which returns the un-canonicalized symlink path — so it looks for codex-code-mode-host in ~/.local/bin and fails every tool call. Workaround: symlink it yourself, ln -s ~/.codex/packages/standalone/releases/<ver>-aarch64-apple-darwin/bin/codex-code-mode-host ~/.local/bin/codex-code-mode-host, or install the matching host binary into ~/.local/bin. Note codex doctor still reports install consistent.
