Run Hermes Agent with a Local Model on Mac
Since 1.0.4, Hermes keeps the first message separate from its telemetry question, and --remove reliably cleans up.
Run Hermes Agent with a local model on your Mac using one command. Rapid-MLX saves a private agent profile and starts a local model when needed.
One command to launch Hermes Agent
First install Rapid-MLX and install Hermes Agent. If you used the install script, restart Terminal or run export PATH="$HOME/.local/bin:$PATH" first. Then run:
$ rapid-mlx launch hermes
Tomorrow: Run rapid-mlx launch hermes again. Rapid reuses the saved profile, model, loopback key and port. It does not change your existing Hermes Agent configuration. To remove only Rapid's private profile, run rapid-mlx launch hermes --remove.
| Mac unified memory | Model choices | Download and memory guidance |
|---|---|---|
| 16 GB | qwen3.5-4b-4bit fits 16 GB per the registry; not verified live on a 16 GB Mac. | About 3 GB download. |
| 18–36 GB | qwen3.5-9b-4bit default; start with qwen3.5-4b-4bit on 18–24 GB. | About 6 GB for 9B or 3 GB for 4B. |
| 48 GB+ | qwen3.5-9b-4bit responsive default; qwen3.8-27b-4bit higher-capability option. | About 6 GB for 9B or 16 GB for 27B; 27B needs roughly 20–26 GB free unified memory. |
Download size is not runtime memory use. Leave room for the client, context and other applications; keep context short when memory is tight.
First reply: The first reply can take longer than later turns: an uncached model must download, the server must load it, and the agent may send a long prompt that takes time to prefill. Wait for the model to become ready; there is no fixed first-reply time. A warm, cached model is usually quicker.
Quick answer
How do I use Hermes Agent with a local model on Mac? Install Rapid-MLX, then run rapid-mlx launch hermes. The same command reconnects on another day; --remove removes Rapid's private profile.
The agent hub covers the other supported agents. The manual setup below is useful when you intentionally want to edit your regular agent configuration.
Quick start
Needs: Hermes Agent v0.21.6 from its GitHub release and Python 3.14. The PyPI package is older than v0.21.6.
$ rapid-mlx serve qwen3.5-9b-4bit --port 8000 # In another terminal, after installing Hermes below: $ export PATH="$HOME/hermes-agent/.venv/bin:$PATH" $ rapid-mlx agents hermes --setup --yes $ hermes chat -q "Run cat README.md using the terminal tool and report its title" -Q -t terminal
A reply means Hermes is using your local model. rapid-mlx agents hermes --test runs the full integration check.
/v1/chat/completions ·
Setup: rapid-mlx agents hermes --setup ·
Matrix cell:
✅ ✅ XFAIL(arch) ✅
(DeepSeek R1-Distill — see
XFAIL arch).
Re-verified 2026-10-11 — Hermes 0.21.6 made a terminal tool call through the local Qwen 3.5-4B server on an M2 Pro Mac mini.
Install
$ git clone --depth 1 --branch v0.21.6 https://github.com/NousResearch/hermes-agent.git "$HOME/hermes-agent" $ uv venv --python 3.14 "$HOME/hermes-agent/.venv" $ uv pip install --python "$HOME/hermes-agent/.venv/bin/python" -e "$HOME/hermes-agent" $ export PATH="$HOME/hermes-agent/.venv/bin:$PATH"
Config
One-shot: rapid-mlx agents hermes --setup writes
~/.hermes/config.yaml (or $HERMES_HOME/config.yaml),
auto-detecting your served model and its real context window. An existing file is merged: your other keys are kept, no backup is made,
and --dry-run previews without writing.
The cli toolset list is trimmed to the toolsets your
installed Hermes supports. The 0.21.6 release ignores the old
model.max_tokens setting, so a fresh setup omits it. An
existing value is preserved but unused. A
representative template (context_length shown for a
256K-window model):
# ~/.hermes/config.yaml model: provider: "custom" default: "qwen3.5-9b-4bit" base_url: "http://localhost:8000/v1" context_length: 262144 platform_toolsets: cli: [terminal, file, code_execution, web, browser, skills, image_gen]
Run
$ rapid-mlx serve qwen3.5-9b-4bit $ hermes chat # interactive $ hermes chat -q "summarize this repo" # one-shot
Use the coding model table above to choose another model for your Mac.
Integration harness (test_hermes.py)
The deep flow at
tests/integrations/test_hermes.py
writes ~/.hermes/config.yaml to point at the running
server, then drives hermes chat -q <query> -Q in
non-interactive mode. Because Hermes injects 60+ tools into every
turn, small models can run out of context — the harness treats
"context too small for the tool block" as SKIP, not FAIL.
Gotchas
- Keep
model.context_lengthat the server's real context window. Setup detects this automatically. Hermes' tool prompt can be large; use-t file,terminalto limit toolsets for a small model. -
todo tool conflict on Gemma 4. Hermes injects a
todotool that races Gemma 4's own reasoning format. Fix: excludetodofromplatform_toolsets, or use Hermes'-tflag.
Empirical
Hermes Agent 0.21.6 called terminal to read a file and
returned its marker through the local Qwen 3.5-4B server on
2026-10-11.
The hermes-agent row of the integration matrix
is ✅ on Qwen 3.6, Gemma 4, and gpt-oss; DeepSeek R1-Distill
XFAIL(arch). Deep flow assertions in
test_hermes.py cover plain, streaming, single tool,
multi-tool, and structured output.