what's going on everyone welcome back to this youtube channel in this video i'm going to show you how you can connect codex with cloud code so you can create sub agents that's going to be spawned from your cloud code and gpt 5.6 solve or whatever model you want from open ai is going to do some tasks for you you can generate code with codex and then review with cloud or generate code with fable 5 and review it with gpt 5.6 solve so it's an amazing combination that you can try and the results are absolutely amazing in this video i'm going to show you how to connect them and if you want me to make videos about how to use this connection afterwards then do let me know down in the comment section so without wasting any more time let's get started so the first thing that you need is the cloud code cli if you don't know how to install that i already have a video about that go check that out the link will be in the description and you need to have the codex i also have a video about that you can go ahead and check that after you have both of them what you will do is you will run this command cloud mcp add codex dash dash codex mcp dash server just copy this command it will also be down in the description box you can go ahead and check it out from there and then hit enter and you'll see that it says edit studio mcp server codex with command codex mcp dash server to local config so so it just added this mcp server in cloud now we are going to use this mcp server to make connection with codex and we are going to get responses from the codex models so i can also do cloud mcp list you can see it's checking the mcp server health and it gives me all the mcp servers that are connected with my cloud code you can see the codex is right here i also have the magnific hicksfield gmail google notion but this is the one that we are interested in now simply open up the cloud let's ask it do you have access to codex and you can see it says yes codex mcp server connected two tools mcp codex codex mcp codex codex reply so let's tell it can you make codex say hello and it asked me for a permission for the tool use i'm going to say yes and you can see it says codex say hello so we got the response from codex now i can tell it can you run a subagent that writes a function to generate primes and you review the code so i'm asking it to create a subagent that will write a function so gpt 5.6 is going to write that function and then i'm asking it to be the code reviewer so fable 5 is going to be our qa so if i hit enter you can also see it says session thread alive with this tag and can continue conversation with codex dash triple i if want so it keeps the connection open so we don't have to create a connection every time we want to talk to codex after we start a connection now for our prime numbers program it's done now fable five is reviewing the code you can see it's reading one file i'm using the caveman as well if you have noticed going to give it the permission and you can see it is now doing the qa so so it's saying that subagent road scratchpad slash primes or py test pass review now it's reviewing the code and it's telling us what is good and what's not good which is really nice now you can use it to do anything like you can generate some code with fable 5 and then ask gpt 5.6 salt to review it and then keep having that loop until uh the code is as per your needs until you achieve your goals so yeah you can do a lot of things with this uh let me know if you want to know what are the use cases and what we can achieve with uh this connection so i'll see you in the next one till then peace out and don't forget to like and subscribe bye