My Easy Claude Code Passive Income AI Automation Setup
👊 Become a YouTube Member to Support Me:
https://www.youtube.com/c/AllAboutAI/join
For Agents:
www.skillsmd.store
My AI Video Course:
https://www.theaivideocourse.com/
🔥Open GH:
https://github.com/AllAboutAI-YT/
Business Inquiries:
Hello, hope you are doing well. So today I wanted to share something that has I have had a lot of success with lately and that is setting up these small cloud code uh automation projects that kind of aim from some simple passive income. It could basically be anywhere but I want to share one method that has been working good for me. Uh but I also want to focus on how you can actually set this up now because there's been a lot of third party changes on cloud code. Uh but I have something that works fine for me and you can kind of see it on screen here. So basically it's very three simple things. Uh we need to create a skill. So you can see I have this make money.m MD and we are leveraging the cloud-p [music] query right this is can be run in the terminal. It's kind of headless cloud code session right and another thing I use this for is basically just to set up a while loop. So while true do claw p- run and here we can see in the query part we just run our skill and we set this uh sleep 60 uh when done right. So
this means that we run this true loop every 60 seconds after the first run is done. So this is a simple way to set up different uh simple passive running skills. So, I thought I can show you one example uh that has been making me around like $100 to $200 a week. Uh a bit of on and off, but uh you will see how this works. And I thought I can go through how we can set up this simple automation loop here using cloud code and some simple code. So, let's just head over to the Mac and I'm going to show you the setup here. Okay. So, let's just start with uh showing you what I've been doing or at least testing out for the last few weeks. So it's pretty simple uh but it needs some kind of creativity to come up with this session right. So basically what I have done is if I head over here now and we look at the there's something called Cali market bug bounty program right so basically what this does is that it uh we need to find some simple bug and we can support
this and we can get some cash if we catch this. So for minor bugs, we can get 25, moderate 50, severe 100. Those are very rare. And if you find a pre-listing bug, we can also get like a $10 extra. So I set up a system to kind of monitor um Cali for these market bugs. And this is fully autonomous. And when it finds a bug, it's going to send an email to the correct address for this. I think it's just support at Cali or something. Yeah, I think it was that. So, this was super easy to set up, but I think it's a good example of how you can set up these claw loops to automate like a simple passive income. It's it can be anything. I have a bunch of other two, but I'm not going to share those now. But, uh, yeah, I have a bunch of other this small. Some just make like $20 a week, some make like 300 or something like that, and some even lose money. But, uh, yeah, that's another another video maybe. But, uh, if we head to cursor now, I'm going to show you how this is set up now. So you can see we have the skill I talked about autoc cali
that is my skill MD and basically autoc cali scan new cali prediction markets for bug bounty opportunities right and we have these steps so step one check for orfront batches and you can see step two claim the log because we need to check the log step three is probably going to be um group by event and we go through like a big checklist here right because we need to do that because we want to follow this in like a structured order to make make it run at the exactly the same every time, right? So, basically this is my setup. I'm not going to go through all the setup now because it's a bit boring, but uh hopefully you kind of get the point. So, here is our skill, right? This is kind of stored in our yeah directory here. So, this is important. We need a skill to do this. At least I like to have a skill to do this. It makes it a bit more easy when running the while loop. Okay, so that's a good start, right? Uh but we will need some other things. We will need in this case we will need some way to get the information from the Cali platform right and for that we have
something we just run a simple poll so we pull uh let me show you it's just called uh it's not this terminal I I guess we need to run two terminals for this but basically we have a watcher that gets the data we need so I can try to run this now and see if we can collect some data right so we are logging all the markets and we have some kind of log file I I think it's just called new markets here right so we are looking for new markets to scan that is a basically setup so when we have this new markets this means we can run our skill right to check for this okay and we have some other stuff we have the automated email setup with my another python file but all of this is kind of integrated into the skill to run this with cloud code okay so let's say we had this now uh I'm just going to show you So we have this running. This scans for new market and we have the skill. So basically all I have to do now is just do this loop here. Zoom out a bit. While
true do cloud code-P and here you can see slash autocalch. And if you know cloud code, right, if you do a slash and you have a skill, this just runs the skill. So this is the smart part. So, we only need like a short query here /autoalcy and this will trigger the skill and it's going to run it. Okay. And after this this run is done, we're going to wait another second and we're going to try to run the skill again. So, you can easily adjust here like let's say I do uh I want to wait 10 minutes before I run it again. I can just do that. Super easy to adjust the timing here. And there's a bunch of other bash commands you could add here if you wanted to like claude p-system prompt and stuff like that. But I'm not going to go into that now. I'm going to keep it simple. So this is the setup I've been using in a few I guess last months I guess to make some simple passive income. But now I'm going to show you how you can set this up. I thought we can do like a simple experiment sending an email uh at a set time or something like that. So let let
me show you how you set this up now. Okay. So let's just start in here in cloud code here. Now uh I have an idea what I want to automate, right? Uh so let's just start by creating a skill. So if you don't really know how to set up a skill, you can just write fetch and yes, just do docs and do anthropic uh claude code skills something like that. If you want the documentation on how to set up a skill, right, we're just going to go fetch that documentation and then we're just going to do create um a placeholder for our auto mail skill. Something like that. And let's just do that. And this should automatically now just generate our skill. So it just should be like claude and our folder and something like skill, right? MD. So, it's super easy to create yourself, but if you're a bit unsure, just make cloud code do this. So, create a placeholder for our automail skill. Okay. Uh, yes. So,
that's good. So, now you can see we have our automail, right? And we should get the skill MD and we have kind of the template here, right? Automate email composition and sending using graph scheduling blah blah. Okay, so that's good. So, we have our placeholder. You might want to do like an exit and just relaunch this, right? Because now you can see if we do skills, if we do slash skills, you can see we have the auto mailer. Okay, so now we need to build it, right? So let's just come up with something. Let's do like a simple thing, right? And if we go here, uh I just need to think about what I want to automate now. So, a super easy thing to understand is let's just take hacker news and we want to catch the latest topics here and just feed them into our email. That's a very simple way to set up something, right? So, let's just uh do a prompt here in cloud code and I'm going to explain exactly what I want to do and then we're
going to try to set up the the automation part here. So, let's just keep it simple now. So, I'm just going to do for Claude uh automail skill. I want to set up my step-by-step automation of getting the top five hacker news post sent to my email using at send report. This is basically just a Gmail automation step. We have the token JSON here. So, basically we can just do Python to send uh Gmail. So, we need a way to grab the top five post include the URLs in the email. We have the token JSON to authenticate our Gmail. Uh the idea is that when we run the skill, all step will execute. Understood? So now we're just going to get cloud code to build a skill for us and then we can actually do the -p simple automation. This will be have to done outside of cloud code of course. But basically we can just run it continuously with our set timing. So I'm just going to let cloud code build this setup and then we're going to test test out the automated part. Okay. So you can see we tested our script here. Now we created like a news.json.
Here we have the top five posts. That's pretty good. Okay, that's nice. And yeah, run it each five minutes. We're going to loop. We can do this, but I'm going to show you what I usually do. I think this is all we need, right? So, let me show you kind of the while loop. I like to run this now. So, this will have to be off cloud code because we're using cloud code. So, we're just going to open up our terminal down here on the Windows. Yeah, something like this. Okay. And now remember the the command I had. So if you paste this in now you can see while true do claw-p and here now we're just going to type slash and we're going to do what do you call it? Auto mail right this is the query and this should be good now I guess just to be sure uh we should be good anyway sleep 60. So when we run this now I think we can just delete this now this news part just to see everything working. We have the skill uh let me just check the skill
file. Do we have the fetch and this step one fetch top five hacker news post? Okay step two send the mail. So you can see the first command is just to run the fetch nh um.py read all the scripts for news.json JSON confirm uh and send right yeah send report and confirm. So super easy setup but this is exactly what I've done with all my other projects. So this will now run in like a 60-second loop. So let's just try it now. Let's go to my mail first. And you can see we have no emails from hacker news, right? And let's try it now. So uh yeah, let's run this loop. do claude-P automail sleep 60 done. So this should run every 60 seconds now with this skill. So in our right corner here now we should see the news.json popup. Okay, I forgot one thing. We have to do some things in settings because we need to allow cloud code to run these uh
commands, right? So I'm going to update the settings JSON now to uh just automate agree with some permissions on the bash commands. Right? So if we go to settings now you can see we do allow to run these two commands. This is a bit important. Right? So let's try again. Now let's do this. And hopefully now we should see like a news.json here. And next step is going to trigger this email. I haven't tested the email script but it should work. And that should be it. Yeah, you can see we got the news.json. Perfect. All of those, right? And next should be to get the email. I'm just going to go here. Okay. So, you can see we did actually send one email for each. I didn't actually mean that, but it doesn't matter. It kind of showed that it worked anyway. So, we did send five emails. So, you can see uh we built a camera only vacuum roll for less than 300. You can see the score and we have the link right to the Yeah, this works. Okay, so yeah,
you get the point, right? So now we actually do have this. So let's see if this is going to trigger again now. So I'm going to delete this, right? Let's keep it running so we can see if we trigger it one more time. And yeah, there you saw we triggered it again. We collected, of course, the same post now. So the better idea would be to kind of yeah stop this and change the timing to like every hour or something like that. So basically if we wanted to have this a bit more interesting we could basically just do something like this. Stop this and let's do every hour that would be something like 3,600 seconds something like this and then we will get this every hour that will be a bit more helpful in this case. This means you can run this cloud code skill every hour for yeah 24 hours 24/7. So yeah, let's see if we got the emails. Yeah, you can see we got them. So yeah, I don't want to have this. But basically, you can see we got all the
emails here, right? So that's pretty good, right? Yeah. Yeah. Project Glass. This is quite interesting actually. I had a look at this. I don't know if you saw it, but project glass swing about the new Claude Mythos model. That's pretty cool. I had a look at this this morning. But basically, this is how we set this up. So, it's super easy. Cloud code-p query and set basically your sleep and done and just run this in a while loop. So, I've been doing it with like bunch of different projects and it's super easy to set up and it doesn't violate the third party thing like you do with OpenCloud and stuff like that. Open claw, I guess. and stuff like that because uh claude allows you to run this right and with the dash slashskll it's really easy to set up the pipeline so that is how I've been using this to do some automation using cloud code making some simple passive income uh I have a bunch of other things maybe if you want to hear more about this uh like this
video leave a comment maybe subscribe if you want to know more about this so yeah that was all I had for today one thing uh I'm going to do the drawing on the Nvidia GTX coming up soon. So, look out for that. I might maybe might maybe do it like in a short form. We'll see because it's not a long video. So, look out if you enter the draw. I'm going to do that uh probably at the end of the week here. So, yeah. Thank you for tuning in. Have a great day and I'll see you again hopefully