Run Hermes Agent locally with Lemonade Server

In the video, Ben Consalvo demonstrates how to run the autonomous Hermes Agent locally on a Windows machine using WSL and the Lemonade Server, leveraging the powerful Qwen3.6 35B-A3B AI model with a large context window for advanced tasks and memory retention. He also showcases configuring a secure sandbox environment, integrating Hermes with Discord for interaction, and using the agent to perform real-world tasks like web searching and repository management, all accessible via a user-friendly dashboard.

In this video, Ben Consalvo, a senior AI engineer at AMD, demonstrates how to run the Hermes Agent locally with the Lemonade Server. Hermes is an autonomous AI agent that operates entirely on a laptop and can be interacted with via Discord. Unlike a simple chat assistant, Hermes maintains memory between sessions, builds skills over time, and can execute scheduled jobs. It can perform various tasks such as running shell commands, writing files, and searching the web, making it a genuinely autonomous agent.

The setup involves running Hermes inside the Windows Subsystem for Linux (WSL) on a Windows machine, while the AI model runs natively on Windows alongside the Lemonade Server. The model used is Qwen3.6 35B-A3B, a mixture-of-experts model with 35 billion parameters, of which about 3 billion are active per token. It supports a large 262,000-token context window, enabling it to function effectively as an agent by holding system prompts, tools, and previous interactions. This large context window is notable for being able to run locally.

To configure the environment, users install WSL with Ubuntu 24.04, enable systemd, and set up a port proxy to allow WSL to communicate with the Lemonade Server running on Windows localhost. Hermes is then configured to connect to the Lemonade Server via this proxy. A lightweight Debian sandbox container is created using Podman, containing only essential tools like Git, curl, Python, and ripgrep. Hermes runs its terminal and file operations inside this sandbox, ensuring a secure and controlled environment for executing commands.

The video also covers the Hermes dashboard UI, which provides a convenient interface to manage configurations, chat sessions, models, memory, and scheduled jobs. This dashboard can be accessed through a web browser, offering a comprehensive view of the agent’s activities and settings. Additionally, Ben explains how to integrate Hermes with Discord by creating a bot in the Discord Developer Portal, enabling message content intent, and configuring the bot token and user ID in Hermes. This allows users to interact with Hermes directly from Discord.

Finally, Ben demonstrates Hermes performing real tasks, such as summarizing recent election results by searching the web, which verifies that the agent can access up-to-date information beyond its training data. He also shows Hermes cloning the Lemonade repository inside the sandbox container and verifying the size of the cloned repository. The video concludes with an invitation to visit the detailed playbook page for further instructions and resources, encouraging viewers to subscribe and provide feedback.

Useful Links