How to Run Pi and Hermes Agent at Home with Small Local AI Models

An AI agent can read project files, check a log, or run a local command. For these jobs, an old desktop can be enough. With Ollama serving a model on the same machine, Pi and Hermes Agent can keep working even when your internet connection is down.

Three models to try

Ollama model Download size Advantage in a crunch
edtorre/lfm3-agent 1.1 GB The smallest download here. Try it on a spare CPU-only PC for short jobs like counting repeated errors, summarising a service log, or reading a local runbook.
edtorre/qwen3.5-hermes 6.6 GB A quantized build with tool calling and image input. Try it for reviewing Bash scripts or comparing Docker Compose files. It can also read a dashboard screenshot if the agent passes images through.
edtorre/gemma4:12qat-hermes 7.2 GB A quantized 12B build with tool calling and image input. Try it on a larger troubleshooting job, such as comparing a service log, its configuration, and a rollback note.

LFM3 Agent is my first pick for a spare PC. Ollama lists this build at 1.73 billion parameters with 4-bit quantization. It supports tool calling and can run entirely on the CPU using system RAM. Download size measures the model files on disk. Leave extra memory for the running model, the context, and the agent. Start with a modest context on older hardware. LFM3 model details · Ollama FAQ

Set up Pi or Hermes with Ollama

While you are still online, install Ollama, then download a model and launch the agent you want to use.

ollama pull edtorre/lfm3-agent
ollama launch pi --model edtorre/lfm3-agent
# Or use Hermes Agent
ollama launch hermes --model edtorre/lfm3-agent

If Pi or Hermes is already installed, both can use Ollama’s local endpoint at http://127.0.0.1:11434/v1. Add it to Pi’s ~/.pi/agent/models.json or select a custom endpoint through hermes model. You can swap in either of the other model tags after pulling it. Pi setup · Hermes Agent setup

For a quick test, place a sample log file in your working directory, disconnect the internet, and ask the agent to read the log, count the lines containing ERROR, and show the last three. Check the answer against the file and look for an actual tool call in the agent’s transcript. In a second terminal, run ollama ps while the model is loaded. If it shows 100% CPU, Ollama is running the model entirely in system RAM. Ollama FAQ

What to ask the agent during an outage

When my internet connection goes down, a local model can still read logs and runbooks on the machine it can access. With local tools and cloud integrations disabled, those files can stay on that machine. A spare PC also keeps the model off the server I am trying to recover, provided I can give it the relevant logs or reach the server over the local network.

Symptom First checks
A Linux service stopped Read systemctl status nginx --no-pager and journalctl -u nginx -n 80 --no-pager. Pull out the first error and its timestamp.
A container keeps restarting Read docker compose ps and docker compose logs --tail=80 app. Compare the failure with the last known working Compose file.
The server reports a full disk Run df -h and df -i to see whether the filesystem ran out of space or inodes. Use that result to decide where to look next.

A prompt I would use for a failed service:

Check why Nginx stopped. Start with read-only checks and show the log lines that support your findings. Suggest one next check. Ask before editing files or restarting services.

Start without elevated privileges and give the agent only the access it needs to read the relevant files. Verify the cited lines in the original output before applying a fix. When comparing models, give them the same saved incident and check whether they identify the relevant error and suggest a reasonable next step.

Once the models and tools are installed, local files and commands remain usable offline. Web search, Telegram, and other cloud integrations still need internet access. For home use, I’d start with LFM3 Agent and see how it handles the logs and scripts I already have.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top