Hermes Agent is an autonomous agent that lives on your server, remembers what it learns, and gets more capable the longer it runs.
Linux / macOS / WSL
Prefer to run Hermes directly on Windows without WSL? Follow the native setup guide here: → Hermes Agent — Native Windows Setup (PowerShell 7)
Head to WSL on Windows, open the terminal
wsl
Clone the repo to install dependencies
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
-
Select ENTER to proceed
-
Select Provider: this will enable you to connect to your chat model
-
Select Open router and click on Open router
-
Go to Openrouterai to get an API key
-
Sign up with GitHub on Openrouterai
-
Click on API keys
-
Click on Create API key
-
Enter a name
-
Copy your API key
-
Click on Enter on Max Iterations ( 60 )
-
Press ENTER to use the default tool
-
Press ENTER for context compression
- Select Inactivity plus Daily Reset
- Press ENTER for inactivity timeout
- Press ENTER for the daily reset hour
- Select Y to use the Telegram bot and press enter
- Create a bot via @BotFather on Telegram
- Click on Start
- Enter a name for your bot. I used HERMES CHAT BOT
- Now let's choose a username for your bot. It must end in
bot - Done, your bot will be created
- Let's link our bot using the bot token
- Copy the bot token and paste it into your terminal and press ENTER. Do not worry, it will not display the token
- Restrict who can use your token
- Go to @userinfobot on Telegram
- It will reply with your numeric ID (e.g., 123456789)
- Copy it and paste it into your terminal
- Click on Y to use ID for home channel and press ENTER
- Click on N to set up the Discord Bot
- Click on N to set up Stack Bot
- Click on N to set up Matrix Bot
- Click on N to set up MatterMost Bot
- Click on N to set up WhatsApp
- click on N to set up GitHub, GitLab, etc
- Done
NT: Why I said N for the rest of the socials is cause they are less important, telegram is the most important of them all
-
Go to https://discord.com/developers/applications → New Application → give it a name
-
Click Bot on the left → Reset Token → copy your bot token
-
Scroll to Privileged Gateway Intents → toggle ON Message Content Intent → Save Changes
-
Go to Installation → Guild Install → pick scopes
botandapplications.commands→ copy the invite link -
Open the link, invite the bot to your server
-
In Discord: Settings → Advanced → Developer Mode ON → right-click your name → Copy User ID
-
Run
hermes gateway setup→ select Discord → paste your token and user ID when asked -
Done. Tag the bot in any channel to start chatting.
-
- Click on Y and press ENTER to use the default
- Click on Y to start the service
- You will see TOOLS for CLI, screenshot it and keep it for future references
- Press
ESCto cancel - Choose a provider, select ENTER to use the default
- Select FAL AI for image generation, head to FALAI
- Click on sign up with github
- Click on for myself and create with AI tools, and click on continue
- Click on Add Key
- Enter the relevant details
- Create key
- Copy your key and save it
- Paste it into your terminal and press ENTER
- Choose a voice provider, select the default to use your device's TTS
- Select Search Provider, select FIRECRAWL
- Sign up on FIRECRAWL with GitHub, use a VPN if the site does not respond
- Complete the onboarding tasks
- Choose the free plan
- Click on API keys
- Click on Create
- Enter the details
- Copy the key and paste it into your terminal and press ENTER
- Done
- You will see
Would you like to install the gateway as a background service? - Click on Y
- HERMES INSTALLATION IS COMPLETE AND IS LIVE ON TELEGRAM
- Reload your shell to use the
hermescommand:
- Use Hermes to start chatting with your agent
- Enter any input to start your message
- Done, your Hermes agent is successfully installed, and you can start chatting and it also works on your desktop background
Want Hermes online 24/7 even when your PC is off? Put it on a cheap VPS.
This guide uses Tencent Cloud Lighthouse, it's affordable and beginner-friendly.
- Go to https://console.tencentcloud.com/lighthouse → click Sign Up Free to create an account
- After logging in, click Buy and select Lighthouse
- Pick a region close to you and choose Ubuntu as the OS
- Choose a plan, the Linux Starter (2 vCPU, 2 GB RAM) works perfectly and is very cheap
- Complete payment and wait for the instance to deploy
- Once ready, click Log In on your instance to open the web terminal, or SSH in
- Run the install:
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash - Go through the setup wizard, same as on your local machine
- Run
hermes gateway setupto connect Telegram or Discord - Start it in the background:
hermes gateway --daemon - Done. Your agent is live 24/7, chat with it anytime from your phone.


