Remote SSH connection falsely reports No `codex` found in PATH when `codex` is installed at a custom path

Resolved 💬 3 comments Opened Apr 23, 2026 by yiteng-guo Closed Aug 26, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

26.422.20832

What subscription do you have?

api

What platform is your computer?

_No response_

What issue are you seeing?

Remote connection to SSH host fails with:

No `codex` found in PATH. Please install Codex on the remote machine.

But codex is installed at /home/$USER/bin and that path is added to $PATH in .zshrc. I believe this is a regression in the latest codex app since it worked in the previous version.

To work around it, you need to add /home/$USER/bin to ~/.profile such as

export PATH="$HOME/bin:$PATH"

What steps can reproduce the bug?

  • Install codex at /home/$USER/bin and add /home/$USER/bin to $PATH in .zshrc
  • Open up codex app and try connecting to the remote host. You will get an error.

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 4 months ago

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

  • #18894
  • #17567
  • #18183

Powered by Codex Action

fragpic · 4 months ago

Facing the same issue! It was working fine before the most recent update.

yiteng-guo · 2 days ago

I think the latest desktop version uses login shell so ~/.zshrc or ~/.bashrc will be loaded correctly. Separately, there's a new env var CODEX_INSTALL_DIR that you can use to override your codex installation directory.