Installing Codex CLI
00:00 Now that everything else is set up, you’ll want to install the Codex CLI. And in order to do that, make sure you open the OpenAI documentation on Codex CLI and follow the installation instructions there.
00:14 And the reason I’m asking you to open the documentation explicitly is because these things keep changing so fast and Codex CLI is updated so often that by the time you watch this video course, the preferred installation method might be different.
00:31
At the time of the recording, OpenAI shows you the single command you need to run, which installs the Codex CLI through npm, which obviously assumes you have npm installed.
00:43
So this should work for Windows, Linux, and macOS users. You press Enter, you give it a couple of seconds, and then the Codex CLI should be installed. To double-check that it was installed successfully, you’ll want to run codex --version to check whether the Codex CLI is accessible and was installed successfully.
01:06 The version 0.106.0 is the most recent version. Again, at the time of this recording, the Codex CLI is updated so often that by the time you install it and you watch this, you’ll have a more recent version of the Codex CLI.
01:24 The next step is setting up authentication so that Codex can access your OpenAI account. For that, you’ll need either a paid tier of an OpenAI account or a valid API token.
01:38 So make sure you have either, and then proceed to the next lesson so you can set up your Codex CLI.
Become a Member to join the conversation.
