Using OpenAI Codex CLI with GPT-5-Codex

The video showcases the enhanced OpenAI Codex CLI featuring the new GPT-5 Codex model, highlighting its easy installation, agentic coding capabilities, and features like model switching, approval modes, and transcript mode for detailed code generation. Roma and Eson demonstrate using the CLI to plan, implement, and deploy a multiplayer game with AI assistance, emphasizing its seamless integration, safety controls, and potential as a powerful developer tool directly from the terminal.

The video features Roma and Eson discussing the latest updates to the OpenAI Codex CLI, particularly focusing on the new GPT-5 Codex model. Roma introduces the topic by mentioning the recent release of GPT-5 and GPT-5 Codex, along with significant improvements to the Codex CLI that enhance the agentic coding capabilities of these models. Eson then gives a quick tour of the CLI, explaining how easy it is to install via npm or brew and how users can log in with their ChatGPT accounts to start using it directly from the terminal.

Eson demonstrates the process by launching Codex CLI and instructing it to create a plan for making a simple game multiplayer. He highlights that the original game was built entirely by GPT-5 in a single prompt, showcasing the model’s impressive coding abilities. The CLI generates a detailed plan outlining the steps needed to implement multiplayer functionality. Eson also introduces the transcript mode, which provides a chain of thought and exact code being generated, allowing users to either dive into the details or follow the process at a high level.

The conversation then shifts to some of Eson’s favorite Codex CLI features, such as the model switcher, which lets users select different models depending on the complexity of the task. For simpler tasks, the GPT-5 Codex model works quickly, while more complex tasks can be handled over longer periods. Another important feature discussed is the approval modes, which control Codex’s access to the file system. These modes include read-only, auto (default), and full access, allowing users to sandbox Codex’s operations and keep it within project boundaries for safety and control.

Next, they check on the multiplayer game’s progress and decide to deploy it using Vercel. Eson uses Codex CLI’s web search capability to fetch the latest Vercel documentation and switches the approval mode to full access to enable deployment. Codex then uses the Vercel command-line tool to deploy the app seamlessly. After deployment, Roma and Eson test the multiplayer game in real-time, demonstrating how well the AI-assisted development process works and how synchronized the gameplay experience is.

To conclude, Roma and Eson recap the entire workflow: logging into Codex CLI, modifying a game with GPT-5 Codex, planning and implementing multiplayer features, using web search to gather deployment information, switching approval modes for safety, and finally deploying and playing the game. They emphasize how these improvements make Codex CLI a powerful AI teammate for developers, capable of handling a wide range of languages, frameworks, and projects directly from the terminal. The video ends with excitement about the potential of Codex CLI and an invitation for viewers to explore and build with it.