Skip to content

Installs on macOS but then "zsh: command not found: codex" #15

Closed

Description

@gonzague

Hi,

First off: thanks!

I just installed codex on my mac ( Sequoia 15.3.2 (24D81) with
yarn global add @openai/codex

Which gives me :
yarn global v1.22.22 [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [3/4] 🔗 Linking dependencies... warning Workspaces can only be enabled in private projects. [4/4] 🔨 Building fresh packages... success Installed "@openai/codex@0.1.4161006" with binaries: - codex ✨ Done in 0.97s.

But when i try to run codex in the terminal, all I get is :
zsh: command not found: codex

Am I doing anything wrong?

Thank you

Activity

  1. gonzague commented on Apr 16, 2025

    @gonzague
    Author

    OK found the problem, I was missing npm's path in my .zshrc file.

    If this happens to anyone, run npm doctor to check what can be wrong with your install.

  2. wilsonsilva commented on Apr 17, 2025

    @wilsonsilva

    npm doctor didn't fix it for me. I'm using asdf. I fixed this by installing codex with bun install -g @openai/codex.

  3. added a commit that references this issue on Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions