I will explain how to install Codex CLI on Windows in a simple way.
Since Codex CLI is a paid service, this article is written for those who are already subscribed to ChatGPT.
This article is intended for Windows users.
▼ If you are using a Mac, please see the article below.
How to Install Codex CLI on Windows
Let's get started!
Please right-click the Windows button.
Click on "Terminal".
Confirmation: It is fine if it says "Windows PowerShell".
This black screen is called the terminal.
It appears frequently, so please remember it.
Now, please copy and paste the command below into that black screen (terminal).
node -v
Please press the Enter key.
And here is a fork in the road. Please check the following with me.
✖ For those who did not see "v..." displayed, or those who saw an older version of v21 or lower
You have not installed the necessary tools yet, so please continue reading.
It will not work with versions older than v22, so you must have a newer version of v22 or higher installed.
If you see a number like v22 or v24, or anything higher than v22
You have already finished installing the first required tool.
Therefore, you can skip the section below and continue reading from the "Installing the required tools" heading. We will now proceed to install the second required tool.
Next, we will proceed in the order of
(1) Checking your PC information to install the necessary tools, and (2) Installation
.
First, let's check. Left-click the Windows button.
Type "Device specifications" into the search bar.
Did it say x64?
Please remember this, as you will need it when installing the tool.
By the way, if it is not x64, it should be x86 or ARM64. Please remember which one yours is.
▼ Click the link below.
Next, click on the version indicated by the red line.
Select and click the latest version as shown in the image below.
Next, check the section shown in the image below.
(1) Press the download button in the top right, and
(2) left-click here.
The setup will begin, so proceed through it to install.
Once the installation is complete,
open the black screen (terminal) from earlier.
Copy and paste the command below into the terminal.
node -v
Press the Enter key.
If it shows something like v24.5.0 or v-something, you are good to go!
(It will not work with versions older than v22, so please make sure to install a newer version, v22 or higher.)
If it does not appear, try closing the terminal once and launching it again. If you have forgotten how to launch the terminal, please refer back to the top of this article.
Installing necessary tools
Before installing the Codex CLI,
there is one more tool that needs to be installed.
First, please open the terminal.
(Right-click right-click the Windows icon at the bottom left of the screen)
Click on "Terminal".
Please copy and paste the command below into the terminal.
git -v
Please check which of the following two patterns applies to you.
A: If version information appears as shown in the image below,
the tool you are about to install is already installed.
Therefore, you can skip ahead and start reading from the "Installing Codex CLI" heading.
B: If an error was displayed when you entered the command earlier, it is proof that the installation is not finished. We will proceed with the installation of the necessary tools as is, so please move on to the next step.
▼ Please click the link below
Please click Download.
It will then download automatically.
1. Click the download icon in the top right
2. Click "Git-something"
A window like the one below will appear.
Press "Next" in the bottom right about 10 times.
There is no need to select anything in particular. Just keep pressing Next.
Then, an "Install" button will appear as shown below, so
please click it.
Please wait for the installation to complete.
The necessary tools are now installed!
Installing Codex CLI
Next, please copy and paste the following into the terminal and press the Enter key.
We will now install the Codex CLI.
npm install -g @openai/codex
Once installed, copy and paste the following and press the Enter key.
codex
Then, the following options will appear.
Just press the Enter key.
(This will select Sign in with ChatGPT)
You will then be prompted to log in to ChatGPT, so please log in.
Sometimes it may end up in a state like the one below.
There is no particular problem, so please type y and press the Enter key.
Finally, if it reaches the state shown in the image below, you are ready.
Congratulations!
It has been installed! \(ˊᗜˋ)/
Oh, please do not proceed with development here.
Please close the terminal once.
If you were able to install it,
skip the "For those who could not install it" section below, and
proceed to "Let's start development!".
For those who could not install it
The reasons why you could not install it vary from person to person... I cannot explain everything, so please try searching online.
Also, as of August 8, 2025, Codex CLI is not officially supported on Windows.
It is currently supported on Mac, so if you have a Mac, please use that, or you will need to install WSL separately.
Regarding the installation of WSL, I have left an article that might be helpful. The following is for ClaudeCode, but please read it and try it for the sake of installing WSL...!
Let's start developing!
The installation is now complete!
However, if you are going to start developing,
let's create a folder for your development work! (Required)
If you don't create a folder and keep things organized,
your computer will become a mess.
Steps
1. Decide what you want to build (it's okay if you don't have an idea yet)
2. Create a folder
3. Open that folder in the terminal
4. Proceed with development using Codex CLI
Let's go through them in order!
1. Decide what you want to build (it's okay if you don't have an idea yet)If this is your first time, let's make a timer!
Simple projects are recommended.
A development folder is essential.
If you are building a timer, it would be easy to understand if you name the folder "timer".
If you are building an alarm, name it "alarm".
You also need a storage folder to keep all those development folders together.
By doing this, you won't let your PC become a mess.
You can create the folder anywhere you like on your PC, but I will introduce some recommendations.
First, please click the folder icon located in the image below.
Next, in the window that appears, please click the section where your username is displayed, such as "PC_User", as shown below.
Once opened, right-click inside that window and create a new folder. Use Roman characters for the folder name. Make sure not to include any spaces.
I named mine "product".
This is the storage folder.
Next, we will create a development folder for things like building a timer.
Open the storage folder, right-click inside it, and create a new folder.
First, right-click on the development folder, such as the one for the timer.
Click "Open in Terminal".
The terminal will then launch.
Type "codex" into the terminal to start the Codex CLI.
codex
Sometimes a question (that looks like a warning) will appear, but
it is not a problem, so please press the y key.
(It is asking something like, "You haven't created a save file yet, is that okay?")
If you see the following screen, you are ready to go!
Important check: Look at the red line in the image below.
You can see which folder the Codex CLI is currently in.
Make it a habit to always check that it matches the name of the folder you want to open!
If you get the folder location wrong, you might end up developing in the wrong place and making a mess of your files...
Congratulations! \(ˊᗜˋ)/
You can now start developing!
Let's try developing something first!
1. Create a timer (and customize the design to your liking)
2. Build a website (your own official site)
3. Create a tool for yourself (a simple one for personal use!)
The above are recommended for beginners.
Installing VS Code
Furthermore, I will introduce a tool that will more than triple your development efficiency.
Basically, it makes it easy for even beginners to do various things, so this VS Code tool is a must-install. Please go ahead and install it while you are at it.
For more detailed development methods, tips to accelerate your development by 10 times, and secret prompts to make AI smarter, please check out the "Vibe Coding Bible" course!
▼ Check the free section of the course page for more details ▼
I am rooting for your vibe coding (^~^)!
Happy coding \(ˊᗜˋ)/