Run the Hermes Gateway as a Persistent Service with Request Logging and Clean Shutdown
Advanced · 30 minutes · 5 tasks, checked automatically · 100 points
In this advanced deployment lab you will install Hermes Agent inside the toolbox container, configure it to talk to the local qwen2.5:3b model, stand up its HTTP messaging gateway as a long-running background service, prove that request logging is captured to disk, and demonstrate a clean, signal-safe shutdown. Every step is verified with a deterministic check so you always know exactly where you stand.
What you’ll learn
- Install Hermes Agent and verify it can reach the local Ollama sandbox
- Author a complete cli-config.yaml that targets qwen2.5:3b and enables gateway request logging
- Start the Hermes gateway as a background process and confirm it is listening on its port
- Prove that HTTP requests are written to the configured log file
- Perform a clean SIGTERM shutdown and confirm the process exits without error
How this lab works
- Start the lab: One click starts a sandbox with a local model and the agent’s toolbox: no API key and no token bill.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work inspects the agent, its config and its output, and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: Locally, against a model on your computer: no API key, no tokens
- Model: qwen2.5:3b
- Open source: github.com/NousResearch/hermes-agent
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop (or Podman / Rancher Desktop) installed and running
- A model sandbox started in the Agent Playground
Topics: hermes-agent, gateway, deployment, ollama, qwen2.5, request-logging, graceful-shutdown, background-service, cli-config
Create a free account to start this lab.
Keep going
- Persistent OpenClaw: docker-compose with Surviving Volumes
- Dual-Surface Agent Control: CLI and Web Gateway with Hermes
- Schedule a LangGraph Morning Briefing Agent
- Serve MCP over Streamable HTTP and Connect a Remote Client
- Route a CrewAI Agent Through Your Own OpenAI-Compatible Gateway
- Lock OpenClaw Down: Pairing Approval, Per-Skill Permission Scoping, and Shell Command Allowlisting