📱

Get Our Mobile App

Take your business learning on the go!

Download on the App StoreGet it on Google Play

AI Trading Bot Full Setup Tutorial Using Hermes with Kimi K2.6

Rich Kuo15:27

Transcription

Oh, look at this. In this video, we're going to get you started from start to completely up and running with your very own automated 24/7 Go Trader bot. We're going to use Hermes by Nouse Research or Noose Research. I'm not sure how they say it. And we're going to be powering it with the latest Kimmy K 2.6. So, this video is going to be a full tutorial. Let's get started.

So, the first thing we want to do is set up a Hetner server. We've done this many times before. We're going to do add server regular. Now, if you're going to be doing any trading, you might want to switch the location to uh Helsinki, Singapore, whichever one is going to be friendliest for your platform that you're planning on trading on. Right now, for me, I'm just going to do something quick and easy. That's going to be Hillsboro CPX11 as usual Ubuntu and we're going to use our SSH keys. Makes it a lot easier. We're not going to implement the tail uh the tail scale firewall just yet. We're going to do that a bit later. And then we're going to call this Hermes Hetner-1. So we're going to get this set up. It's going to take 60 seconds. And what we want to do is we want to copy this IP, go into our terminal, SSH root at, and then paste the IP in there. Wait for this to finish. Looks like it's ready to go. Nice. Hit enter. Connection refused. Let's try it again. All right. Here we go. Yes. All right, now we're in the server. That was fast. Pseudo apt update. Want to update to the latest and greatest. Pseudo apt do it again. Pseudo apt upgrade. Do you want to continue? Yes. Always want to hit yes on that. Get everything up to date. And we're about ready to go.

The next thing we want to do is we want to set up tail scale. And then this is the documentation. tailscale.com/doc/install/linux. And we're just going to copy this line here. You're going to want it to tail scale because it's going to lock your server down. It's going to keep everything secure. We're going to paste this in here. And then right here, it's going to say tail scale up. Okay. To authenticate, I'm going to copy that. Put this in a browser right here. Hit enter. Sign in. Connect and we're good. Now, this is going to uh show up in our console. And so, what we want to do here is we're on Hermes Hetzner-1. And so, we want to copy this subnet here. Copy. And what we're going to do is we are going to reboot this. And then we're going to go into Hetner. We're going to find our firewalls. We're going to apply that firewall. The tail scale only firewall. And just for reference, the only thing in our tail scale only firewall is any IPv4 protocol is UDP port is 41641. And that is going to only allow tail scale connections from within your private VPN. So that means only the computers that you allow to your Hermes agent. So we're going to make sure this works. And the first thing we're going to do is SSH root. We're going to try and get back in there with the original IP. It's slow. It's obviously not going to work. We're going to try it again over here. SSH root at. And we're going to put in our tail scale subnet. This is not going to work here. And then our Hermes subnet here. And here we go. We're going to hit yes again. We're adding it. And now we're in. So, yep. We're secure. If I turn off tail scale, it's not going to let me in.

The next thing we want to do is we want to go to the Nouse Research website. Just uh look at this one right here, hermes-agent.nous.com. And you're going to see this installation script. All you need to do is copy this and Hetner. We're just going to paste that in. H and hit enter. It's going to install a bunch of stuff. and just let it do its thing. While this is running, we want to get our LLM ready to go. So, I'm using Kimmy K 2.6. They have a subscription plan that is available at kimmy.com. And I'm on the moder plan. It's $19 a month. Kimmy K 2.6 uh as of this video came out just a couple days ago. Um the $19 a month is the plan I'm using right now. It's going to be more than enough of what we're trying to do.

Okay, so now that it's installed, we're going to do a quick setup here. And here we go. Select a provider. This is going to be your LLM provider. And we're going to use KimK 2.6. And that is going to be on the Kimmy coding plan number 17 right here. We're going to type that in, hit enter, and it says we have to configure the API key. What we want to do is we want to create an API key. We're going to call these this hermes hetner-1. Create the API key. Copy this private key and paste it into the Hermes terminal. When you paste it, it's not going to show up because it's a private key. You just have to know it's there. Once you've pasted it, hit enter. It's going to ask you which model do you want to use. Hit number one because we're going to be using Kimmy K 2.6. six, the latest.

Next we want to do is set up messaging. I'm going to use Discord. You can use Telegram, Slack. You have all these options here. They're all good options. I'm using Discord because Go Trader as a application. Works really well in Discord. You can set up many different channels to handle many different platforms. Or if you're trading different currencies or different strategies, you can divide and set that up how you want within your own Discord server. and then you can visualize it and communicate with your application with your bot really well. We're going to use Discord. So, we're going to hit number two, hit enter, and then hit enter again. And then now we need to create a Discord bot token. So, we're going to select this. It's going to tell you where to go. Our website's already open. And we're going to create a new application. And we're going to call this Yep. Let's just do Hermes one. Wait, am I human? I think so. Cool. I am a human. Okay. It's going to say Discord bot token. Your Discord bot token is if you go down here, you're going to click on bot on the left hand side. And then here, you're going to click reset token. Yes, do it. Uh it's going to ask you for your multifactor authentication. So, you're going to have to secure off in there. Now, you've got this token. You're going to copy this token. Go back into your terminal. Go into Hermes Discord bot token. You're going to paste that in there. Again, it's not going to show up because it's a private key. and then hit enter and it's going to be good.

Now that it's set up, it's going to say allow user IDs or usernames to have access to your Hermes. All this means is if you just want only you to be able to communicate with your bot, this is where you set that up. If you want other people to be able to talk to your bot, then you don't need this. So, I only want to have it so that I'm the only one that can talk to my bot. We're going to go into Discord and then we're going to click on your name, copy user ID, go back into your terminal, paste that ID in there, and hit enter. Home channel ID in my own Discord server. I'm going to create a new channel called Hermes. Simple as that. It's available to everybody. I'm going to right-click, copy the channel ID. And do that again. Right-click on the channel, copy channel ID and then I'm going to paste that into Hermes in the terminal. And so our messaging is configured. Install the gateway as a system MD as a system daemon service, which is what we want. Runs in the background, starts on boot. Y for yes. Choose how the gateway should be run in the background. You want to set this up as a user service because that protects your bot from modifying things on the VPS server. If you put it as a system service, number two, that means your bot can do anything to the computer itself. If you're using this in a public server, you want to make sure you're using user service. That way, other people that are talking to your bot, they won't be able to do like, hey, delete your entire system, and it might actually go do it or like delete some important files. It won't be able to do that. Um, it won't be able to do system files. If you do number two, where you can modify certain things on your system, as in it has full access to your VPS. If you do number two, that means you're anyone can potentially talk to your Discord bot and tell it to wipe something on the server that it might actually need. So, this is going to be a public one. So, I'm going to hit one and then start service. We're going to hit yes. So, that starts our Discord bot. Launch Hermes chat now. We're launching the Hermes 2 now. And now we're in here.

So, the first thing we want to do just to make sure this works, you can see we have Kimmy K 2.6. We want to say add 4 GB of Whoops. Add 4 GB of swap to the machine. And then, communicate 2.6 is going to add 4 GB of swap. Swap is basically um our server is only 2 GB and we want to make sure we have enough memory to do a lot of the things we want to do. So, we want to give it 4 GB. So, it has a total of 6 GB so we have a lot of room for maneuverability in terms of what we can do with the system. It's going to ask you for your pseudo password. You just hit enter. And it says to make it permanent across reboots. Add this line. Want me to append it for you? Just say yes. It's going to add this so that every time your computer restarts or reboots, it will make sure it has that 4 GB of swap available. Okay. Okay, it's going to ask us. It's going to say it's a dangerous command. Allow once. Just hit yes. It's going to ask you for a password. You can, you don't need it. Just hit enter to skip it. Done. Now we have 4 GB of swap. Fantastic.

Okay. So, what we want to do next is we want to add the Discord bot into our server. And the way we're going to do that is we're going to go click on OAUTH 2 and O2 URL generator. We're going to click on bot. Scroll down. And then I'm going to click on administrator to give it full access to anything it needs to do on the server. If you are on a public server or if you have different things that you want your bot to do, you can choose some of the things here. Keep in mind you can always change these later. You can always go back and and recheck them. But that's all I'm going to do for now. Generate a URL. I'm going to copy this. Open a new tab and hit enter. And then that's going to add Hermes to our server here. Make sure we have our two-factor ready. Let's see if we can add Hermes. Okay, so Hermes is online here. Just going to say hi. See if it responds. Oh, it it said hi or looked at it and then it created a private thread. Hi Rich, welcome to the thread. How can I help you today? Cool. So, this is working. Now, I'm going to private message and say, "Hey, can you read DMs?" And now I'm going to send it a private message. Gives it a second. Hey, can you read DMs? It's going to, you know, give you that reaction. Hey, no, I can't. So, I only I can DM Hermes. Everyone else cannot. So, I'm good there. Close this Discord.

And the next thing we want to do is install Go Trader. So, the first thing I'm going to do is go to the Go Trader URL on GitHub. It's open source and it's at github.com/richquo-trader. Link is in my bio. The link will I'll put a link to it in the comments. install go trader and Hermes is smart enough that it's going to take a look at the GitHub and read all the information and like load it up. Give it a second because it might take a few minutes to install. It's going to ask us to allow to install Go, which is required. Okay, so we've installed Go Trader. Took about 5 minutes and the next thing we need to do is generate a config. So run the interactive wizard config basically set up 30 strategies on Bitcoin, Ethereum, and Solana for a total of 90 different strategies on the hyperlquid trading platform. We're using paper mode and we're using $1,000 for initial capital. We have the candles on one hour.

So the next thing we want to do is we want to do two things. First is we want to install this as a system daemon service. And that basically installs the go trader application onto your computer as a system daemon. All that means is if your system reboots so you don't have to like turn it on and off if you happen to restart your VPS server. And then the other thing we want to do is we want to add Discord notifications. We're going to copy that. Allow because we need to install the service. Uh oh, it's crashing. So, it found out what the problem is and it's going to fix it itself. Okay, so the service is up. Uh, it's going to give you all the information here, basically everything it installed. So, we want to say we want to add Discord notifications. And then we want to do the channel ID. So, we're going to go into the server, go into Hermes. I'm going to right-click on Hermes, copy the channel ID, and then go to Hermes and say channel ID, just hit enter, and it's going to basically do the rest. And now we have the trading strategies in the Hermes channel. As you can see, you can check it out in my Discord. I have the Hermes trading bot in the in my Discord community. Link is in my bio. on my premium. We actually have Hyperliquid Trading Live. I actually have an open position right now. I'm up $42 on this trade, which is crazy good. Um, this is all automated. Overall, I'm up 26% on my $1,010. I'm at $1275. Um, you know, as soon as this position closes, you know, it'll be realized. Um, I'm testing out some other strategies on Hyperlid ETH. As you can see here, none of them are doing any, you know, they're all doing kind of bad. Um, and then I have the Hyperlid, um, top 10 leaderboard. Thanks for watching guys.