If you want to run Hermes Agent on Windows, the practical path is WSL2 + Ubuntu + Ollama + a local model, then optionally connect Telegram for remote access. This keeps Windows as the host while giving Hermes Agent a Linux-style environment to run in.
Quick Answer
Install Ubuntu in WSL2, verify that Ollama can serve a model inside the environment where Hermes Agent will run, and complete the local Hermes setup before adding Telegram. The most important check is endpoint reachability: http://127.0.0.1:11434 works only when Ollama is reachable from the same WSL environment. If Ollama runs on Windows instead, test the Windows host address from WSL before changing Hermes configuration.
The low-friction setup is:
- keep Windows as the host system
- run
UbuntuinsideWSL - use
Ollamato serve the local model - let
Hermes Agentconnect directly to the local Ollama endpoint
This approach keeps the environment relatively clean, lets you run most commands in a Linux-style workflow, and avoids preparing a separate Linux machine.
Hermes Agent Windows Setup Flow
You can split the setup into 4 steps:
- Enable
WSLand installUbuntu - Install Python, Node.js, Git, and other basics inside Ubuntu
- Install
Ollamaand pull a local model - Install
Hermes Agent, then connectTelegram
If your goal is simply to get Hermes Agent running first, by the end of step 3 you are already close.
1. Install WSL and Ubuntu
Run this in PowerShell with administrator privileges:
|
|
After the installation finishes, restart the PC, then continue with Ubuntu:
|
|
After that, open Ubuntu in WSL. Most of the remaining commands are run there.
2. Update Ubuntu and install the base environment
Update the system first:
|
|
Then install Python, extraction tools, Node.js, and Git.
Install Python
|
|
Install zstd
|
|
Install Node.js
|
|
Install Git
|
|
You can quickly verify the installation with:
|
|
3. Install Ollama and pull Gemma 4
Install Ollama:
|
|
If you want a local model for Hermes Agent, starting with Gemma 4 is reasonable.
For example:
|
|
If your machine is weaker, you can also try:
|
|
Larger variants include:
|
|
For most normal Windows + WSL setups, gemma4:e4b is usually the more practical starting point.
4. Install and configure Hermes Agent
Install it with:
|
|
After installation, point it to the local Ollama endpoint:
|
|
Use the local model name you actually installed, for example:
|
|
If the installer asks you to refresh the shell, run:
|
|
Verify Each Layer Before Adding Telegram
Test the stack from the bottom up so one connection error does not look like an Agent problem:
- In WSL, run
wsl.exe --statusfrom PowerShell oruname -ainside Ubuntu to confirm the environment is active. - Run
ollama listand thenollama run <model>to confirm the model name and local inference work. - From the same environment as Hermes Agent, request
http://127.0.0.1:11434/api/tagsand confirm Ollama returns a model list. - Run
hermes setup, enter the verified endpoint and exact model name, then starthermeslocally. - Only after local chat works, run
hermes setup gatewayand add the Telegram credentials.
If the API request fails but ollama run works in a Windows terminal, Ollama and Hermes are probably running on opposite sides of the Windows/WSL boundary. Use the Windows host address that WSL can reach, and make sure Ollama is listening on an interface permitted by your firewall. If the endpoint works but Hermes reports that the model is missing, copy the exact name shown by ollama list, including its tag.
Common Hermes Agent commands
These are the commands you will use most often:
Start
|
|
Re-enter setup
|
|
Configure the chat gateway
|
|
Update
|
|
Basic Telegram connection steps
If you want Hermes Agent to send and receive messages through Telegram, the core step is still:
|
|
Then prepare the two Telegram-side items you need:
- create a bot with
BotFather - get your
User IDwith@userinfobot
Once you have those basics, continue filling them into the Hermes Agent gateway setup.
Who this setup fits
This workflow is a good fit if:
- Windows is your main desktop system
- you do not want to maintain a separate Linux host
- you want to get a local Agent running first, then expand to chat platforms
- you prefer local models instead of depending on cloud APIs
If you mainly want to experience a local Agent rather than build a full production deployment immediately, this path is already practical enough.
A few things to keep in mind
WSLis still a compatibility layer, so in extreme cases it may not behave exactly like native Linux- whether a large model runs smoothly still depends on your RAM, VRAM, and CPU / GPU
gemma4:e4bis a realistic starting point, but actual experience still depends on the machine- Hermes Agent platform integration is an extension step; getting the local model path working first, then adding Telegram, is usually more stable
Conclusion
If you want to deploy Hermes Agent locally on Windows with as little friction as possible, the smoother order is:
WSL -> Ubuntu -> Ollama -> Gemma 4 -> Hermes Agent -> Telegram
Get the local model running first, then add the gateway integration. That usually gives you a much higher success rate. For most users, this is easier to troubleshoot than piling on every component at the beginning, and it also leaves room for later expansion.
For the next troubleshooting step, see how to expose an Ollama API on a Windows LAN and how to check whether Ollama loaded the model on the GPU. For a broader overview before choosing this stack, read the Hermes Agent setup and OpenClaw comparison.
Original reference
This post is rewritten and organized based on:
- Xchaoge Blog: 太简单了!Hermes Agent 本地部署(无需API)接入 Telegram + 微信