OpenAI has launched GPT-5 Codex, a variant of OpenAI’s newest AI mannequin GPT-5, specialised in agentic coding. It comes as a novel providing, offering real-time help to programmers with the flexibility to autonomously carry out lengthy duties. GPT-5 Codex will repair pre-existing bugs earlier than deployment, full exceptionally difficult refactoring, and combine with something out of your cloud atmosphere and IDE to command line terminals, GitHub, and ChatGPT straight.
Codex CLI brings these capabilities to your terminal and permits studying, rewriting, and executing code regionally. You’ll be able to request a particular characteristic, debug, or ask for a proof with out breaking out of the shell, and hold full connectivity together with your ChatGPT account. Right here, we are going to consider the efficiency of Codex CLI to see the way it handles actual programming duties, particularly internet improvement and knowledge evaluation.
What’s Codex CLI?
The brand new GPT-5-based Codex CLI is an open-source command-line device forked from OpenAI’s unique Codex CLI. It now helps a number of AI suppliers. It permits builders to work together with massive language fashions within the terminal for duties like code technology, refactoring, script clarification, and plenty of extra.
Codex CLI acts as a sensible terminal associate for coding. It listens to your requests and writes code. Codex CLI has entry to your shell and file system. When you’re on the lookout for detailed walkthroughs, try the guides on codex CLI from OpenAI:
https://openai.com/index/introducing-upgrades-to-codex
Set up
Earlier than continuing with the set up, be sure that the system necessities are happy.
System Necessities for Codex CLI
- Working System: macOS 12+, Ubuntu 20.04+, Home windows 11 (by way of WSL2)
- Node.js Model: 22 or newer (LTS really helpful). You’ll be able to set up Node.js by following the directions on its official web page: https://nodejs.org/
- npm: Required (comes with Node.js)
- Git: Optionally available however really helpful
- RAM: 4 GB minimal, 8 GB really helpful
- Web: Required
- Authentication: OpenAI API Key

Set up Steps for Codex CLI
1. Examine Node.js model:
node --version #Make sure that it's model 22 or larger.
2. Set up Codex CLI globally, or utilizing pnpm:
pnpm add -g @openai/codex
3. After logging in together with your GPT-Plus or Professional credentials, you will notice the next display.

4. Add this line to your shell config file (e.g., ~/.bashrc, ~/.zshrc) for persistence.
5. Run Codex CLI:
codex
6. Or go a immediate straight:

codex “clarify this codebase to me”
Issues to Preserve in Thoughts
- Node.js and npm (Node Bundle Supervisor) have to be put in and obtainable in your system PATH.
- For Codex CLI, Node.js 22+ is required, whereas Gemini CLI works with Node.js 18+.
- Each require authentication by way of API keys or account login for full performance.
- On Home windows, Codex CLI is finest run by way of WSL2 for full compatibility.
- Bear in mind, while you need to use your CLI for a sure mission, ensure you have the present working listing set to the folder path the place your mission exists.
Working our CLI Cases
Let’s proceed to check the codex with GPT-5 on 3 duties
- Constructing a sport on a neighborhood host
- Constructing a Day by day calorie-tracing utility
- Constructing a Sentimental Evaluation Mannequin Workflow
If all of the set up steps are full and the system necessities are met, we will begin with the checks.
Activity 1 – Constructing a sport on a neighborhood host
Purpose: Construct a 2D arcade shooter with enemies and scoring.
Immediate:
“Create a easy 2D house shooter sport utilizing JavaScript and HTML5 canvas (or Python Pygame if most well-liked). The sport ought to show a spaceship managed by the participant with keyboard arrow keys for motion and the spacebar for taking pictures. Enemies ought to spawn on the prime and transfer downward at random intervals. Implement collision detection so bullets destroy enemies and enhance the rating. Add a fundamental game-over situation if enemies collide with the participant’s ship. Use pixel-art fashion graphics and guarantee easy animations.”
It’s evident that Codex efficiently produced an virtually absolutely outlined 2D house shooter, being very clear and exact in its output. The implementation included participant controls, enemy spawning, collision detection, and scoring, all organized in a approach that was simple to comply with. Virtually each time, it ran in below one second with solely minor changes, which was a pleasing shock.
Output:
The very easy design, pixel-art graphics, and responsive animations offered a sophisticated really feel, although it was a easy sport. The USP right here was Codex’s skill to mainly translate a natural-language immediate right into a functioning interactive prototype. The sport-over logic, rating monitoring, and even text-displaying messages have been all practical as nicely, demonstrating Codex’s talents in each logic and presentation.
Activity 2: Constructing a Day by day calorie-tracing utility
Purpose: Construct an interactive dashboard with charts and consumer enter.
Immediate:
“Develop a health tracker dashboard utilizing HTML, CSS, JavaScript, and a charting library (like Chart.js). Enable the consumer to log every day steps, energy burned, and hours slept. Show this knowledge in real-time on dynamic charts (bar chart for steps, line chart for energy, pie chart for sleep distribution). Add a weekly abstract part that calculates averages and highlights the very best/worst day. Embody a easy native storage mechanism so consumer knowledge persists throughout web page refreshes. Fashion the dashboard with a clear, trendy UI.”
Output:
GPT-5 Codex offered essentially the most sensible and feature-rich implementation. It built-in Chart.js easily, with responsive bar, line, and pie charts updating in actual time. The weekly abstract part calculated averages precisely, highlighting the very best and worst days with readability. Moreover, Codex dealt with native storage nicely, guaranteeing persistence throughout classes, and styled the dashboard with a clear, trendy interface.
Activity 3: Constructing a Sentimental Evaluation Mannequin Workflow
Purpose: Analyze textual content knowledge for insights.
Immediate:
“Carry out sentiment evaluation on a dataset. Implement this in a Jupyter Pocket book. Begin by cleansing the textual content (take away stopwords, punctuation, and apply tokenization). Use a pre-trained sentiment evaluation mannequin (e.g., from Hugging Face Transformers or TextBlob). Examine mannequin predictions with precise scores and calculate accuracy. Visualize the distribution of constructive, impartial, and unfavorable sentiments utilizing charts. Finish with a minimum of three insights about how buyer scores align (or misalign) with the sentiment evaluation mannequin.”
Output:
GPT-5 Codex delivered a transparent and structured workflow for sentiment evaluation. It carried out textual content cleansing, tokenization, and mannequin integration with minimal friction, producing dependable outcomes total. The comparability of predictions with precise scores labored nicely, and the accuracy calculation was simple. Aside from a small error in a single print assertion, all the pieces executed easily, together with saving sentiment distribution charts for insights.

You could find the full code kind right here and obtain the dataset from Kaggle.
We not too long ago in contrast Codex with Gemini and Claude Code (learn the complete comparability right here). On the time, we discovered Claude Code to be the very best throughout all duties. Nonetheless, the brand new GPT-5-based Codex brings vital enhancements with respect to its earlier model. Within the subsequent part, we’ll evaluate the general efficiency of the brand new GPT-5-Codex in these regards.
Total Evaluation
In my earlier weblog, whereas accessing and evaluating Codex CLI, Gemini CLI, and Claude Code, every exhibited differing strengths. Codex was nice at producing quick and iterative code. Gemini was extra helpful with lively search outcomes and working instructions. Claude produced depth with nice documentation and construction. Every device can simply be used for debugging or intervention. Although they need to be checked by a human previous to deployment.
GPT-5 Codex is a outstanding enchancment of the Codex line. As a lot because it retains the velocity and readability of Codex, it now consists of agentic autonomy to deal with bug fixes, refactoring, visualization, and run workflow with no /little intervention. Not like Gemini’s use-case framework and Claude’s construction and depth, or velocity of navigation, GPT-5 Codex turns into a mixture of each ends: producing good, clear, dependable, and production-ready options digitally at an alarming tempo as coded, making it the very best device of the three.
Conclusion
GPT-5 Codex with Codex CLI demonstrates how AI can function a dependable associate in coding by changing pure language prompts into practical, production-ready code. From partaking interactive video games to polished dashboards and sentiment evaluation workflows, it produced polished work with solely minimal edits wanted, demonstrating its versatility in improvement purposes.
Along with automation, Codex enhances developer productiveness by simply integrating into IDEs, terminals, and cloud environments. The power to help meaningfully in real-time with debugging, refactoring, and automation makes it each a practical and related trendy programming device. Whereas a few of its outputs might proceed to wish minor revisions, Codex exemplifies the way forward for agentic coding for programmers to raise their working, high-potential merchandise.
Login to proceed studying and luxuriate in expert-curated content material.