Using OpenAI Codex CLI with GPT-5-Codex
Key Takeaways
Uses Codex CLI with GPT-5-Codex to build a multiplayer game
Full Transcript
Hey, what are you working on? >> I'm trying to find a good demo. Something that Codex can modify. We could make this little ball thing multiplayer. >> That sounds very cool. Let's do it. >> Codeex CL164. Mark. >> Hey everyone, Roma here. Recently, we ship GP5 and GP5 codecs and we've also released a ton of improvements to Codex CLI to better harness the agentic coding capabilities of these models. And today I'm sitting with Eson who led a lot of this effort on the CLI. Do you want to give us a quick tour? >> Yeah, I'd love to. Um, we have tons of really cool updates. You can install it really easily with either mpm or brew and log in with your chat GPT account. >> So here you're in your terminal and you just have to launch it with by codex. >> That's all there is to it. So we'll say make a plan for making this game multiplayer. What's funny is like this game was one of the very many examples we shipped completely built by GPT5 in one prompt. >> Yes. >> Like and now we can start building up upon it. So what it's thinking tell us a little more like about what's happening which model you're using here. >> Yeah. So this is uh going to be GPT5 codeex which is our new model and it's really good for any sort of coding task. >> So here it's like currently crafting the plan. I see it's laying out the steps of what it's supposed to do. Yep. >> Can you expand what's happening here? Yeah, totally. So, we can go into transcript mode with control T and that gives you things that are super useful like the uh the chain of thought, the sort of the exact code that it's doing. >> If you don't not interested into the the whole details, you can just like let it uh run at a very high level telling you like what it's doing. >> Yes, exactly. >> Okay. So, while it's working on this like kind of multiplayer feature, why don't you kind of open up a second codeex to give us maybe a quick tour of some of your favorite commands? >> Yeah, so I'm a huge fan of the model switcher. You sometimes want to use one model for one thing, one model for another. This allows you to change the reasoning level, >> right? Because with the new GP5 codeex model, the very simple task can go very fast. >> Yes. >> But for the more advanced one, now Codex can work on for like up to hours at a time. Okay. So that's SL model. What else? >> Yeah. Uh approvals is really useful. So this is where you kind of get into the sandboxing features of codecs which are very cool, very powerful. We have three modes. We have read only, we have auto, and we have full access. Auto is the default. And that allows codeex to read files and make changes to files within the current directory. So by default, it stays in the boundaries of your project. It's not going to affect anything else on your laptop. >> Exactly. And then if you want to be in readon, that's kind of useful for, for example, running outside of a git repository. Y or if you're like, I only care about planning. I actually don't want Codex get distracted by trying to edit things. And then we have Codex resume. And that allows you to pick up from any previous session. Super nice. >> Why don't you uh go check back on the status of this multiplayer game? >> Yeah, it looks like we've got a plan. So why don't we tell Codeex to do that? >> Great. >> So one of the things that I think is really interesting that people sort of miss about Codeex is that it's useful for these coding tasks, but you can also deploy things with it. You can use it for S sur type things. You can figure out like, oh, we're seeing these, you know, this bug show up for our users. Why is this showing up? Go look at the logs. Um, take these disparate data sources, combine them. Um, it's surprisingly very, very, very good at that sort of thing. How are we doing on the game? >> Yeah, I think the game is probably good to go. >> So, it sounds like the the moment of truth is to play the game, but maybe before we need to deploy it. >> Yeah. So what I'm going to say for this app, let's maybe uh deploy it on Versal. >> Yep. >> And let's use code- search in order to tell it to hey look up the latest versal docs. >> Yeah. In case like you want to deploy something very specific and you need persistence or maybe you want to look up the latest changes of like an API. >> Yeah, exactly. We should go to approval. We should switch it to full access. And then we'll tell it use the Versel command line tool to deploy this app. >> Cool. Sounds like it's deployed. >> Yeah, let's do it. >> Should we try it? >> Yeah, let's give it a shot. >> So, I guess I can take over this laptop. If you want to bring yours, I'm going to have to ping you the link. >> Yep. >> There you go. You should have it. >> Ready to start. >> Let's go. Oh my god, this is awesome. We are really in sync. >> Yeah, super in sync. >> Incredible. >> This is all real time. >> Who's going to be the best at this? I don't know. >> You seem pretty good. >> Ah, okay. >> To wrap us up, what have we seen? So, we saw Codex CLI logged into your chat GPD subscription >> starting to like change a game. >> Yep. >> Make a plan to implement like a full multiplayer game. >> Yep. We saw a quick tour of the commands, but more interestingly, you use web search to kind of like fetch information from the internet. You change approval modes. We deployed this game and we're now able to to play it. >> Yeah, it's super easy. This is the exact same flow that I use to, you know, do pretty serious stuff just across like a wide variety of languages, a wide variety of frameworks, wide variety of projects. Amazing. Well, as you can tell, we're shipping a ton of improvements across all codec surfaces. So you can have this AI teammate at your disposal wherever you work and in this case right in the terminal. And we can't wait to see what you build with Codex CLI. See you next time.
Original Description
Learn how to use the Codex CLI + GPT-5-Codex in just 5 minutes.
In this tutorial, Eason Goodale and Romain Huet show you how to build a multiplayer game with Codex — without writing a single line of code!
Timestamps:
00:00 Intro
00:50 Planning the multiplayer implementation
1:38 Using CLI commands
2:55 Implementing the plan
3:31 Deploy the game
4:20 Playing the game
To learn more and get started:
Codex: openai.com/codex
Codex CLI GitHub repo: https://github.com/openai/codex
Developer docs: developers.openai.com/codex
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from OpenAI · OpenAI · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Robots that Learn
OpenAI
Emergence of Grounded Compositional Language in Multi-Agent Populations
OpenAI
OpenAI + Dota 2
OpenAI
Dendi vs. OpenAI at The International 2017
OpenAI
Competitive Self-Play
OpenAI
Learning a Hierarchy
OpenAI
Physical Spam Detection
OpenAI
Ingredients for Robotics Research
OpenAI
OpenAI Five
OpenAI
OpenAI Five: Dota Gameplay
OpenAI
Learning Dexterity
OpenAI
Learning Dexterity: Uncut
OpenAI
OpenAI Five Benchmark: Post-Game Analysis
OpenAI
Investigating Model Based RL for Continuous Control | Alex Botev | 2018 Summer Intern Open House
OpenAI
Generative Modelling | Sadhika Malladi | 2018 Summer Intern Open House
OpenAI
A pathway to more efficient generative models | Will Grathwohl | 2018 Summer Intern Open House
OpenAI
Learning Dexterity | Alex Ray | 2018 Summer Intern Open House
OpenAI
Robust Vision-Based State Estimation | Hsiao-Yu 'Fish' Tung | 2018 Summer Intern Open House
OpenAI
Using Semantic Trees In Place of Sentences | Munashe Shumba | OpenAI Scholars Demo Day 2018
OpenAI
Reinforcement Learning with Prediction-Based Rewards
OpenAI
OpenAI Spinning Up in Deep RL Workshop
OpenAI
Arena Announcement and Closing | OpenAI Five Finals (6/6)
OpenAI
Co-Op Match | OpenAI Five Finals (5/6)
OpenAI
OpenAI Five vs. OG, Game 2 | OpenAI Five Finals (4/6)
OpenAI
OpenAI Five vs. OG, Game 1 | OpenAI Five Finals (3/6)
OpenAI
Pre-Match Panel Discussion | OpenAI Five Finals (2/6)
OpenAI
Opening Keynote | OpenAI Five Finals (1/6)
OpenAI
OpenAI Robotics Symposium 2019
OpenAI
OpenAI Scholars Demo Day 2019
OpenAI
Multi-Agent Hide and Seek
OpenAI
Solving Rubik’s Cube with a Robot Hand: Uncut
OpenAI
Solving Rubik’s Cube with a Robot Hand: Perturbations
OpenAI
Solving Rubik’s Cube with a Robot Hand
OpenAI
Music Generation | Christine Payne | OpenAI Scholars Demo Day 2018
OpenAI
Deephypebot | Nadja Rhodes | OpenAI Scholars Demo Day 2018
OpenAI
Physics Net | Ifu Aniemeka | OpenAI Scholars Demo Day 2018
OpenAI
Art Composition Attributes + CycleGAN | Holly Grimm | OpenAI Scholars Demo Day 2018
OpenAI
Generating Emotional Landscapes | Hannah Davis | OpenAI Scholars Demo Day 2018
OpenAI
Looking For Grammar In All The Right Places | Alethea Power | OpenAI Scholars Demo Day 2020
OpenAI
Semantic Parsing English to GraphQL | Andre Carerra | OpenAI Scholars Demo Day 2020
OpenAI
Long term credit assignment with temporal reward transp… | Cathy Yeh | OpenAI Scholars Demo Day 2020
OpenAI
Social learning in independent multi-agent reinfor… | Kamal N’dousse | OpenAI Scholars Demo Day 2020
OpenAI
Quantifying Interpretability of Models Trained on Coi… | Jorge Orbay | OpenAI Scholars Demo Day 2020
OpenAI
Towards Epileptic Seizure Prediction with Deep Network | Kata Slama | OpenAI Scholars Demo Day 2020
OpenAI
Universal Adversarial Perturbations and Language M… | Pamela Mishkin | OpenAI Scholars Demo Day 2020
OpenAI
Introductions by Sam Altman & Greg Brockman | OpenAI Scholars Demo Day 2020
OpenAI
Introduction by Sam Altman | OpenAI Scholars Demo Day 2021
OpenAI
Breaking Contrastive Models with the SET Card Game | Legg Yeung | OpenAI Scholars Demo Day 2021
OpenAI
Large Scale Reward Modeling | Jonathan Ward | OpenAI Scholars Demo Day 2021
OpenAI
Words to Bytes: Exploring Language Tokenizations | Sam Gbafa | OpenAI Scholars Demo Day 2021
OpenAI
Learning Multiple Modes of Behavior in a Continuous… | Tyna Eloundou | OpenAI Scholars Demo Day 2021
OpenAI
Scaling Laws for Language Transfer Learning | Christina Kim | OpenAI Scholars Demo Day 2021
OpenAI
Contrastive Language Encoding | Ellie Kitanidis | OpenAI Scholars Demo Day 2021
OpenAI
Characterizing Test Time Compute on Graph Structur… | Kudzo Ahegbebu | OpenAI Scholars Demo Day 2021
OpenAI
Studying Scaling Laws for Transformer Architecture … | Shola Oyedele | OpenAI Scholars Demo Day 2021
OpenAI
Feedback Loops in Opinion Modeling | Danielle Ensign | OpenAI Scholars Demo Day 2021
OpenAI
Creating a Space Game with OpenAI Codex
OpenAI
“Hello World” with OpenAI Codex
OpenAI
Talking to Your Computer with OpenAI Codex
OpenAI
Data Science with OpenAI Codex
OpenAI
Related Reads
📰
📰
📰
📰
Claude Sonnet 5 Just Launched. Is It Actually Better Or Just Newer?
Medium · AI
Claude Sonnet 5 Just Launched. Is It Actually Better Or Just Newer?
Medium · Machine Learning
Claude Sonnet 5 Just Launched. Is It Actually Better Or Just Newer?
Medium · LLM
Claude Sonnet 5 Didn’t Just Get Smarter. It Changed the Economics of AI.
Medium · LLM
Chapters (6)
Intro
0:50
Planning the multiplayer implementation
1:38
Using CLI commands
2:55
Implementing the plan
3:31
Deploy the game
4:20
Playing the game
🎓
Tutor Explanation
DeepCamp AI