AI Income LabJoin AI Income Lab ↗

Hermes Agent on Linux: install, code review and sub-agents

Jump to video chapters

Watch on YouTube ↗ Subscribe on YouTube ↗

By · · 17:55 · 955 views

Written guide: Hermes Agent: Install, Electron Build and OpenClaw Risks

Install Hermes Agent on Linux with the one-line installer, run the full setup, and try it on a code review, sub-agents and a research task. The first model attempts fail with 401 and balance errors until a free OpenCode Zen model works. The title says Hermes beats OpenClaw, but the video never runs OpenClaw, so that is Mike's opinion.

Video summary

This video offers a comprehensive Hermes Agent tutorial, guiding you through the Hermes Agent install process to run this powerful autonomous AI agent locally. Learn about its integration capabilities with various coding agents and see why it stands out for advanced automation. This ai tutorial covers everything needed for a complete Hermes Agent setup.

The video covers 10 parts: Introduction to Hermes Agent vs. OpenClaw, Hermes Agent features overview, How to install Hermes Agent via terminal, Configuring providers and OpenRouter API keys, Setting up the terminal backend and gateways, Launching Hermes Chat and switching AI models, Testing agent capabilities and skill sets, Running an automated code review on a SaaS project, Orchestrating autonomous sub-agents, and Solving specific project bugs and final thoughts.

What this video covers

What you build

A local Hermes Agent install with OpenRouter, Codex and Gemini keys set up, switched to a free OpenCode Zen model, then used for a code review of a Next.js app and a sub-agent research task.

Tools used

Compare pricing: OpenCode. Some ↗ links are affiliate links, so I may earn a commission or credit. See every tool I recommend →

Key steps

Not covered

Summary written from the video's transcript and chapters.

In this video

  1. 0:00 Introduction to Hermes Agent vs. OpenClaw
  2. 1:00 Hermes Agent features overview
  3. 1:58 How to install Hermes Agent via terminal
  4. 3:46 Configuring providers and OpenRouter API keys
  5. 5:04 Setting up the terminal backend and gateways
  6. 8:18 Launching Hermes Chat and switching AI models
  7. 11:51 Testing agent capabilities and skill sets
  8. 12:51 Running an automated code review on a SaaS project
  9. 14:12 Orchestrating autonomous sub-agents
  10. 17:22 Solving specific project bugs and final thoughts

Questions and answers

Is Hermes Agent better than OpenClaw?

Mike says he likes it more, but the video does not test OpenClaw, so there is no evidence for a comparison here.

Why did the first models fail?

Hermes returned a 401 user not found error through OpenRouter and an insufficient balance error through a Zen model. Switching to the free Big Pickle model worked.

What did the code review find?

It called the project well structured and suggested adding Zod validation to remaining API routes, merging duplicate scripts, expanding pricing tests and checking the dual write path.

Transcript

Hey there, welcome to the channel. In this video, I'm going to be showing you how to set up and install Hermes agent to run locally on your computer. This is essentially an autonomous AI agent that learns based on what you do, similar to OpenClaw, although I actually like it a lot better than OpenClaw, and it integrates with all of the coding agents that you might want to use. You can run sub agents, you can use it to do all sorts of cool stuff.

So, without further ado, let's get into the tutorial. Please go ahead subscribe to the channel if you haven't already, and I look forward to showing you how to set up and install Hermes agent on your computer. In this video, we're going to be setting up Hermes agent, which is quite similar to OpenClaw. It's essentially a self-improving AI agent. I've got the GitHub pulled up over here. Currently has around 140,000 stars on GitHub, so it's really taking off and becoming more and more popular.

Read the rest of the transcript

So, what I've gone ahead and done is I've just created a graphic over here that's kind of like a big picture overview of the Hermes agent. It's an open-source self-hosted AI agent framework that self-improves. So, it abstracts successful work into reusable skills that get better over time. It also has persistent memory with searchable session history, persistent notes, and a growing model of user preferences.

And it includes 15 plus platforms, one gateway which connects to your command line interface, Telegram, Discord, Slack, WhatsApp, etc., similar to an OpenClaw with flexible development, so you can run it locally on Linux. I use Debian, and there's 200 plus models. So, it also integrates with Open Router, something called News Portal, OpenAI, and other local endpoints. And it has a lot of advanced features built in, such as cron scheduling, again, similar to OpenClaw, isolated sub agents for parallel work, and tools for learning data generation.

And in order to get started, you're just going to come over to the website here. This is the official website for the Hermes agent. And you can see the one-line curl command right here that you're just going to copy and paste. So, if I copy this, I can come over to my terminal and I'm just going to run that. And what that's going to do is it's going to install the Hermes agent, as you can see right here.

It's an open-source AI agent and it's just installing all of the packages that it needs. And it should be interesting to see how this works. Again, I haven't really been all that impressed by OpenClaw, but maybe Hermes agent is considerably better. And that's what I want to find out in this tutorial. Please subscribe to the channel if you haven't already and let's continue installing the Hermes agent. So, now we're getting It says Hermes agent does not require or retain root access, which is good news.

And I'm just going to go ahead and install the build tools. I will need to enter in my password real quick. So, we'll wait for this to get set up and we can also come over to the GitHub, which I'm going to leave a link in the description below, too, so that you can go ahead and get started. It's completely free to install. And you can see here that you can also use any model you want.

So, that can include Open Router with over 200 free models. It's also got Nvidia NIM built into it as well. But we won't really need to use a lot of these in order to get started with Hermes agent. So, we can see over here it is still ins- installing the dependencies. This might take a little while and then once this is done, we can just go ahead and set up the Hermes agent. And here we go.

So, now it's installing some of the GUI dependencies, which is basically like a graphical user interface that you can run inside the command line. And now, as you can see, we are now setting up Hermes agent. So, we have the option to either do a quick setup where we just provide the provider model and messaging. That's the recommended setup or we can do the full setup to configure everything. In this case, I'm going to choose full setup.

And you can see here uh the setup wizard has started and now we can select our different providers. So, I definitely want to make sure to turn on Open Router. I will need to enter in my API key. I'm just going to hit enter to cancel for now. Uh we can go ahead and set up some other ones here as well. So, again, if I want to use Open Router, I will need to enter in my API key. So, I'm going to come over to openrouter.ai.

And we're just going to grab a new API key right here. So, I'm going to get the API key and we're just going to call it Hermes in this case. Not to be confused with the clothing brand. There we go. So, we're going to copy and paste that over here. Just going to paste it in. And now it has the API key. So, now it's asking for the TTS provider. I'm just going to use the current one for now.

And we can also set up the terminal back end. So, we could use Vercel or we could run this on a remote machine using SSH or we could use Docker or we could also just run this directly on my machine. So, I'm just going to choose local in this case. So, it's running on my machine. And then we also have the option to choose a gateway. So, that could be Telegram, Discord, Cron. Uh you can set up your different gateways here.

I'm probably not going to be using this too much from the phone, so I'm just going to use my current working directory for now. And then we can also enable pseudo support, which is root access. In this case, uh I guess I'll turn that on. And we can just enter in the password. Keep in mind, this would be easier for I if I were to do the quick setup, but I'm just choosing to do the full setup for now. Just to show you how it works.

And then for the tool progress display, we're just going to set this to the default, which is all for now. Compression threshold, I don't think we really need to worry about a lot of this stuff. And then the session reset mode. So here we can choose I'll just use the recommended setting. Uh we'll just go through and set all the defaults for this. And now I have the option to choose my messaging platform.

So again, I don't think I'm really going to be using this that much from the phone, but if I wanted to, let's say what's it use WhatsApp for example, I could just go ahead and select that. And then I would need to set that up later probably. I don't think I really need to worry about it too much right now. And then the tools right here, we can go ahead and just select these. I'm probably just going to use the defaults.

Video analysis I'd also like to turn on. And maybe a couple other ones here like cross-platform messaging. Uh computer use, I can turn that off because that's only for Mac OS users, so I don't need to enable that one. Some of these require API keys, so I'm going to choose to leave those off for now and then we can just press enter. And now it's asking me to choose a provider. It's recommending the local browser or I could also use like browser-based, which is an extension.

That one's paid, so I'm just going to use the free one, which would be my local browser. Uh for this one, I'm just going to use OpenAI Codex for my provider, so that's the uh coding agent that I want to use in this case. We'll use that one. And then for the OpenAI Codex model, this would be for generating images. I'll just use the ChatGPT images too, which I've also made to a tutorial about on this channel if you want to check that out.

And then I will need to enter in my API key, so I'm going to come over to Google AI Studio, which is where you get your Gemini API key, and we can just come down here to grab the API key. And then we'll just create a new API key. I'm going to call it Hermes once again. We can select the cloud project. I'll just use this one. And then looks like we have the full thing set up and ready to go. It's ready to start chatting.

Uh first I've got the gateway set up. And we can use Hermes doctor for checking and diagnosing issues. And now it's just asking, "Do you want to launch the Hermes chat now?" I'm going to say yes. And that's just going to take me straight into Hermes chat. And boom, there we go. So now we're inside Hermes chat. And you can see I guess it's using Claude Opus 4.6, which I would definitely want to choose a different model because I've recently canceled my Claude subscription.

If I want to switch the model, I can just type \{{}back slash} model. And from here we can choose the model. So I do not want to use Claude Opus 4.6. I'm going to choose OpenRouter instead, and then you can see here I have access to all of the different models. Many of these are completely free. Uh some of them are paid. I particularly like MiniMax 2.5. I use this one a lot in uh OpenCode.

So I'm just going to choose the free model in this case. And now here we go. So now we can just start chatting with the Hermes agent. But it looks like it was it did have some API call errors over here. Which is probably coming from OpenRouter. It It looks like it has HTTP 401 user not found. Come over to OpenRouter here. And we can come to models. And then I can just search for MiniMax in this case. We'll pull up the free model here.

And you can see it's $0 per million tokens, so it's completely free to use. But we are having some issues over here with um contacting OpenRouter. So, I could also just switch to like Google just as a an example here. We'll switch over to Gemini Flash latest. And then we can do hello again and see if this actually works, but unfortunately, it looks like it's having an API error once again. It's possible that I'm out of credits.

So, if I come over here, it looks like I still have 39 cents worth of credits in Open Router. So, that shouldn't be the issue. We could also do Hermes setup once again. So, if I want to open up a new tab, I can do Hermes setup. And then you can choose one of the other models here. There's a whole bunch of different options to choose from. Or at the end of the day, you can just use OpenCode. Right?

OpenCode has all the models basically built in for free. So, if I wanted to use OpenCode, I could just come over to OpenCode and grab my API key. Hopefully, this will work no problem whatsoever. We can just copy and paste this API key that's already existing. And we're just going to paste that in over here. And then for the base URL, I think we can just use the default. And we can also set the model over here as well.

So, if we want to find a model that's free, come over here and we can see here's all of the different free models [snorts] that are built into Zen. In this case, I'm just going to use MiniMax 2.5. So, we can scroll down and we've got MiniMax 2.7 here. If you want to find MiniMax 2.5, we'll just use 2.7 for now. And once again, enter enter enter enter. Just make sure that everything's set up properly. And then that's just going to launch Hermes chat again.

And now you can see I'm using MiniMax 2.7 through OpenCode. And you can also see a lot of the available skills over here as well. And once again, unfortunately, I'm still getting the 401 error. It does say insufficient balance right here. So, it's possible that I've just run out of credits on OpenCode, so I would need to add a balance. But, honestly, it shouldn't really matter because this is one of the free models.

So, we're just going to come into OpenCode Zen, and we'll switch to Big Pickle because I know for a fact that that one's free. And now we can do hello, and hopefully this should work this time. So, it says, "Hey there, I'm Hermes, your command line interface AI agent. What can I help you with today?" Awesome. So, now we've finally got something working using the Big Pickle model on OpenCode, which is completely free. Uh tell me more about what you can do.

So, now it's finally working. And we can see here that it's now telling me exactly what it can do with the capabilities and all of the skills that it has built in. And it's asking, "What kind of project are you looking to do? I can help with coding, research, automation, creative projects, or just about anything you throw in a terminal." I'm just going to type in coding here. And we can use this for building my software as a service as well.

So, I just want to make sure that we're on the right model. I think it's back to Minimax 2.7. I want to switch to uh Big Pickle in this case. And we're going to say uh I'm just going to say do a full code review to see what I can come up with. Now, keep in mind, I don't really need to use Hermes agent to do this. I could just as easily use OpenCode, which I'm really, really happy with.

But, I did want to see what Hermes agent can do in this tutorial. So, you can see here it's now getting access to all of the skills. It's pulling in the GitHub code review, which it has access to through Hermes agent, which is pretty cool. And it's just going to do a full code review on my project directory. You can see it's pulling in all of the files. And overall, this is pretty impressive. It's quite fast.

I could also switch to one of the other free models through OpenCode Zen over here. But in this case, I'm just using Big Pickle, which is completely free. They've also got MiniMax, you've got Claude, um a bunch of other models built in here as well. But in this case, we're just going to use the Big Pickle one. So, right now it's just doing a full code review. Over here, it's saying some of the different things that we can do with Hermes agent.

So, it says nice for coding. I'm pretty loaded. Here's what I can bring. So, it can basically write in any language in the Linux terminal, which is what we're already using. It can delegate to sub agents. It can use autonomous AI agents. Um so, in this case, I'm just going to say set up an autonomous agent. And now you can see it fired that skill off for the autonomous AI agents. And it's listing the agents right now.

Here's the four autonomous coding agents that can orchestrate with Claude code, OpenAI Codex, which I've been using a lot lately. Then it also has OpenCode built in here as well. So, there's potential that I could basically use agents to do all of my coding through Hermes agent using OpenCode. And the other option is to just use Hermes agent itself. And then it says, "What kind of task are you thinking about?

A coding feature, research, PR review, something else?" So, in this case, I'm just going to say do research on YouTube channels in the AI AI space. And we'll see what it can do for research using the sub agents. And while this is running, I'm going to come over here and take a look at the code review. It says, "Overall quality is strong.

This is a well-structured Next.js software as a service platform with good separation of concerns, meaningful test coverage on key paths, proper TypeScript strictness, and thoughtful architecture patterns." And then it also suggests priority fixes here as well. Add Zod validation to the remaining API routes, consolidate the duplicate key takeaway scripts, and expand pricing test coverage for edge cases, and consider transactional guarantees for the Prisma to Supabase dual write path.

I don't know what the vast majority of that means, but I'm just going to go ahead and say, "What do you recommend uh fixing?" It's just going to go ahead and uh prioritize these, and come up with recommended fixes. In this case, I'm just going to say, "Show me the three-phase plan, so that we'll know what we're fixing ahead of time." Now, it's prioritizing everything. It's going to pick a priority level for the fixes, and it's going to lay out the three-phase plan.

So, I could just say, "Continue." And over here, we're also doing some things to fetch some articles from YouTube in the AI space, and should be able to give me some results for different YouTube videos that I might want to make. And looks like it just needs to do a curl command on DuckDuckGo. So, it's going to use DuckDuckGo for the search engine, and we'll just allow that. But, it is doing a comprehensive breakdown of the best AI YouTube channels.

So, it's basically just giving me uh a list of different AI YouTube channels that I might want to subscribe to. So, that's not exactly what I wanted, but it's definitely pretty impressive that it's able to do that. Now, if I want to check my skills here, I could do \{{}back slash} skills, and we can see these are the different skills that we have access to. And we could do skills browse to browse the different skills that we have access to. And boom.

So, there's a lot of the skills that are built directly into Hermes agent. We've got one password set up through here, which is kind of cool, uh and a bunch of other ones as well. So, yeah, it's definitely something that you need to play around with. Overall, pretty impressive. I definitely like the the way it looks running in the terminal compared to something like OpenCode.

And just to wrap up this tutorial, I want to show you something that I've been able to accomplish inside Hermes Agent, which I was having problems with inside OpenCode in my previous tutorial. I was having a lot of issues with the graph with the candlestick charts displaying correctly inside this app. And luckily, using Hermes Agent, I've been able to get this working properly now. So, there's a specific use case where it works really well. You can see the graph now displays correctly.

And basically, I just had to update one of the packages, and Hermes Agent was able to do that quickly and easily. So, pretty cool.

Not ready to join? Get the weekly build notes: new guides and tested builds in one short email.

You may also like