Hermes Agent with Ollama: local setup and Telegram
Learn to set up Hermes Agent with Ollama and Gemma 4 E2B, restrict a Telegram bot to your user ID, and install the gateway for messaging.
Player not loading? Watch on YouTube
This tutorial sets up Hermes Agent with Ollama and connects it to Telegram. The presenter uses a Mac with 34 GB of memory and chooses Gemma 4 E2B because he says it runs faster on his computer. That hardware describes the demonstration, rather than a stated minimum requirement.
The walkthrough starts with installing Ollama, downloading the model, and testing a greeting in the terminal. It then uses ollama launch hermes to install Hermes Agent and select the downloaded model. The presenter points to the .env file for environment settings before continuing through the messaging setup.
For Telegram access, he creates a bot through @BotFather and pastes its token into the setup prompt. He then obtains his user ID through @userinfobot to restrict who can use the bot. The gateway must stay running for Telegram to keep responding. The final checks send greetings through both the Hermes chat interface and Telegram.
The video demonstrates a local LLM backing an AI agent, but its test is a short conversation rather than a demanding task. The presenter describes the setup as free and private. The supplied description also cautions that local models may fall short of frontier cloud models on harder tasks. Telegram provides the remote messaging connection; the demonstration does not establish an offline Telegram workflow.