Last time, I wrote an article on how to create an original Pet using Codex's Pet feature, but I thought there might be people wondering, "How do I even install Codex in the first place?" So, this time, I will summarize how to install Codex on Windows and launch it for the first time.
Since I use a Windows PC, I will focus this explanation on the Windows version.
1. Introduction: What is Codex?
Codex is an AI tool provided by OpenAI for programming tasks.
It is like an AI assistant for development that can write code, read files, and help fix errors.
For example, it can help with:
fixing code
investigating the cause of errors
checking file contents
adding new features
creating simple apps or games
and more.
Unlike simply pasting code into ChatGPT to ask for advice, a key feature of Codex is that it can work while looking at your project folder.
2. Requirements
To use Codex, we will prepare the following items this time:
Windows PC
An environment where Microsoft Store can be used
ChatGPT account or OpenAI API key
A plan that allows the use of Codex
Internet connection
Test working folder
To use Codex, you will need a ChatGPT plan that supports Codex or an OpenAI API key.
Whether it is available on the free plan may change depending on the time and availability, so please try launching it in your own environment to check.
Also, if you are using it for the first time, it is recommended to create an empty test folder to try it out rather than selecting an important project folder right away.
3. How to download Codex
There are several ways to download Codex.
This time, I will introduce two methods:
How to install from ChatGPT
How to install from the Microsoft Store
.
How to install from ChatGPTFirst, open ChatGPT.
https://chatgpt.com/
While logged in, click [Codex] in the menu on the left.
If you cannot find it, you can also open the following page directly.
https://chatgpt.com/codex/cloud
Then, a screen like the one below should open.
Since we are using the app version this time, click [Codex App] at the bottom.
Once clicked, the Codex installer will be downloaded.
When the download is finished, open the Codex installer to install it.
How to install from the Microsoft StoreAs another method, you can also install it from the Microsoft Store.
First, open the Microsoft Store.
Enter "Codex" in the search bar.
Click on [Codex] at the top left of the search results.
*Since apps with similar names may appear, please confirm it is OpenAI's Codex before installing.
After that, click "Get" or "Download" and the Codex installer will be downloaded in the same way.
4. How to set up Codex
Once you have downloaded Codex, proceed with the setup. Open the [Codex Installer.exe] you downloaded to begin the Codex installation.
When the installation is complete, Codex will launch and you should see a screen like the one below.
You can choose your login method here.
Basically, if you are logging in with the account you use for ChatGPT, click [Continue with ChatGPT]. Please log in using the account you have subscribed to with ChatGPT.
Another option
Clicking [Sign in another way] allows you to log in using a different method. If you want to log in with an OpenAI API key, you should be able to proceed from here.
Once the account setup is finished, a screen like the one below will open.
Here, you can customize Codex to fit your own work style. However, choosing any option here will not significantly change the basic operation, so it is fine to choose according to your own style.
If you are not sure, it is fine to skip this.
When customization is finished, the main Codex screen will open.
In this state, you may still need to configure the agent sandbox. A sandbox is like an isolated workspace for running AI and apps safely. Having this makes it easier to limit the scope in which Codex can work.
Click [Configure] on the right side of the message in the center that says to configure the agent sandbox to continue.
If you are unable to configure it correctly, an error may be displayed as follows.
In this case, clicking
【Use Backup Sandbox】
allows you to configure the sandbox using an alternative method. Once the configuration is successful, the previous warning message will disappear.
You can use the backup sandbox, but in my environment, I could not find a way to switch back from the backup sandbox to the agent sandbox.
If you want to proceed with the standard sandbox, it is a good idea to check this before the initial configuration.
This completes the Codex setup.
5. Trying to build something
Once the setup is finished, it is easier to understand how Codex works by trying to build something small.
Since it is difficult to build a large app or game from the start, I recommend starting with something simple.
For example,
“Please create a Jenga-like game that runs in a browser”
“Please create a simple HTML homepage”
“Please create a counter app that increases the number when clicked”
Trying small tasks like these makes it easy to understand how Codex creates and modifies files.
This time, I tried having it build a Jenga-like game that runs in a browser.
Here is the finished product.
It is still simple, but since you can build this much immediately after setup, I think it is perfect for an initial functional check.
6. Conclusion
In this article, I have summarized the process of downloading and setting up Codex on Windows.
Codex's initial configuration is a bit confusing, but once you have it installed, it will help you with code modifications and creating simple apps.
Also, Codex has a Pet feature that allows you to display a small character on your workspace.
If you are interested, please also read this article.
Thank you for reading this far.