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.

Windows support is currently experimental. We recommend running Codex under WSL2 for the smoothest experience. Once WSL2 is set up, follow the Linux instructions inside your WSL2 terminal. Alternatively, you can use the native installer:

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

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.