t3code icon indicating copy to clipboard operation
t3code copied to clipboard

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

Open Diopetes opened this issue 8 months ago • 12 comments

Image

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

Diopetes avatar Mar 07 '26 04:03 Diopetes

Try reinstalling it.

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

aaditagrawal avatar Mar 07 '26 04:03 aaditagrawal

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

bradymwilliams avatar Mar 07 '26 04:03 bradymwilliams

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

Diopetes avatar Mar 07 '26 05:03 Diopetes

Had the same issue.

Image Image Image

albertilagan avatar Mar 07 '26 06:03 albertilagan

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

nathanscain avatar Mar 07 '26 07:03 nathanscain

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.

hwanseoc avatar Mar 07 '26 07:03 hwanseoc

i had the same issue in windows 11

arrudacaio avatar Mar 08 '26 15:03 arrudacaio

Image

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

sharull9 avatar Mar 08 '26 19:03 sharull9

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)

muescha avatar Mar 09 '26 23:03 muescha

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)

nathanscain avatar Mar 10 '26 18:03 nathanscain

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

benakdev avatar Mar 14 '26 15:03 benakdev

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.

THammond9 avatar Mar 18 '26 18:03 THammond9