Important: If you already have Codex installed, then make sure to upgrade to the latest version. Re-run the installation command for your operating system below, or use brew upgrade --cask codex if you installed Codex with Homebrew.
You can verify the installed version at any time with codex --version. For the live course, you need Codex CLI 0.171.0 or later, the first version that includes the GPT-6.2 Sol and GPT-6.2 Astra models.
To install Codex on your system, open your Terminal and your Browser side-by-side. Visit the Codex CLI documentation in your browser and copy the installation command for your operating system.
Follow the steps on the screen to finish the installation. You can verify that it worked with this command: