codex - 💡(How to fix) Fix Remote SSH connection falsely reports No `codex` found in PATH when `codex` is installed at a custom path [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19198Fetched 2026-04-24 05:58:58
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Timeline (top)
labeled ×2commented ×1

Error Message

  • Open up codex app and try connecting to the remote host. You will get an error.

Code Example

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

---

export PATH="$HOME/bin:$PATH"
RAW_BUFFERClick to expand / collapse

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

extent analysis

TL;DR

Adding the Codex installation path to ~/.profile may resolve the remote connection issue.

Guidance

  • The error message suggests that the Codex App is not finding the codex executable in the system's PATH, despite it being installed and the path being added to .zshrc.
  • Verify that the PATH environment variable is correctly set by running echo $PATH in the terminal on the remote machine.
  • Try adding the Codex installation path to ~/.profile as a workaround, as suggested in the issue description.
  • Ensure that the Codex App is configured to use the correct shell (zsh) or that the PATH variable is being exported correctly.

Example

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

This line should be added to ~/.profile to include the Codex installation path in the system's PATH.

Notes

The issue may be specific to the latest version of the Codex App, as the user mentions it worked in the previous version. The workaround provided may not be a permanent fix, and the root cause of the issue should be investigated further.

Recommendation

Apply workaround: adding the Codex installation path to ~/.profile is a simple and effective solution to resolve the remote connection issue, at least until the root cause is addressed.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Remote SSH connection falsely reports No `codex` found in PATH when `codex` is installed at a custom path [1 comments, 2 participants]