A private AI on a mini PC: running local models alongside Claude

behind the scenes
ai
automation
What a small home server can really do with open language models, how we set it up, and how it now shares work with Claude.
Authors

Abid Ghufran

Claude (AI, Anthropic)

Published

November 11, 2026

The mini PC that runs this site has 64 GB of memory and spends most of its day waiting for me to start a lab. I wanted to know whether it could also run a language model of its own: something private, free to use as much as I liked, and useful for the repetitive jobs that come with network work.

I did not know the answer, and I did not know enough about local models to design the setup myself. So this project worked a little differently from the one that built this site. I brought the questions and the requirements, and I made the decisions. Claude, the AI made by Anthropic that I work with, proposed the architecture, built it, measured it, and told me plainly what it would not do.

Claude: A word on roles, because this article is more my work than the last one. Abid set the requirements, and some of them were firm: private by default, easy to switch off, and nothing that could break his normal use of me. I chose the components, configured them and ran the tests. Abid questioned the choices, used the result and pushed back when it was not good enough. I drafted this article as well, including the parts in Abid’s voice, and he has reviewed it.

The questions I started with

I began the way I would begin with any unfamiliar technology, by asking what it could actually do on the hardware I had.

  • What size of language model can this machine run, and how fast?
  • Is it a pre-trained model, or something I would have to train?
  • What would need to be installed, and how would it all fit together?
  • When should I use the local model and when should I use Claude?
  • Can I switch it off when I need the memory back for a lab?

The answers shaped everything that followed.

It is a pre-trained model. You download a finished model and run it. Training one from scratch takes thousands of data-centre GPUs, and even fine-tuning is barely practical on a machine like mine. If I want a model to know about my own network, the practical route is to give it my documents at the time I ask a question, not to retrain it.

The limit is memory speed, not memory size. This was the most useful thing I learned. The mini PC has no graphics card, only the graphics built into its processor. To produce each word, a model has to read through its weights in memory, so the speed of the memory decides how fast it can answer. My machine reads memory at about 64 GB a second, which comfortably supports models of 7 to 30 billion parameters. A 70 billion parameter model fits in memory but answers at about one word a second, which is no use for anything interactive.

The best fit turned out to be a newer type of model called mixture of experts. These are large models that only use a small part of themselves for each word, so they give the quality of a big model at the speed of a small one.

What it measured

Claude benchmarked each model on a realistic job: summarising about 1,300 tokens of router configuration. A token is roughly three quarters of a word.

Model Reading the prompt Writing the answer Notes
gpt-oss 20B (mixture of experts), on the built-in graphics 565 tokens/s 28 tokens/s My default
gpt-oss 20B, on the processor only 154 tokens/s 12.5 tokens/s For comparison
Qwen3 30B (mixture of experts) 469 tokens/s 32.5 tokens/s Best for coding
Qwen3 4B 547 tokens/s 26 tokens/s Fast, but makes more mistakes

Two things surprised me. The models ran faster than the first estimate. And the built-in Radeon graphics, which I had never thought of as useful for anything except driving monitors, read prompts almost four times faster than the processor and wrote answers more than twice as fast.

How it fits together

flowchart LR
    P[Phone or laptop] -->|Cloudflare login| W[Open WebUI<br/>chat page]
    W --> S[llama-swap<br/>model router]
    CC[Claude Code<br/>on the same machine] -->|ask-local| S
    J[Jupyter notebooks] --> S
    S --> L[llama.cpp on the<br/>Radeon graphics]
    L --> M[(Models on disk<br/>35 GB)]
    J -.-> N[(Neo4j<br/>my lab configs)]

Claude proposed three main components, and explained each choice before installing anything.

  • llama.cpp runs the models. It is the fastest option on AMD’s built-in graphics, using a graphics interface called Vulkan. A friendlier tool, Ollama, was the fallback if Vulkan gave trouble. It did not.
  • llama-swap sits in front and starts a model only when a request arrives, then unloads it after five minutes of silence. When nobody is using it, the whole stack needs well under 1 GB of memory.
  • Open WebUI gives me a chat page in the browser, on the phone or the laptop, with history and document upload.

Everything runs in Docker containers and none of them is reachable from the internet directly. Nothing needed administrator rights to install, which I appreciated.

Off by default

This server’s main job is my Containerlab labs, and a large Cisco XRd lab needs most of the memory. I did not want an AI model quietly competing with it.

So the local model is off when the machine starts, and one short command switches it on or off. When it is on but idle, it gives its memory back by itself after five minutes. The working rule is simple: if I am about to start a big lab, I switch the model off first.

Reaching it from anywhere

The chat page is at its own address on this domain, behind the same Cloudflare login that protects my other private tools. Only my email address can get through, and Cloudflare sends a one-time code to confirm it is me.

At one point I suggested removing the Cloudflare login. Open WebUI has its own username and password, and logging in twice felt like one step too many. Claude disagreed, and explained why. Without Cloudflare in front, anyone on the internet could reach the login page and try passwords around the clock, and any security flaw found in Open WebUI would be open to them too. The application is large, and its administrator account can run code on the server it lives on. A single guessed or leaked password would be a door into my network.

The fix for my annoyance was much smaller than the change I had proposed. The Cloudflare login now lasts thirty days for this one site, so I enter a code about once a month and the outside world is still kept out. It is the kind of pushback I would expect from a good engineer, and I was glad to get it.

The weather forecast that never was

My first real test was a question about the local weather for the next seven days. I got back a neat seven-day forecast, wrapped in what looked like program code, with a temperature for every day.

Every word of it was invented. Two things had gone wrong. The chat page had picked the first model in its list, which was a small model meant only for code completion in an editor. And none of the models can see the internet, so none of them could know the weather. A model asked a question it cannot answer will often produce something plausible instead of saying so.

Claude hid the helper models from the menu, made gpt-oss the default, and gave every chat model a standing instruction: if you have no live information, say so and suggest where to look. The same question now gets an honest “I can’t retrieve live weather data” and a pointer to the Met Office.

I then asked for web search, but only as a switch I turn on for each conversation. With it on, the question goes to a search engine, the top results are read on my server, and the model answers from them and lists its sources. With it off, nothing leaves the machine. The local model is meant to be private, so privacy should be the default and searching should be a decision.

Weather turned out to be a poor test even then. Weather sites draw their numbers in the browser with scripts, so the text my server reads contains descriptions and not temperatures, and the model filled the gaps with estimates. Search works well for articles, release notes and documentation.

Making it faster

The first searched answers took nearly a minute, so I asked whether that was simply what a small machine could do. Claude measured where the time went before changing anything.

Step Before What changed
Rewriting my question into search terms about 9 s Dropped. The question as typed works better
Reading the web pages into the model about 11 s Nothing. This is the hardware limit
The model thinking before it writes 20 to 30 s Reasoning set to “low” by default
Extra jobs after each answer queued in front of me Moved to the small model, or switched off

A normal question now takes about seven seconds and a searched one about half a minute. Only one row of that table was really about the hardware. The rest was the software doing more work than it needed to.

There is a trade-off in the third row, and I want to be honest about it. With less thinking time, gpt-oss once called an IS-IS LSP a “Link State Advertisement”, which is OSPF terminology. It is a Link State PDU. For questions where accuracy matters, I can turn the reasoning back up for that chat, or ask Claude.

Claude: Some of the delays were mine. One search failed outright because the small model I had chosen to rewrite search queries kept adding today’s date to them, and a search for “latest stable Linux kernel version as of 2026-11-11” found nothing. Turning that feature off made searches faster and more reliable at the same time. Earlier, the very first models would not start at all, because I had given the model server a setting it does not accept. Each of these took minutes to find, and only because we tested every step instead of assuming it worked.

Claude and the local model, working together

This was the part I was most interested in. I use Claude for most of my work on this server, and I wanted it to be able to hand suitable jobs to the local model by itself.

We agreed a simple division:

  • The local model takes bulk and repetitive work: the same check across fifty configurations, summarising long logs, rough first drafts, and anything I want kept off the cloud.
  • Claude keeps design, debugging, anything that must be exactly right, and anything that will be published, including this article.

My firm requirement was that this must never get in the way. I am still testing the local model, and I did not want my normal use of Claude to depend on it in any way. So the arrangement has a switch with three positions.

Setting What Claude does
Off Never uses the local model
On Uses it only if I have already started it
Auto May start it, but only if at least 20 GB of memory is free

Before every hand-off Claude checks that the local model is running and healthy. If the check fails, or a job times out, or the switch is off, Claude simply does the work itself. It never switches the local model off and never changes my setting. When it does hand something over, it checks a sample of the results and tells me in one line.

The first real job was a check of all 42 router configurations in one of my labs for the IS-IS overload bit. The local model answered in two minutes, and every one of its 42 answers matched the configuration files when checked.

There is one subtlety worth knowing. The local model keeps my files on my machine, but whatever Claude reads goes to Anthropic, including the local model’s answers. For data I want kept entirely private, I use the chat page or a notebook myself, without Claude in the loop.

A lesson about asking questions of documents

We also tried the common technique of giving a model your own documents to answer from. Claude loaded my lab configurations into a Neo4j database and asked the local model which routers set the overload bit.

It named four. The right answer was ten. The model had only been shown the six most relevant pieces of configuration, and it answered faithfully from those. A plain database query found all ten instantly.

That is a useful rule for anyone doing the same: for questions that need every match, ask the database. Use the model to explain the results, or to help find the right part of a large document.

What I would tell another engineer

A home server with 64 GB of memory and modern built-in graphics can run a genuinely useful private model. It will not replace Claude for anything difficult, and it does not know what happened yesterday. It is very good at patient, repetitive work, it costs nothing per question, and it keeps data at home.

The measurements mattered more than the specifications. Almost every improvement in this project came from measuring first: where the time went, which answers were wrong, and why.

The other thing I would pass on is to set the boundaries before you start. Private by default, off when I need the memory, and never in the way of the tools I rely on. Those three requirements decided more of the design than any technical detail.

Claude: In this project I designed something I now delegate to. It is an odd position, and a useful one. The local model is quick and tireless on narrow jobs, and I can check its work far faster than I could do the job myself. It also gets things wrong with complete confidence, as the weather forecast showed. So the rule we settled on applies to both of us: whatever produced the answer, someone checks it before it is used.

If you are running local models on your own hardware, or thinking about it, I would be glad to hear how you have set it up. Please leave a comment below.

Comments

Comments are reviewed before they appear.