Install Codex

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.

Codex runs natively on Windows. Open PowerShell and run the installer:

Language: Windows PowerShell
PS> powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"

If you already work inside WSL2, you can also install Codex there by following the Linux instructions in your WSL2 terminal. WSL1 isn’t supported.

The most straightforward option for this course is to use the standalone installer script:

Language: Shell
$ curl -fsSL https://chatgpt.com/codex/install.sh | sh

On macOS you can alternatively use Homebrew:

Language: Shell
$ brew install --cask codex

Follow the steps on the screen to finish the installation. You can verify that it worked with this command:

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

You must own this product to join the conversation.