[0:00] I'm willing to bet that you've probably seen something like this. [0:03] Someone walking around with their laptop screen half open, [0:06] and you know that if they're a programmer, they're waiting for their agent to finish running. [0:10] I know that this has been me many times. [0:12] Even the other day at the airport, [0:13] I was walking around with my laptop screen open, looking like a complete idiot [0:17] because I needed my Claude code or codex agent to finish running. [0:21] Now, this is a problem that doesn't need to exist [0:24] because you can actually run agents in the cloud if you configure them correctly. [0:28] And that's what I'm going to show you how to do in this video. [0:30] I'm going to show you how we can set up Codex that's running 24 over seven in the cloud. [0:34] So we never need to have our laptop screen half open walking around looking like a complete idiot. [0:40] So effectively, what I'm going to show you in this video is how you can run long running [0:44] agent decoding tasks in the cloud, self-hosted using your existing subscriptions. [0:50] This means that you can be on the go, and then you can actually trigger a task to run from your phone. [0:54] You can reconnect to it from your laptop, but the important part is [0:57] that if that screen closes, your task is going to keep running. [1:01] Which means if you're sleeping or if your Wi-Fi goes out, or if you're in an area [1:05] where you just can't open your laptop, you can still trigger these agenetic tasks to run, [1:09] and you can actually run them on a schedule, which we'll look at a little bit later. [1:12] Now for this video, we're going to use Codex. [1:13] The reason for this is the Codex. [1:15] In my opinion, is currently the best agent out there. [1:18] Specifically, we're going to be using Codex CLI. [1:20] This is something that can run in a headless environment [1:23] and that we can execute from our phone, which I'll show you later. [1:26] Now, Codex is currently leading in many of the different benchmarks out there. [1:29] It can actually run faster than cloud code and more importantly, [1:32] is significantly cheaper to use, especially on a subscription basis. [1:36] In terms of the usage that you get, it's practically unlimited if you're not running it, [1:40] you know, in 20 different sessions, 24 seven. [1:43] So I promise we'll get into the set up. [1:44] But I just want to emphasize why this is worth doing. [1:47] Now, if you're going to run a coding agent on your own computer, you're going to run, [1:50] you know, like cloud code or codex CLI or just Codex or whatever. [1:54] You do need your computer to be open, and that's because it's using your local execution environment [1:59] or your compute to actually run a terminal command or modify a file or whatever it is that's going on, [2:04] then this is fine in many situations when you're actually going to be actively [2:07] on the computer, you're working on something, you're working with it kind of turn by turn, [2:11] and every prompt you give is taking, you know, maximum a few minutes. [2:14] However, if you want to do a task that's going to take eight hours, [2:17] or you want to run a task every day at a certain time, or you just want something to run [2:21] for a super long period of time, but you're not able to actually [2:24] have your computer open, or it needs to be in your backpack or whatever. [2:27] Obviously, this doesn't work, and even if you could run it on your laptop, [2:31] if you lose internet, if you do this battery, if you close it, [2:34] if for some reason it turns off or restarts or goes to sleep or whatever, [2:37] you're going to lose all of that progress, which obviously is very inconvenient. [2:41] So the solution here is to have a VPN or virtual [2:45] private server where you can delegate long running tasks. [2:48] It doesn't mean you're not going to run stuff locally on your own computer [2:51] when you want to do something, and you need to close the lid of your laptop, [2:53] or you know that it's not going to be available for the next eight, ten, 24 hours. [2:57] Whatever you delegated to the VP. [2:59] So the basic idea is, in this video, I'm going to show you how to spin up a VPNs, [3:03] how to install codecs, CLI on it and authenticate with your existing subscription, [3:07] and then how you can control it from your phone or from your laptop however you want to do it. [3:11] You can delegate those long running tasks and have everything [3:15] handled securely, privately on that virtual private server. [3:18] This way, any time you need something that's going to take a few hours, [3:21] you want to run something on a schedule, [3:22] do it all the VPNs and then the active work you do on your own computers. [3:25] You separate things out. [3:27] Now there's three main reasons why this works. [3:29] First, a virtual private server doesn't go to sleep. [3:31] It's available 24 over seven in a secure environment with a hard wired connection to the internet. [3:36] Just doesn't go out. [3:37] You keep all of the data because you're self-hosting everything, [3:40] and you can keep everything in a secure environment. [3:42] And importantly, you also have data center speeds. [3:44] So if you're going to be in a low internet environment, which I know I am a lot [3:48] when I'm traveling, you can just use the virtual private server [3:51] and get significantly faster speeds for downloading something, uploading something, [3:54] getting a data set, training a model, whatever it is that you need to do. [3:57] So anyways, that is kind of the quick brief here and why this is worth setting up. [4:01] Now let me show you exactly how to do it. [4:04] Now, the first thing we're going to need here is a virtual private server or VPN. [4:07] But you can get any that you want. [4:09] But for this video, I'm going to be using Hostinger because they have some of the best virtual private [4:13] servers on the market. [4:14] They're the most reliable and they're a long term partner of this channel. [4:17] Meaning I can give you guys an additional discount. [4:19] So I would recommend going with the KVM two plan if you want to follow along with me. [4:23] Here you can see all of the options they have. [4:25] I'll leave a link to this in the description. [4:27] I'm going to go with KVM two. [4:29] And then from here what I'm going to do is deploy and provision my virtual private server. [4:32] Now because I have a partnership with Hostinger. [4:34] If you go here and apply to code tech with Tim, you'll get an additional 10% off as long as you're [4:38] using a 12 month or 24 month subscription plan here, which gives you a massive discount. [4:42] So regardless, pick your plan, pick the duration of what you want, apply the discount code. [4:46] You can choose the region that you want to have this applied [4:48] in my case, Indonesia, because that's where I'm located right now. [4:51] And then you can choose OpenAI Codex, where it's automatically going to deploy this [4:55] and install some of the dependencies for you, which will save you a lot of time. [4:58] Hostinger also has a lot of other one click deployments if you want to have a look at them. [5:02] But of course for this video we need Codex, so we'll apply that and then go ahead and press on. [5:06] Continue. [5:07] Now if you're following along with me here, it may ask you to generate a root password for the server. [5:11] If it does that you can just generate a random one and then copy it. [5:14] Obviously save it and make sure you don't leak any anyone else. [5:17] I will delete this server afterwards. [5:18] So I'm going to go ahead and press on. [5:20] Next I'm going to add the malware scanner because it's free and obviously just a good idea [5:24] to have on the VPNs and then press finish. [5:26] And it's going to take a minute or two here to provision the VPNs. [5:29] Once it's done, I'll be right back. [5:30] I'll show you how we can connect to it, and then we can proceed to the next step. [5:33] Okay. [5:34] So MVP's is now deployed, [5:36] and what I can do is go to the dashboard here to view all of the different controls. [5:40] And you can see that I have Codex deployed. [5:42] Now at this point I'm going to assume that you have some virtual private server. [5:45] Whether you're using hosting or not, it doesn't really matter. [5:47] What we're going to need to do, though, is find the IP address of our server [5:51] so we can SSH into it and start configuring a few things before we connect it to our phone. [5:55] And before we start setting up scheduled tasks, all of that kind of stuff. [5:59] So what I'm going to do is just copy this right here, the SSH command under root access. [6:03] And also make sure you have your root password from before. [6:06] If you forgot it you can change it right here. [6:08] And what I'm going to do is open up a terminal. [6:10] So you can see I've got a terminal open on my computer. [6:12] Here. [6:12] Let me just clear this and make it a little bit larger. [6:15] So you guys can see it. [6:16] And we're going to paste the command ssh root at. [6:19] And then the IP address of our server. [6:21] Again if you're using a different provider make sure you get the IP address. [6:25] You get the username which is typically root. [6:27] And then you know the password for signing it. [6:29] So let's go ahead and press on enter. [6:31] We're going to go yes. [6:32] And just say okay we can connect to this host. [6:34] And then we're going to paste in our password. [6:37] When you paste the password you won't see anything here. [6:39] It will be invisible. [6:40] So just paste it and then press enter okay. [6:42] So you can see that are now signed into my virtual private server. [6:45] You'll see that if you see root add and then some name here. [6:48] In this case it's SRB that just would host or name. [6:51] So now what we need to do is just verify the codex is installed. [6:54] If it's not I'll show you how to install it. [6:55] In case you didn't use the one click to play from Hostinger, we're then going to need [6:58] to sign in with our accounts that we can start using our existing subscription, [7:03] or we can use an API key if we want, but that's going to be quite expensive. [7:06] Then after that, I'm going to show you a few quick setup steps just to make this work really well. [7:11] Then we're going to connect it so we can trigger it from our phone. [7:13] And I'll show you overall how this works. [7:15] Automations all of that kind of fun stuff okay. [7:17] So first things first you can attempt to run the Codex command. [7:21] Now again, if you use the one click install option from Hostinger, [7:24] it should automatically be installed for you. [7:26] But if it's not, what you're going to want to do is the following. [7:28] I'll leave this link in the description. [7:30] It's just the docs from Codex, and you'll see that there is a setup command here. [7:34] So there's a curl. [7:35] You can just copy this, paste this as the command and run it. [7:39] And that will install the Codex CLI for you. [7:42] Once it's installed you may need to just reconnect to the server again so that your path updates, [7:47] because sometimes the path variable needs a second to refresh. [7:50] I'm not going to talk about that too much in depth, [7:52] but if you install it in the codex command doesn't work, then just refresh the terminal. [7:55] So just close it and re ssh back in and it should work. [7:58] So from here we should be able to trigger the codex command. [8:01] From here we're going to go to sign in with device code. [8:04] Or if you have your own API key you can use this. [8:06] But it's probably going to be better to use your existing ChatGPT subscription. [8:10] So I'm gonna go sign in with device code. [8:11] And what it's going to say is go to this link okay. [8:14] So we're going to copy this and just paste it in our browser. [8:17] And then we're going to paste this code right here from the terminal. [8:20] So let's copy this. [8:21] Go back okay. [8:22] We're use my email here and we're going to paste this device code. [8:26] And that should allow us to be signed in case what to paste this and press on continue okay. [8:31] So from here it says that we're signed in now and we can go ahead and press on. [8:35] Enter from here. We're just going to go. [8:37] Yes. Continue. That's fine. [8:38] And you'll see that we've now opened up Codex and we're able to start triggering something [8:42] so we can say, you know, hello world and it will start giving us some input. [8:46] Now I'm not going to give you a full tutorial on how Codex works here. [8:48] There's a lot of different slash commands that you can use. [8:51] I'd recommend triggering the fast mode here. [8:53] Even though it's going to use more usage. [8:55] It's going to run a lot faster, and if we keep going, you can see [8:58] there's a lot of other stuff that you can run and that you can do. [9:02] Okay, so Codex is now working. [9:03] We have it running on our computer if we want to exit out of this, we can hit control C on our keyboard. [9:09] That should quit out of Codex. [9:11] And we can type clear just to clear whatever is in the terminal. [9:13] So we can have kind of a fresh screen. [9:15] Now what I want to do next is I want to show you just how to connect to GitHub, [9:19] because it's going to be very useful to have Codex connected to GitHub [9:22] so that it can create repositories for us, do pull requests, trigger automations, etc.. [9:27] So if you don't already, I would suggest that you create a free GitHub account. [9:32] You can do that just by going to GitHub.com. [9:33] You don't need to pay for anything. [9:35] And then what we're going to do is the following. [9:37] So first we're going to go to our little avatar here. [9:40] And we're going to go to settings. [9:41] Now from settings we're going to scroll all the way down to our developer settings. [9:45] And we're going to create an API key that we can use [9:48] in our virtual private server to connect to our GitHub account. [9:52] You can actually even give Codex its own GitHub account [9:54] if you want, but I like to connect it to mine and just restrict the access that it has. [9:58] So what I'm going to do is go to personal access tokens here [10:01] and go to fine grained tokens from fine grained tokens. [10:04] I'm going to go create new token. [10:06] And what I'm going to do here is just name this. [10:08] What are we doing here? You know, Codex. [10:11] Okay. [10:12] For the exploration, I'm just going to go. [10:13] No exploration, so we don't need to change it. [10:15] I'm going to go all repositories so it can access all of my repositories. [10:19] And I'm going to start setting the permissions that I want Codex to have. [10:22] Now, if I want this to have the ability [10:24] to create and delete repositories, I need to trigger administration. [10:27] And if I want it to be able to edit contents of the repository. [10:30] So make a commit or view it. [10:32] I need to add contents. [10:34] Also, I want it to be able to make pull requests. [10:35] I need to add pull request. [10:37] So there's a lot of things here. [10:37] But for most of you, you're probably just going to need these. Now. [10:41] For all of these, I would suggest you go read and write again. [10:44] Be careful. [10:45] But what this is going to do [10:45] is allow it to create a read delete whatever repositories contents same thing. [10:50] This will allow it to create content, make branches, etc. [10:54] and then for pull requests this will allow it to pull related comments, assign it, etc.. [10:58] Now this is one you might want to be careful with because if you put it to read and write, [11:01] it can delete repos. [11:02] So if you just want to test it to start, make this read only, which I will do right now. [11:06] But if you want it to be able [11:07] to make new repos for you and stuff, then you would have to go to read and write. [11:11] Okay, so from here we're going to generate token, but we're going to do that in one second [11:15] after we install a tool called g h in our virtual private server. [11:19] This is essentially a GitHub tool that Codex will be able to use to do GitHub related commands. [11:25] Let me show you how it works. [11:26] Okay, so from our terminal we're going to run the command API to install g h dash y. [11:31] Okay. So exactly like I have on screen. [11:33] And go ahead and press on enter. [11:35] It's going to install g h which is GitHub effectively which will take a second. [11:39] If we want to test if this is working we can run g h. [11:42] Now after that we're going to type g h. [11:44] And then I believe the command is not log in. [11:46] It might be like okay, so start [11:49] off and then log in okay. [11:52] And then what we're going to do is authenticate with GitHub. [11:54] So to do this we're going to press GitHub.com https. [11:58] And then we're going to use our git credentials okay. [12:00] And we're going to paste in authentication token. [12:02] So then what we're going to do is go back here. [12:04] We're going to generate this token. [12:06] Make sure you don't share it with anyone. [12:07] And we're just going to paste it inside of here okay. [12:09] So we're going to paste our authentication token that we just generated from the previous step. [12:13] Now you'll see it's logged in. [12:14] You can see I'm logged in as tech with Tim. [12:16] So now that I'm logged in my Codex should have the ability to actually do things related to GitHub. [12:21] And if we just want to test that we can type code like this. [12:25] And we can just tell it, we can say, hey, you have access to the g [12:28] h command and you want to use the username tech with Tim. [12:32] Can you just tell me a few repos that you have access to? [12:34] Just to verify that the GitHub command is working? [12:38] And by the way, [12:38] if you're wondering what I'm using to dictate here, I'm using a really cool tool called Whisper Flow. [12:42] It's free to use. [12:43] I have a long term partnership with them, so I'll leave a link to it. [12:45] In the description you can see I am an absolute power user [12:48] and is the best voice dictation or AI voice dictation. [12:51] It actually has some really cool insights now where you could see exactly where you're using it. [12:54] The streaks. Very cool, very good. [12:56] And you can see that I can speak at 260 words per minute [13:00] as opposed to my normal typing speed, which is a lot slower than that. [13:03] So anyways, I'm going to go ahead and press [13:04] on, enter here, and it's just going to go and try to use this command. [13:08] And let's make sure that it works okay. [13:10] So you can see that it's giving me a whole list of repos here that it has access [13:14] to private and public, which means this is working and GitHub is now installed active. [13:19] And we can move on to the next step. Okay. [13:21] So the next thing we're going to do is trigger this from our phone, which means we'll essentially [13:25] just be able to control the virtual private server and use Codex CLI from our mobile device. [13:30] And I'm going to walk you through how to do that. [13:32] Now the first thing we need to do here is install a tool called tmux or tmux. [13:37] What this is going to allow us to do is persist in SSH session, [13:41] even when we're not connected to the virtual private server. [13:44] The reason why we're going to need this tool, we need to run this command that I have right here [13:48] is because if we connect to the virtual private server and we do something, [13:51] so we say, hey Codex, go do this thing, run CLI, and then we close the terminal by default, [13:57] whatever was happening is going to be kind of quit out of or it's going to be, you know, stopped. [14:01] Right. [14:01] So what tmux will allow us to do is run what's called a persistent session. [14:05] So even if we disconnect and we're not currently on the virtual private server, [14:09] whatever we're doing will keep running in the background, [14:12] which is super important and kind of the whole point of this video. [14:14] So we're just going to install tmux like this apt install tmux dash one. [14:18] I'm going to quickly show you 2 or 3 commands that you need to be aware of. [14:21] And then I'm going to show you how we can set this up from our phone, which is really easy. [14:25] So once you have tmux installed you should be able to run tmux like this. [14:28] Okay. [14:29] Now when you just run tmux, let me just exit out of this by typing exit. [14:34] What it's going to do is bring you into one of those persistent shells. [14:37] Now, if we want to view all of the shells that are currently active with tmux, we can type tmux ls. [14:42] We can see nothing is running right now because I had started a shell. [14:45] But then I exit out of it, which by default is going to close it. [14:48] Now what we can do instead though is we can run tmux new dash s, and then we can give this shell a name. [14:54] So in this case I'm going to call it codecs. [14:56] Then when we do this is going to bring us again into a new team shell. [15:00] Here we can run anything that we want so we can run for example, codecs like this. [15:04] And let's just say hello world. [15:06] And now what I'm going to show you is that if I close this [15:08] virtual private server session and then try to re kind of enter into it, [15:12] I can get back into the shell without having any of this information lost. [15:16] So let me show you what I mean. I'm just going to quit out of my terminal. [15:19] Let's reopen the terminal and re ssh back in. [15:22] Okay. Let me just get the password. [15:24] Okay. And from here, what I can do now is type tmux ls. [15:27] You can see the codecs is still running. [15:30] And then what I can do is type tmux attach. [15:32] If I just type tmux attach by default it's going to attach [15:35] to the most recent shell which is going to be codecs. [15:39] Now if I want to attach to a particular shell [15:40] because you can have multiple running that I can do dash t sorry. [15:44] And then codecs. [15:45] And what this is going to do now is bring me back into that shell. [15:48] Now again, if you're not super familiar with virtual private servers, [15:51] you may not know why this is important, but this again allows us to have this persistent shell [15:55] so that it can be stored and running in the background no matter what. [15:58] Okay, so for now, we're going to leave this shell [16:00] running on my computer and we're going to move over to our mobile device. [16:03] So I'm going to show you how we can now connect to the virtual private server. [16:06] So we can trigger tasks on the go from our phone. Okay. [16:09] So from our phone here, [16:10] what we're going to do is go to the App Store and we need to download what's called an SSH client. [16:14] Now you can use anything that you want. [16:15] But the app that I'm going to recommend here is called terminus okay says modern SSH client. [16:21] It's free. [16:21] You don't need to pay for anything, but you need some kind of SSH client. [16:25] You can do this on Android. Maybe they have the same app. [16:27] If not, you're just looking for any SSH client. [16:30] Okay, so what we're going to do is just open up this application. [16:33] And effectively what we're going to do is just go and sign in to our virtual private server [16:38] from our phone. [16:39] So what I can do here is press on the plus button, I can go new host [16:43] and I can start putting in this information. [16:45] Now for the label I'm just going to call this codecs [16:48] okay CLI [16:49] for the IP or hostname, I'm going to use the same one that I was using on my computer. [16:53] So that's 187.77.121.81. [16:59] If you're wondering how do you find this hostname? [17:01] You can see it up here on my computer. [17:02] I'll hopefully have this on the screen as well. [17:04] It's the same thing that we're ssh ING into from our computer. [17:07] And if you go back to hostinger, you can actually see it right here [17:10] or from wherever you deployed your virtual private server. [17:13] If we keep going, what we'll be able to do is use credentials so we can set our username. [17:17] This is going to be root. [17:19] And then the password is going to be [17:20] the same password that you used previously as the root password for the server. [17:23] Okay. So I've got all of those details in. [17:25] There's not really anything else that we need to do here. [17:28] We can just go ahead and press on enter and then wait a second here. [17:32] And it should start connecting to this server foreign. [17:34] So if I press on it now it's going to say hey do you want to trust this device I'm going to go [17:38] yes I do want to trust this. [17:40] And then it's going to bring me right in to my server. [17:43] Now from here, if we want to change what this looks like, [17:45] you can see in this app there's a little button so I can change. [17:48] Like, do I want it to be light. [17:49] Do I want it to be dark? [17:50] I think it's going to be easier for you guys to read it in kind of this light mode here, this [17:54] yellow color theme. [17:55] And we can make the text size larger as well. [17:59] One second. [18:00] Let me move this here. Okay. So that's pretty much it. [18:03] You can set, you know, how you want it to look. [18:05] And then from here you can type anything just like you would if you were on your computer. [18:09] So what we want to do now is we want to attach to that tmux [18:12] session that we were running here so that we can start using codecs. [18:15] And if we don't have an existing session, we should just make a new one. [18:18] So that again, if we disconnect and reconnect, we're not going to lose that task. [18:22] So what we can do is type tmux. [18:23] And then same thing. Last, [18:25] if we want to view what we have running we can see that we have codecs and it's currently attached. [18:29] So I can do tmux okay. [18:30] And then I'm going to go attach like that [18:33] dash t and then codecs like so. [18:37] And you'll see that I'm now inside of here. [18:38] It's kind of glitching out on my computer because we call it I'm connected on my phone. [18:43] But you can see that if I type hello or something, it's appearing on my computer as well as on my phone. [18:48] Now, I know it looks a little bit weird, [18:49] and that's just because we're attached from two sessions at the same time. [18:52] But you can see now that I can trigger a task, I can ask it to write code. [18:55] I can get it to do something from my mobile device. [18:58] And then again, importantly, if I like closed the session here on my computer [19:02] and I go back to my phone, you can see [19:04] it's still running and it's still going to be able to execute the various tasks. [19:08] And then again, if we quit out of this. [19:09] So let's get out of our session and let's go back in. [19:11] You can see that it will bring us back here. [19:13] And then if I want to just completely close out of this, I can press on it, press close. [19:18] And then if I reconnect here. [19:20] So give this a second to reconnect. [19:21] Same thing we can do tmux [19:24] and then attach. [19:25] And then we'll be back in the codec session where we can start asking you to do anything that we want. [19:30] And I'm going to change the color theme here. [19:31] So it's a little bit easier to read because it looks like it's like messing up here okay. [19:35] So this one looks good. [19:36] And then we can start triggering various tasks. [19:39] So just give you an example of something we can do here. [19:41] I'm just going to paste in a URL. [19:43] This is one of the GitHub repos I have access to. [19:46] And I'm just going to say hey can you review all paths in this repo? [19:53] And I know I'm kind of spelling some of this wrong, but that should be fine. [19:55] And let's go ahead and press on, enter and let's see if I can go and review this for us okay. [20:00] So you can see that it's reviewing all of the PR right now. [20:02] It's giving me all of the responses and saying which one should be approved, should it be approved, etc.. [20:07] And now we're good to go. [20:08] And the same thing. [20:08] We could close it, reopen it, go on our laptop, you get the idea. [20:11] Now where this is going to become super useful is actually when we start running automation. [20:16] So I want to show you that now I'm going to go back to the computer. [20:19] But keep in mind everything that I do on the computer, [20:21] you could do it from your phone as well. [20:22] It's just easier for you guys to see on a bigger screen. [20:24] Okay, so I'm back on the computer. [20:26] You can see I've reattached to the team like session [20:28] where we are running from our phone, and now we can continue working. [20:31] Now, like I mentioned, I want to talk about automations. [20:33] Automations are just things that can run on a particular schedule. [20:36] Now, unlike Cloud Code, Codex doesn't have any built [20:40] in kind of scheduling feature, although I'm sure they're probably going to add that in the future. [20:43] But if we want to set that up to run on our VPS, it's very easy and we can create something [20:48] called a cron job, which is a huge advantage of having this virtual private server. [20:52] Now, effectively, all we have to do is just tell Codex [20:55] to do this for us and say, hey, every day I want you to do X, y, z. [21:00] Maybe [21:00] I want you to review all of the code in my code base and tell me if there's any security vulnerabilities. [21:05] Maybe I want you to review all of the PR and automatically reject or approve. [21:08] Maybe I want you to write a change log of anything that's occurred in this repo. [21:12] Maybe I want you to update all of the Readme files. [21:14] Whatever. Okay. [21:15] So what I'm going to do is just define I'm going to say [21:18] I want to set up a simple automation that runs every single day using the Codex clock. [21:23] I need you to create a cron job. [21:25] This is the key term that you want to keep in mind by the way. [21:27] Cron job because that's what you want it to ask it to do. [21:30] That runs correctly on the repo [21:33] that I just sent you above and reviews all of the PR and then creates a markdown file that's uploaded [21:39] to the repository that includes the status of this PR and if they should be approved or not. [21:45] This is a silly automation. [21:46] Like it doesn't really make sense to run this, but I'm just giving you an example of something [21:49] you could do. [21:50] I'm saying, hey, set up an automation to use Codex cli way to create this cron job and execute this. [21:55] Now the way that this is going to work is there's this command called Codex exac. [22:00] And if you run this, it's going to not bring you into a codex session, [22:04] but it will just execute whatever you ask it to do. [22:07] So I can say Codex Exec and then like do this thing and it will just execute it and do it [22:12] so we can set up a cron job that will do that for us. [22:15] And I'm just going to go, yes. [22:16] And don't ask for these commands because it's asking us to approve this. [22:19] So effectively what it's going to do is say hey on this schedule, it's going to be set up on [22:23] what's called a cron job, which can run on kind of an automated timing run, [22:27] Codex Exec, which is going to trigger this thing to happen right where Codex CLI [22:32] is going to go and run this task and then complete whatever it is that we asked it to do. [22:36] So you can see that it's currently creating this cron job which is putting under a crontab. [22:40] It asks me just to approve the command, which I did. [22:42] And you can see now that the entry is installed and it's going to start running this process. [22:46] So we're just going to tell it okay, run this. [22:48] And again the advantage of the VP is you're in an isolated environment. [22:51] So it's not going to mess up your own computer. [22:53] If it actually makes a mistake you can always shut it down. [22:55] It's not a huge deal. [22:56] So just running all of these cron the terminal commands for us and it should set this up. [23:01] And then we will have that automation running every single day okay. [23:05] So just doing a dry run now to make sure this is going to work. [23:08] I'm not going to bore you guys and go through this whole process. [23:10] I just wanted to show you that setting up these automations is a good way to really [23:14] utilize this service and have it running in the background, [23:17] even when you're not manually triggering tasks to execute. [23:20] And again, the reason [23:21] why you want something like this is that if you want something that's going to take a long time to run, [23:25] you just delegated to the VPCs and you don't rely on you having a computer open. [23:29] Again. You could set up all these automations. [23:31] You can have a trigger, you can set up, you know, MCP servers, and you can do really cool stuff using [23:35] Codex CLI, which is currently kind of the leading agent and harness for coding related tasks. [23:41] So that's it guys. I'm going to wrap up the video here. [23:43] If you enjoyed make sure leave a like subscribe to the channel and I'll see you in another video.