# Using OpenAI Codex CLI with GPT-5-Codex

## Метаданные

- **Канал:** OpenAI
- **YouTube:** https://www.youtube.com/watch?v=iqNzfK4_meQ
- **Дата:** 14.10.2025
- **Длительность:** 5:42
- **Просмотры:** 188,779
- **Источник:** https://ekstraktznaniy.ru/video/11203

## Описание

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

## Транскрипт

### Intro []

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

### Planning the multiplayer implementation [0:50]

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 whole details, you can just like let it uh run at a very high level telling you like what it's doing. — Yes, exactly.

### Using CLI commands [1:38]

— 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

### Implementing the plan [2:55]

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 good at that sort of thing. How are we doing on

### Deploy the game [3:31]

the game? — Yeah, I think the game is probably good to go. — So, it sounds like 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.

### Playing the game [4:20]

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 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, 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.
