Let me save you the scroll: of all the best open source models for Hermes agent setups I have tested, GLM-5.2 takes the top spot. It ran a genuine agent loop inside Hermes — tools, memory and skills all firing — and its 1-million-token context window holds an entire codebase in one conversation.
This page is about ownership. Every model below is open-weight, meaning you can download the actual weights, run them on your own hardware, quantise them and keep them forever. Nobody can rug-pull your agent's brain with a pricing change or a quiet deprecation notice.
📺 Watch: Hermes Agent + China's GLM 5.2 is INSANE
What Counts As Open Source Here
One test decides entry: can you download the weights and own them? If yes, the model qualifies. If no, it does not — however free it is. Grok through an X subscription is the obvious example: it costs nothing extra to use, but the weights sit on someone else's servers, so it is explicitly excluded from this list. Free-but-closed options live on my best free AI model for Hermes agent page — this one sticks strictly to models you can possess.
Why be picky about it? Because Hermes accumulates memory, skills and workflows over months. Building all of that on a rented model is a risk. Building it on weights sat on your own drive is not.
📺 Watch: Hermes AI Agent + Nemotron 3 Nano Omni (FREE + OpenSource!)
How I Ranked These
Every position on this page comes from my own Goldie Bench side-by-sides — same task, different model, judged purely on what comes out the other end. That is where the GLM-5.2 agent-loop verdict came from, and the Ling 3.0 Flash one-shot builds too. Four criteria decided the order of the best open source models for Hermes agent duty:
- Real agent-loop ability in Hermes — can it call tools, write memory and load skills, or does it just chat?
- Context window — how much of your codebase or vault it can hold at once.
- Hardware reality — what it honestly takes to run, not the spec-sheet fantasy.
- Licence and ownership — weights you can download, keep and quantise.
📺 Watch: Orca: FREE AI Coding Agent (Open Source!)
The Best Open Source Models for Hermes Agent, Ranked
1 — GLM-5.2 (Z.ai)
GLM-5.2 is the flagship open coding model from Z.ai — the company also known as Zhipu AI — and it ships with a 1-million-token context window. The weights are on Hugging Face, where it ranks among the platform's most-downloaded models, with a big ecosystem of community quantisations around it.
It earns first place because I did not take anyone's word for anything. I wired it into Hermes through a custom provider and watched it run a real agent loop — calling tools, writing memory, loading skills — and my verdict in the full GLM-5.2 review was a clear yes. Add a context window that holds an entire codebase or a whole Obsidian vault in a single conversation, and nothing else open comes close.
There are two wiring paths, both covered in my GLM-5.2 inside Hermes walkthrough: a local Ollama daemon — noting that the glm-5.2:cloud tag routes through Ollama's cloud subscription — or a direct Z.ai API key.
Best for: the main brain on serious codebase and vault work · Runs on: a local Ollama daemon or the Z.ai API
2 — Kimi K3 (Moonshot AI)
Kimi K3 is Moonshot AI's open-source heavyweight and, on raw quality, one of the strongest open models available — genuinely frontier-level.
It takes second because access is absurdly easy: it is free at kimi.com, and on a cheap coding plan it makes a superb brain for Hermes. Had GLM-5.2 not proven its agent loop so convincingly in my testing, this would be the one to beat.
Best for: frontier-level output without a frontier-level bill · Runs on: kimi.com for free, or a cheap coding plan inside Hermes
If you want an agent brain you own rather than rent, the AI Profit Boardroom ships the Agent OS with open-model profiles set up and swappable in one click. → Get the open-model profiles done for you
3 — Qwen 3.8 27B (Alibaba)
Qwen 3.8 27B is the ownable mid-size of Alibaba's open Qwen 3.8 family, with weights on Hugging Face including community quantised builds in FP8 and NVFP4 formats — always a healthy sign that a model has a real ecosystem behind it.
The size is the sweet spot: big enough for proper agent work, small enough to live on one well-specced machine. The hosted flagship, Qwen 3.8 Max, is what I tested on video in early August — the 27B is the version you own, which is the entire point of this list. Pull it through Ollama or LM Studio and point Hermes at it; the harness is provider-agnostic, so it neither knows nor cares that the brain changed.
Best for: the ownable all-rounder · Runs on: one well-specced machine via Ollama or LM Studio
4 — Ling 3.0 Flash (Ant Group)
Ling 3.0 Flash comes from Ant Group with a mixture-of-experts design: 124 billion total parameters, only around 5 billion active per token. That efficiency is exactly why it can be given away — and it is, free through the OpenRouter API, through Hermes, and inside Kilo Code, with roughly 250K of context.
The team claims it matches their own 1-trillion-parameter flagship on most benchmarks. That is their claim, so stay sceptical. What I can vouch for is my side of the screen: in my one-shot build testing, every single build worked.
Best for: free, high-volume building through an API · Runs on: the OpenRouter API for free — no local hardware needed
5 — Gemma 4 12B (Google)
Gemma 4 12B is Google's open model and the definition of dependable. It runs locally through Ollama, costs nothing forever once installed, works completely offline, and punches well above its size.
In my stack it is the go-to fast sub-agent beside a bigger main brain: GLM-5.2 or Kimi K3 does the heavy thinking while Gemma clears the quick delegated jobs at local speed for zero API cost.
Best for: the fast local sub-agent · Runs on: Ollama, fully offline
6 — LFM2.5-2.6B (Liquid AI)
LFM2.5-2.6B from Liquid AI is a free 2.6-billion-parameter local model with a party trick none of the others has: it was actually trained with Hermes as a harness. The result is fast agent work with real tool calls on genuinely tiny hardware, fully private end to end.
Honest limits, though: it is a small model, so give it light agent tasks — quick lookups, small automations, jobs that must never leave the machine. My LFM2.5-2.6B write-up covers where the line sits.
Best for: light, fully private agent tasks · Runs on: tiny hardware, entirely local
7 — Maple Preview
Maple Preview is the most interesting entry on the board: an open-source 20B-A1B ternary-weight reasoning model that is startlingly fast for its size and points straight at the phone-sized local future.
My honest verdict from testing, unpacked in the Maple Preview review: quick and clever, not a heavyweight coder. Run it for the speed and the glimpse of what is coming, not for production builds.
Best for: speed experiments and a taste of the local future · Runs on: light local hardware
Here is the whole field of the best open source models for Hermes agent work in one view:
| Model | Size or design | Where it runs | Best role |
|---|---|---|---|
| GLM-5.2 | Flagship open coder, 1M context | Local Ollama or Z.ai API | Main brain for big builds |
| Kimi K3 | Frontier-level open model | kimi.com free, or cheap coding plan | Top quality on a budget |
| Qwen 3.8 27B | Mid-size of the open Qwen 3.8 family | Ollama or LM Studio | Ownable all-rounder |
| Ling 3.0 Flash | MoE, 124B total, around 5B active | OpenRouter API, Hermes, Kilo Code | Free high-volume builder |
| Gemma 4 12B | 12B open model | Ollama, offline | Fast local sub-agent |
| LFM2.5-2.6B | 2.6B, trained with Hermes as harness | Tiny hardware, fully local | Light private agent tasks |
| Maple Preview | 20B-A1B ternary-weight reasoner | Light local hardware | Fast reasoning experiments |
How To Wire Any Open Model Into Hermes
Hermes is provider-agnostic, which is what makes this whole list practical. There are two routes. Route one: run the model locally, with Ollama or LM Studio serving it on your machine. Route two: point Hermes at an API — OpenRouter for Ling 3.0 Flash, a direct Z.ai key for GLM-5.2. Either way, you select the brain with the hermes model command or from the models page, and my Hermes local model setup guide walks through both routes step by step.
The pattern I actually run inside the Agent OS is big brain plus small sub-agent: GLM-5.2 or Kimi K3 as the main brain, with Gemma 4 12B or LFM2.5-2.6B as the quick local worker that handles delegated jobs without burning main-brain tokens. Two open models, each doing what it does best.
Frequently Asked Questions
What is the difference between open source and free?
Open source means the weights are downloadable — you can own the model outright. Free simply means no bill: Grok via an X subscription costs nothing extra but stays closed, so it can never make this list. Plenty of models are both, which is why my two Hermes model pages overlap without matching.
Which model should I pick if my machine is weak?
Locally, LFM2.5-2.6B is built for tiny hardware. Or skip local entirely: Ling 3.0 Flash via OpenRouter and Kimi K3 at kimi.com are free and served remotely, so your machine only has to run Hermes itself while the weights stay open.
Do open models really run a proper agent loop?
Yes. In my testing GLM-5.2 ran tools, memory and skills inside Hermes; LFM2.5-2.6B was trained with Hermes as a harness; and every one of my Ling 3.0 Flash one-shot builds worked. Open weights and real agentic behaviour now arrive in the same package.
Can I switch models without losing my agent's memory?
Yes — inside the Agent OS, memory lives in the operating system, not the model. Your agent's notes, skills and workflows sit in files the OS owns, so swapping GLM-5.2 for Kimi K3 changes the brain while everything it knows stays exactly where it was.
The Verdict
The best open source models for Hermes agent work stack up like this: GLM-5.2 wins on proven agent-loop performance plus that 1-million-token context; Kimi K3 is the frontier-quality bargain; Qwen 3.8 27B is the one to own on a single machine; Ling 3.0 Flash is free volume; Gemma 4 12B and LFM2.5-2.6B are your local sub-agents; and Maple Preview is the fast glimpse of where all this is heading.
My advice is simple: start with GLM-5.2 as the main brain, add Gemma 4 12B as the sub-agent, and you have an agent stack you own outright — no subscription can switch it off.
If you want this whole open-model stack running tonight rather than after a week of config fiddling, check out the AI Profit Boardroom — inside you get the Agent OS, every model setup on this list done for you, daily tutorials, four live coaching calls a week, and me answering your questions personally. → Join the Boardroom and own your agent's brain











