Hermes Gemma 4 Setup: The Free Local AI Agent Stack

Julian Goldie — founder, AI Profit Boardroom
By Julian Goldie · 9 min read
Get The AI Profit Stack Join AIPB →
🎯 1,000+ done-for-you AI agent workflows 📅 4 live coaching calls every week 🛡️ 7-day refund + 30-day ROI guarantee 👥 3,400+ AI operators inside

Hermes Gemma 4 is the setup I'd recommend to anyone who's tired of paying stupid money for API tokens.

Here's the honest truth.

Most people waste $200 a month on AI APIs because nobody told them the local stuff finally works.

Gemma 4 + Hermes changes the game.

You can run an actual agent on your machine, for free, forever, with a bigger context window than MiniMax M2.7.

That's not hype. That's maths.

Let me show you how it all clicks together.

What Hermes Gemma 4 Actually Is

Two pieces.

Gemma 4 — Google's latest open-source lightweight efficient model. It dropped with a few variants, the biggest pushing 256K context.

Hermes — the AI agent I've been running for about six months now. It orchestrates tasks, calls tools, spawns sub-agents, writes code.

Put them together and you've got a self-hosted agent that runs locally, for free, with no rate limits and no monthly bill.

That's Hermes Gemma 4.

If you're new to Hermes itself, I'd go read my Hermes agent workspace breakdown first to get the lay of the land.

Then come back here for the Gemma 4 part.

Why I Actually Care About This

I run a lot of agents.

Some days I'll have 30+ Hermes sessions open across different machines.

If every one of those sessions was burning Claude Opus tokens, I'd be broke.

So the real trick isn't "which single model is best" — it's "which stack of models is best".

For the heavy lifting, I use Claude Opus 4.7. I covered that in Claude Opus 4.7 for AI SEO.

For the 10x sub-agents underneath — the ones just grinding through batches of work — I use Hermes Gemma 4.

Because it's free.

And it's good enough.

That combination is what makes running an AI business sustainable.

The Setup In 5 Steps

1. Install Ollama

Go to ollama.com.

Copy the install command they show you.

Paste it into your terminal.

Hit enter.

That's it.

Ollama now runs quietly in the background on your machine. It's the thing that hosts Gemma 4 locally and exposes it over a URL.

2. Pull Gemma 4

On ollama.com, go to the Models page.

Click "Gemma 4".

You'll see a few variants listed:

Pick one.

Ollama gives you a terminal command to install it. Something like ollama pull gemma:4-latest.

Run it.

Wait for the download.

Done.

3. Fire Up Hermes

Open a new Hermes chat in your terminal.

Type:

hermes model

A list of available endpoints appears.

You'll see the usual suspects — cloud providers, built-in options — and right near the bottom, "Custom Endpoint".

Select that.

4. Point Hermes At Ollama

Hermes now asks for a URL.

This is where you paste the Ollama local URL.

Ollama runs on http://localhost:11434 by default.

Paste that in.

Critical: Ollama has to be running in the background for this to work. If you've just rebooted, open a second terminal and run ollama serve or just ollama list to wake it up.

Next, Hermes asks for an API key.

Two options, both work:

Either one. Honestly doesn't matter. I usually type "Ollama" because I like seeing it there.

Hit enter.

5. Pick Gemma 4 And Run

Hermes now shows you the models it found through Ollama.

You'll see Gemma 4 latest (plus any other models you've pulled).

Select Gemma 4 latest.

Leave the next prompt blank.

Run Hermes.

Boom.

You're now running Hermes Gemma 4 locally. Free. Forever.

🔥 Want to skip the trial and error? Inside the AI Profit Boardroom, I've got a full Ollama + Hermes section with step-by-step video tutorials showing the exact clicks and commands. Daily trainings in the SOP section show you real workflows — like yesterday's run-through of the new Hermes 0.7 update. Plus weekly coaching calls where you can share your screen and get help with YOUR setup. 3,000+ members already inside. → Join the Boardroom here

The Context Window Thing Is Bigger Than People Realise

Here's a thing that doesn't get enough airtime.

The bigger Gemma 4 variants — the 18GB and 20GB versions — run with a 256K context window.

Let me say that again.

256K.

Local.

Free.

That's bigger than MiniMax M2.7.

Bigger than a lot of frontier cloud models.

When I realised this, I nearly dropped my coffee.

What does a 256K context window let you do?

All of that, for free, on your own machine.

If you've ever been rate-limited mid-task on a cloud model at exactly the wrong moment, you know how much that matters.

Hermes Gemma 4 vs Hermes Cloud Models

I'm not going to lie to you.

Cloud models are still smarter on the hardest tasks.

If you give Gemma 4 a PhD-level reasoning question, it won't touch Claude Opus or MiniMax M2.7.

But here's the thing — most of what agents do isn't PhD-level reasoning.

It's:

For all of that, Gemma 4 is plenty.

My rule of thumb:

Quick Bonus: Running MiniMax M2.7 Through The Same Setup

The custom endpoint trick works for more than Gemma 4.

If you want to run MiniMax M2.7 cloud through Hermes:

  1. hermes model
  2. Select custom endpoint
  3. Type "2" for MiniMax M2.7 cloud
  4. Leave API key blank
  5. Run Hermes

Done.

MiniMax 2.7 is an agentic self-improving model — it's literally built to run tools.

You can even run OpenClaw with MiniMax 2.7 on top of Ollama. I cover that deeper in OpenClaw Byterover and the full OpenClaw AI SEO breakdown.

The point is — once you've got the custom endpoint flow down, you can swap models on a whim.

Hermes is the conductor.

Gemma 4, MiniMax 2.7, Claude Opus — they're the musicians.

Common Gotchas I've Hit With Hermes Gemma 4

A few headaches worth flagging:

Ollama not running. The single most common issue. Hermes tries to connect to the URL, gets no reply, errors out. Fix: run ollama list in a second terminal. If it hangs or errors, restart Ollama.

Wrong URL. Make sure you're pasting the local Ollama URL (usually http://localhost:11434), not some weird variation. Hermes is picky.

Model not listed. If Gemma 4 doesn't appear in the Hermes model list, you probably didn't pull it properly. Run the install command again from ollama.com's Gemma 4 page.

Machine too slow. If you picked a 20GB variant on a laptop with 8GB RAM, it'll crawl. Drop to a smaller Gemma 4 variant.

Weird outputs. Local models can be a bit less polished than cloud. Prompt them like you're talking to a junior — a bit more specific, a bit more structured.

FAQ — Hermes Gemma 4

What is Hermes Gemma 4?

It's the pairing of the Hermes AI agent with Google's open-source Gemma 4 model, running locally via Ollama. The result is a fully free AI agent that runs on your own machine with no API bills.

How do I install Hermes Gemma 4?

Install Ollama from ollama.com, pull Gemma 4 via the ollama.com Models page, then run hermes model, select custom endpoint, paste the Ollama URL, set the API key to "Ollama" (or leave blank), and select Gemma 4 latest.

Is Hermes Gemma 4 really free forever?

Yes. Gemma 4 and Ollama are open-source, and Hermes doesn't charge to point at a local model. Your only cost is the electricity to run your own machine.

How big is the Gemma 4 context window?

The smaller Gemma 4 variants run at around 128K context. The larger 18GB and 20GB variants run at 256K context — bigger than many frontier cloud models including MiniMax M2.7.

Can Hermes Gemma 4 run tools?

Yes. Gemma 4 is one of the new wave of Ollama-compatible models designed for agentic use. It handles tool calling and works well as a sub-agent inside Hermes.

Does Hermes Gemma 4 replace cloud models?

Not entirely. Cloud models like Claude Opus 4.7 and MiniMax M2.7 are still sharper on the hardest reasoning tasks. Use Hermes Gemma 4 for sub-agents, bulk work, private data, and jobs where free + unlimited matters more than peak intelligence.

Related Reading

Closing Thoughts

If you've been sitting on the fence about local AI models, Hermes Gemma 4 is the moment to jump.

256K context.

Free forever.

Easy setup.

Works with sub-agents.

Nobody else on the internet explains this setup as simply as I just did.

Go run it.

🚀 Want to go from tutorial to actual business results? Inside the AI Profit Boardroom, I've got a 2-hour course on exactly how to use Hermes to save time and grow a real AI business. Plus a 6-hour OpenClaw course, daily trainings in the SOP section, weekly coaching calls, and 145 pages of member wins. Map view to connect with people in your local area. The classroom has the best trainings on AI automation anywhere on the internet. → Get access here

Video notes + links to the tools 👉 https://www.skool.com/ai-profit-lab-7462/about

Learn how I make these videos 👉 https://aiprofitboardroom.com/

Get a FREE AI Course + Community + 1,000 AI Agents 👉 https://www.skool.com/ai-seo-with-julian-goldie-1553/about

Run Hermes Gemma 4 today and stop paying for stuff you can get for free.

What members say about the AI Profit Boardroom

Read all 114 reviews on Skool →

★ 4.9 out of 5 from 114 member reviews on Skool

Yosuke Sato, AI Profit Boardroom member review (5 stars, paying member for 17 months): The best Skool course you get for AI! I have attended a few Skool courses before, but AI Profit Boardroom is the most active community and has great support from the management team, including Julian! You can get the most up-to-date information and practical implementations in this community. I highly recommend this!Mazzie T, AI Profit Boardroom member review (5 stars, paying member for 10 months): My mind is blown everyday with all the content and the incredible information. So much support and I love the personalised attention and quick responses. The community is great and people are very responsive and helpful.Rene Clayton, AI Profit Boardroom member review (5 stars, paying member for 9 months): The AI Profit Boardroom is a GAME CHANGER people. I could not be more thrilled that I joined!! So much support, more information than you can even consume, a huge value for what the small fee was. I have grown my business, my knowledge and my FUN!. SUCH a fantastic leader and group of humans. I am incredibly honored to be a part of this fantastic group of intelligent humans :-) THANK YOU!Arpiet Malpani, AI Profit Boardroom member review (5 stars, paying member for 8 months): Incredible learning from Julian and team. I started out in march and was able to build end to end SAAS with the help and learning from this group. I am incredibly thankful to Julian for crazy support and prompt response.James Grimm, AI Profit Boardroom member review (5 stars, paying member for 7 months): I asked Julian for help finding local business websites with little to no traffic. Julian was gracious in providing me my personal "how-to" video instruction. Wow, this is the pinnacle of customer service! I am just one of 3,400 subscribers and Julian took the time to help me personally. Thank you Julian for your assistance and outstanding custoemr support and care. James (Jim) GrimmNick Good, AI Profit Boardroom member review (5 stars, paying member for 4 months): I’m part of many AI groups and hands down, what Julian Goldie, has built here…the classroom trainings are amazing, but the community he has created is second to none (the community is worth the cost of joining!). If you’re looking to become the AI expert and build/create something meaningful, then AI Profit Boardroom is for YOU!Steven Gray, AI Profit Boardroom member review (5 stars, paying member for 4 months): Been in awhile. I’m a dad on a factory shift, not a tech bloke. Julian’s lot showed me how to use AI without drowning in tools. Avatar, voice, the workflow thinking — that’s what I needed. If you’re stuck on “where do I start,” this group’s worth it. I always read them.Steve Erickson, AI Profit Boardroom member review (5 stars, paying member for 4 months): I asked Julian a simple question, and he ended up creating a 10-minute video and a guide breaking down in extreme detail what I had asked. Amazing response!Rod Martin, AI Profit Boardroom member review (5 stars, paying member for 3 months): Julian is brilliant, and more prolific than I can keep up with (which is a great thing). His AgentOS is remarkable, and he is THE go-to guy for what you can really do (and not do) with the ever-increasing deluge of new AI upgrades and tools. HIGHLY recommend.Daniel Shulman, AI Profit Boardroom member review (5 stars, paying member for 4 months): Julian is very helpful. He doesn't try sell stuff you dont need and will give you a straight answer to your questions.Rj Herzog, AI Profit Boardroom member review (5 stars, paying member for 5 months): Top notch. If you are searching & searching thinking there is always something better out there.... You just found it. No need to look any further. Goldie covers it all & is super helpful. Can't beat the group either. Really can't recommend this group enough.Jermey Matthews, AI Profit Boardroom member review (5 stars, paying member for 6 months): While he has the capacity to do it, Julian is definitely doing the unscalable things to support his community.

Ready To Join The #1 AI Community?

Join 3,400+ entrepreneurs inside the AI Profit Boardroom. Get the Agent OS, 1,000+ plug-and-play AI agent workflows, daily Q&A with Julian and 4 live coaching calls every week.

Join The AI Profit Boardroom →

7-Day No-Questions Refund • 30-Day ROI Guarantee

Found this useful? Get more of this site in your Google.

One tap adds us as a preferred source — Google then shows you our posts more often in Search, Top Stories, and AI Overviews.

Or add us in your Google settings →

← Back to all posts