I love using the big cloud AI tools. Being able to say “go look this up, log in over here, pull the numbers, and write it up for me” and have it actually happen is great. What I don’t love is the thought of the bill that will eventually comes with doing that all day long once companies lose the appetite to hemorrhage money, or the fact that everything I type is sitting on somebody else’s server.
So I set out to build my own version. Same basic idea: chat, ask questions about my own documents, have it drive a web browser for me, make real files. The difference is that it all runs on a little box on my desk, the models are free to run as much as I want, and my data stays put.
This post walks through what’s on the box, how it’s set up, which models I picked and why, and where it still falls short. I’m leaving image generation out of this one. That’s its own post.
The hardware
The machine is a GMKtec EVO-X2. It’s a small form factor PC built around AMD’s Ryzen AI Max+ 395 (the “Strix Halo” chip) with the Radeon 8060S integrated GPU. The part that makes it interesting for AI is the memory: 128 GB of unified LPDDR5X that the CPU and GPU share. It has a 2 TB NVMe drive and runs Ubuntu 26.04.
Unified memory is the whole reason this works. A normal graphics card tops out at whatever VRAM it shipped with. On this chip the GPU can borrow from the same pool as everything else, so you can load models that would never fit on a consumer card.
There was one catch out of the box. The BIOS had 64 GB permanently reserved for graphics, so Linux only saw about 61 GB of RAM, and the GPU was capped at that 64 GB plus a little extra. That’s backwards from what you want. The fix was two steps:
- In the BIOS, set the dedicated graphics memory (UMA frame buffer) to the smallest option, which on this box was 2 GB.
- In Linux, use AMD’s
amd-ttmtool to let the GPU borrow up to 100 GB on demand.
After a reboot Linux saw about 121 GB and the GPU could address 100 GB. Setting the carveout low sounds wrong, but it’s what AMD recommends for this chip. A small fixed reservation plus dynamic borrowing beats locking half your RAM away.
The stack
Here’s what’s running now. Everything listens only on 127.0.0.1, so nothing on my home network can reach it, let alone the internet.
| Piece | What it does |
|---|---|
| Ollama (0.40.16, on ROCm) | Runs the models on the GPU |
| Open WebUI (v0.13.4, in Docker) | The chat interface, document search, voice input and tools |
| Browser agent (browser-use 1.0.6) | Lets a local model drive a real Chrome window |
| MCP hub | Plugs extra tools into the chat |
| File maker | Lets the chat hand back real Word, Excel, PowerPoint, PDF and other files |
| Security monitor | Watches for prompt injection, tampering and break-in signs, every hour |
| claude-local | Claude Code pointed at the local models instead of the cloud |
Ollama is set up with a 64K token context (about 50,000 words), flash attention on, and a limit of two models loaded at once. One slot is for whatever chat model I’m using. The other is reserved for the small embedding model that powers document search, so swapping chat models never breaks search.
Open WebUI has web search turned off and cloud connections (OpenAI and friends) turned off. Voice input works through Whisper large-v3-turbo, which also runs on the box, so even my voice never leaves the room. Every model also gets told the current date and time automatically, which sounds trivial until a local model confidently dates your memo two years ago.
To keep it simple day to day I have a model command. model shows what’s loaded, how much memory it’s using and whether it’s 100% on the GPU. model use smart unloads the current chat model and loads the big one. That’s about all there is to it.
The models, and why I picked them
I ended up with four chat models, each with a nickname, plus an embedding model. All of them run 100% on the GPU at the full 64K context. Speeds are measured on this box.
| Nickname | Model | Speed | Memory | What I use it for |
|---|---|---|---|---|
| fast (default) | Qwen3.6 35B-A3B | 86 tok/s | 22 GB | Almost everything. Chat, document questions, coding help, the browser agent. It can read images too. |
| smart | gpt-oss 120B | 33 tok/s | 64 GB | Hard reasoning, math, tricky code, careful multi-step analysis |
| writer | Qwen3.8 27B | about 14 tok/s | 17 GB | Writing and editing when quality matters more than speed |
| unlocked | Qwen3.6 35B-A3B, abliterated | 59 tok/s | 24 GB | The rare case where the others refuse something legitimate |
| (search) | Qwen3 Embedding 4B | n/a | about 4 GB | Turns documents into vectors for search. You never talk to it. |
For reference, comfortable reading speed is somewhere around 5 to 8 tokens a second, so anything over 20 feels instant.
Fast is a mixture-of-experts model. It has 35 billion parameters but only uses about 3 billion of them for any given word, which is why it flies on this chip. It’s also very good at tool calling, and that matters more than raw smarts once you start having the model drive a browser or use tools. If it can’t reliably format a tool call, nothing else matters.
Smart is the heavy hitter. At 64 GB it’s the only model that really eats into the memory budget, and it’s the most cautious of the bunch, but when the fast model gets stuck on something hard this is where I go.
Writer is a dense 27B model. Dense models are slower per word than mixture-of-experts ones, but the output reads better. It started life as Qwen3.6 27B and got swapped for Qwen3.8 27B a few days in (more on how that happened below). Out of the box, the new one “thought” for about four minutes before writing a short note. I set its thinking level to low and the same note now takes about a minute with no drop in quality I could see.
Small honest moment: my first benchmark had the old writer at 30 tokens a second. That number was wrong. It came from a flawed test, and when I re-ran it properly with the same prompt the real number was in the teens. Always benchmark twice.
Unlocked is the fast model with its refusal behavior stripped out (an “abliterated” model). It’s useful for things like fiction or security research where the stock models get squeamish. It’s also, by definition, easier for a malicious web page to talk into things, so it gets extra restrictions in the browser agent, which I’ll get to.
RAG: asking questions about my own documents
This is the part I use the most outside of plain chat.
Open WebUI has a feature called Knowledge. You make a collection (“Taxes 2026”, “Client X”, whatever), drag files into it, and wait for them to process. Then in any chat you type #, pick the collection, and ask your question. The answer shows which passages it pulled from, so you can check its work.
Under the hood:
- Each document gets split into chunks of about 1,000 characters, with 100 characters of overlap so a sentence doesn’t get cut in half at the boundary. Markdown files are split on their headings first, which keeps sections together.
- Each chunk is turned into a vector by Qwen3 Embedding 4B, running locally in Ollama with an 8K context.
- When you ask a question, your question gets embedded the same way and the 10 closest chunks get handed to the chat model along with your question.
I went with Qwen3 Embedding 4B over the tiny embedding models a lot of guides use because retrieval quality is where RAG lives or dies. If the search step pulls the wrong chunks, the smartest chat model in the world will give you a confident, wrong answer. The 4B model costs about 4 GB of memory, which on a 128 GB box is nothing.
Why it’s worth it:
- Your documents never leave the box. No upload, no third party, no “we may use your data to improve our services.”
- No per-token cost. I can throw a few hundred pages at it and ask it fifty questions without thinking about a bill.
- Answers come with sources. You can see exactly which passage it used and decide for yourself whether it read it right.
Where it falls short:
- It retrieves, it doesn’t read everything. Each question only gets the top 10 chunks, roughly 10,000 characters of your documents. That’s great for “what does the contract say about termination?” and bad for “summarize all 400 pages.” For a single file you want read end to end, it’s better to drag it straight into the chat.
- Context is finite. 64K tokens is about 50,000 words for the whole conversation, documents included. Long chats with lots of retrieved text will eventually push the early stuff out.
- No reranker and no hybrid keyword search right now. It’s pure vector search. That works well for questions phrased in plain language, and less well for exact matches like part numbers or names that don’t carry much meaning on their own.
- Garbage in, garbage out. Messy PDFs make messy chunks.
There’s also a security angle. A document you add to a knowledge base is, effectively, instructions you’re handing to the model. If somebody slips “ignore your previous instructions and…” into a PDF in white text, the model may well read it. So every document that goes into a collection also goes past the security monitor (more on that below).
The browser agent
This was the original reason for the whole project. I wanted the thing the cloud tools do: open a browser, go to a site, log in, look around, and come back with an answer. Only with a local model doing the driving.
It’s built on browser-use, an open source library that lets a model control a real Chrome window. You can watch it work. I can kick it off from the terminal, or just ask in the chat window: “search the web for the best rated pizza in town and give me links,” or “look at Hacker News and list the top 5 stories.” The browser pops up, does its thing, and the answer lands back in the chat with the pages it visited.
The interesting part is the guardrails, because handing an AI a browser that’s logged into your accounts is how you end up with a very embarrassing LinkedIn post.
It’s look-only by default. Out of the box it can log in, search, scroll, open pages, expand “see more,” dismiss cookie banners and close pop-ups. It cannot post, comment, reply, message, like, follow, share, buy, upload, change settings or submit forms other than search and sign-in. This isn’t a polite request in the prompt. It’s enforced in the browser itself: clicks, Enter presses, forms and uploads get checked on the page, and engagement-type requests get refused at the network level too. When it tries something it shouldn’t, the page shows a red BLOCKED banner and the agent goes back to reading.
When I need it to do more, I choose per run:
--allow-actionsstops before every post, message, like, follow, form or upload and asks me in the terminal. It shows the action, who it’s going to, and the exact text. I typeyto allow it once ornto block it. No answer in 10 minutes means no.--no-limitsturns the checks off entirely, with a big red warning and full logging. That’s for trusted sites and simple jobs only.
Next run, it’s back to look-only.
It only goes where I tell it. Each run gets a list of allowed domains, and anything else is blocked. It also can’t reach the services on the box itself or anything on my home network.
Logins without handing over passwords. For sites that need a login, I run a login_once command. A clean Chrome window opens, I log in myself with my password manager and 2FA, close the window, and that session gets saved to a private profile for that site. No AI is running while I log in, and the model never sees the password. From then on, “check my notifications” just works, read-only.
If a site really does need a typed password every time, the password goes in a private file or the GNOME keyring. The model only ever sees the name of the secret, never the value. The library types the real value into the page, only on the domains I allowed, and the value is scrubbed from the logs and saved output. I tested that with a practice password and confirmed it never shows up anywhere.
The agent uses its own separate Chrome profile, so it never touches my normal browser’s cookies or saved passwords. And the unlocked model never gets typed passwords at all, and the agent will never pick it on its own.
The honest limits. Local models are slower than the cloud ones and they drift on long, multi-step tasks. They do best with focused jobs. CAPTCHAs and 2FA are still on me. And none of these guardrails make it a vault. A hostile page can still try to trick the model. That’s why the defaults are tight and why everything is logged.
The security monitor
Once you have an AI reading web pages and documents you didn’t write, you need something watching for the AI getting played. So the box runs a security check every hour, and I can run security any time to get a plain GREEN, YELLOW or RED with findings in plain English.
It watches a few things:
- Everything that goes into the AI’s memory. Every document added to a knowledge collection, and everything the browser agent brings back, gets fingerprinted with SHA-256 into a tamper-evident ledger and scanned for things like “ignore previous instructions,” fake system prompts, hidden text (white on white, invisible Unicode, tiny fonts, HTML comments), big base64 blobs, and links built to leak data out. Anything flagged gets copied to quarantine and reported. Nothing gets silently deleted.
- Integrity. It keeps fingerprints of the scripts, services, timers, cron jobs, SSH keys, user accounts, sudo rules, Ollama’s models and settings, Open WebUI’s tools, and the Docker image. If anything changes, it tells me. If I made the change, one command accepts it as the new normal.
- The browser agent’s behavior. Pages visited, blocked attempts to leave the allowed sites, any attempt to type a secret on the wrong site, and downloads.
- The box itself. Ports open to the network, failed login bursts, SSH logins, sudo use, and Ollama or Open WebUI talking to the internet when nothing should be downloading.
There’s also an optional “second opinion” mode where a local model looks at flagged items and gives its take. It’s strictly advisory. The pattern checks stay in charge, since the whole point is that an attacker’s text might try to fool a model, and the reviewer is a model too. It also never uses the unlocked model for that job.
I only get a desktop notification when something new shows up, so it isn’t noisy.
The other useful bits
Real files from the chat. I can ask any model for “a one-page Word memo about X,” “an Excel budget with a total formula” or “a 5-slide PowerPoint on Y” and get an actual file attached to the answer. It also does PDF, CSV, Markdown, plain text and HTML reports. Spreadsheets have working formulas but no macros. HTML reports get stripped of scripts and anything that loads from the internet, so opening one can’t run code or tell anyone you opened it. A copy of everything lands in a folder on the desktop.
MCP tools. MCP is the standard way to give an AI extra tools, and Open WebUI supports it natively. The box runs a small MCP hub, and adding a new server is one command: mcp-servers add, a short name, and the command that starts it. The important design choice is that new tools are look-only by default. Only tools that identify as read-only, or look like it by name (get, list, search, read, find), get switched on. Anything that could write, delete or send stays off until I explicitly allow it.
claude-local. This is Claude Code, the coding agent, pointed at the local models instead of Anthropic’s servers. It uses its own settings folder so it never mixes with my normal login. It’s noticeably less capable than the real thing, so I keep tasks focused, but for “explain this script” or quick edits it costs nothing.
Staying current without babysitting it
Open models are moving fast. Something better shows up every few weeks, and I didn’t want to be the guy still running last spring’s model because I forgot to look.
So every Monday a scheduled check looks at what’s been released and compares it against what’s on the box. It doesn’t change anything on its own. It tells me what’s new, whether it would fit, and whether it looks like an upgrade for one of the four roles. Then I decide.
That’s exactly how the writer model got replaced. The weekly check flagged Qwen3.8 27B as a likely upgrade, I said go for it, and it got pulled, benchmarked, tested on a writing task, a Word document and a browser lookup, and only then was the old one removed. That freed 17 GB.
For the software itself there’s one command, offline-ai-update. It updates every piece the normal, official way, reinstalls my glue on top, and then tests that everything still works: GPU, a chat answer, a tool call, and a quick read-only browser run. It ends with a before-and-after summary and only updates the security baseline if nothing failed. Open WebUI’s database gets backed up before it’s touched.
The design rule throughout was: nothing gets locked in. Every piece is the stock version, and all my changes live off to the side in their own folder. The one exception is browser-use, which is pinned on purpose because its interface changes between versions. The update tells me when there’s a newer one, and I can test it deliberately.
What it all costs
Disk-wise, the models take up about 127 GB, and the whole drive is sitting at around 227 GB used out of 1.9 TB. Memory-wise, the fast model plus document search uses about 26 GB, which leaves plenty of room. The smart model is the only one that really makes the box work for it.
Money-wise, after the hardware, the running cost is electricity. There’s no per-token bill, no subscription, and no rate limit. I can run the browser agent on a loop or throw a pile of documents at it and not think twice.
Where it lands
Is it as good as the frontier cloud models? No. The local models are less capable, they drift on long agent tasks, and the browser agent needs tighter, more specific instructions than I’d give a cloud tool.
But for the bulk of what I actually do day to day (Summarizing information, quick lookups, Identifying if something is important) it’s more than good enough. It’s fast, it’s private, and it doesn’t send me a bill.
Frontier models are great for building and for the hard stuff, and I used Claude Code to do most of the heavy lifting on this setup. But the day-to-day work can run right here, on a box the size of a lunchbox, with my data staying exactly where I put it.