Hermes Agent setup with Gemma 4 and llama.cpp

Set up Hermes Agent in Docker with Gemma 4 through llama.cpp, then test web research, skills and a dashboard on an M4 with 48 GB unified memory.

Player not loading? Watch on YouTube

This tutorial sets up Hermes Agent in a Docker container connected to a local LLM through llama.cpp. The presenter uses a 4-bit Gemma 4 model described as having 26 billion total parameters and 4 billion active parameters, on an M4 machine with 48 GB of unified memory. That is the demonstrated hardware, rather than a stated minimum requirement.

The setup binds a persistent Hermes directory into the container and connects a custom endpoint through host.docker.internal on port 8080 with a /v1 path. The presenter uses no API key for that model endpoint, selects a 20-iteration tool limit and keeps the context compression threshold at its 50% default. Messaging platform setup is skipped in favor of the CLI.

The research examples use Exa with an API key, so these demonstrations require an external service despite local inference. The presenter tests a musician lookup, requests a technical overview of MiniMax 2.7 and uses a paper-reading skill. He checks several generated claims against source pages and finds a broken reference link.

The final section opens the Hermes dashboard to inspect session messages and raw search results. The presenter also describes how the AI agent can create memories and reusable skills across chats; the examples do not establish how reliably those mechanisms improve later tasks.