Skip to content
Source
Sign inSign up
pingdotgg/t3code

Codex CLI is installed but failed to run. 'codex' is not recognized as an internal or external command, operable program or batch file. #269

ClosedDiopetes(GitHub profile, opens in a new tab) opened this issue 12 comments
Image

Im a total noob and i have no idea how to fix this

  1. Try reinstalling it.

    Sometimes it just does not show up in your path, or might just require a restart of the app.

  2. I had the same. i just had to paste the path in settings, (installed via homebrew incase that helps)

  3. Thanks guys! I think i made it work thanks to you both!

  4. Reasonable based on how early the project is, but homebrew definitely needs to be supported OOTB in a tool for devs

  5. FYI - As mentioned in #234 the Codex binary path setting seems to have some bug, as I've built the rustc codex from source and setting this option doesn't change the path.

    not afilliated with authors, but I'd first check that codex is available in PATH of the shell session that t3code was launched from, not any other terminal.

  6. arrudacaio(GitHub profile, opens in a new tab)commented

    i had the same issue in windows 11

  7. Image

    I'm Getting this error instead of codex getting node error. I think because of fnm in windows how to fix this

  8. the codex error is also visible after clean install of codex.

    I need to run codex one time and do an auth to get it working.

    t3code It should recognize this error if codex is not authenticated and should suggest a solution. or at least add the info that codex need to run first to login (or some command line command to force just the login)

  9. I remember theo mentioned that you needed to already be authed in codex since t3code is just passing through the requests. Should probably detect that, but feels like a different issue. The core issue appears fixed - t3 code immediately picked up codex from my path (installed with homebrew) both with I tested with npx t3 and when I installed (also with homebrew)

  10. I am also getting this error when using the appimage:

    Codex provider status
    Codex CLI (`codex`) is not installed or not on PATH.
    

    I did try to run which codex and paste the path which did not work. When using the cli to start the app (web version) it works fine. not sure what is the exact issue yet but I do plan to look into it. worth noting that I use fnm

  11. I think my scenario is a bit different from the others. I am not a JS dev, Instead I use C# so installing things using NPM is not standard and I think t3code assumes that NPM installs are present. I have codex installed as part of a VS Code extension and, while I did download the Codex CLI, it did not install anything or add values to the cmd PATH on windows. Just providing some perspective when thinking about different environments.

  12. juliusmarminge closed this

Sign in to join this conversation.