I picked up a MacBook Pro with an M5 Max and 128 GB of unified memory a little while back, and my first real goal was to stop renting intelligence by the token. Not because cloud models are bad, but because every call my automations made carried context about my homelab: hostnames, paths, service names. That all lived comfortably in my notebook, yet I liked the idea of keeping it there. Cost was the second motivator, and simple curiosity was the third. Apple Silicon's unified memory means the GPU can address nearly all of your system RAM, so a laptop that would choke on a desktop GPU workload can often run a quantized model that would never fit in a normal graphics card.
The chip is the M5 Max and it happily chugs along, but the software stack around it is the interesting part. My daily driver is Qwen3.8 Flash Next, an open-weight MoE model from Alibaba. In full precision that family drinks more than 200 GB, a datacenter party trick rather than a laptop one, but a 128 GB unified-memory budget changes the math: the 4-bit quant sits in memory with headroom left over for the KV cache. And it's built for speculative decoding: an extra "MTP" draft head proposes several tokens at once and the main model verifies them in one pass, which is where a lot of the decode speed comes from. I run the 4-bit MLX quant from mlx-community, one of several community quants you can find on Hugging Face by searching the model name. If you want a deeper dive on running this model family locally, Unsloth's run-it-yourself guide covers quantization and speculative decoding options in more detail than I can here.
Running the model directly from a script is fine for tinkering, but everything got cleaner when I moved to oMLX, an Apache-2.0 inference server built on Apple's MLX framework. It sits in the menu bar, exposes an OpenAI-compatible API on my LAN, and handles continuous batching for when several things want to chat at once. Its trick that sold me is the tiered KV cache: conversation caches live in RAM and spill to SSD instead of being recomputed, so long agent runs don't burn their context budget babysitting your prompt cache. The GitHub README explains the architecture best, and if you want a walkthrough of wiring a whole server around it (tunneling, API auth, models on an SSD), that's worth an hour. The Pinggy writeup of oMLX and the AnythingLLM integration guide are both good background reads.
A served model is still just an API endpoint until something points an agent at it. That's where OpenCode comes in, and it's a big part of why this setup works for me. Two reasons I picked it over Claude Code.
The first is that it's terminal-first. I live in a terminal, so I want my coding agent to live there too, and I want the same one whether I'm on the laptop, SSH'd into a VM, or halfway through a playbook run. Claude Code does run in a terminal, but it wants to be the center of your editor's universe, and its best experiences run through the app or VS Code extension. OpenCode is happy being one more program on the prompt.
The second reason, and the bigger one: it isn't married to a vendor. Claude Code assumes you're paying Anthropic per token, and that's fine until a cron job or a script that runs forty times a day starts reading the meter. OpenCode speaks to 75+ providers and any OpenAI-compatible endpoint, including local models it auto-discovers, so the model behind the agent is a config line, not a subscription. I point it at my oMLX server running Qwen for the everyday work, and when a big refactor earns its keep I can switch to a hosted frontier model with a keystroke and keep the same shortcuts, agents, and sessions.
The honest reason I moved to Qwen isn't that Claude is dumb; on hard reasoning Claude is still sharper. It's that on everyday tasks, the work my automations actually are, the gap between the two had closed far enough I couldn't feel it in the output. I don't need my shell script to be brilliant, I need it to run at typing speed on a machine that can't ship my context to a third party, and that's what a 4-bit model on an M5 Max is: not as smart as the frontier models, but better than good enough, free to run, and always on, so I use it.
The other thing I'd been renting, without thinking about it, was an access tier. Claude Max runs about $100-200/month depending on tier, and it's capped: a five-hour rolling window plus weekly limits, so when my scripts ran chatty I'd sometimes bounce off the cap mid-run and wait for the window to roll. I was paying for the right not to think about the meter, and my favorite use case still made me think about it. So I moved the boring majority of my traffic over: shell scripts, note summarizing, a cron job or two, and OpenCode sessions on small scripts and playbooks. None of that asks for brilliance. It asks for fast, private and always on, and that's exactly what an M5 Max with 128 GB of unified memory does all day without touching a credit card. When a refactor really does need a frontier model, OpenCode dials Anthropic from the same prompt, and that class of work was always a minority of my traffic, so I pay per token if it runs at all, instead of keeping a subscription alive for it.
This is the longest stretch I've had a model that never phoned home, and I'm curious what it does with some more automation. If you want to test the water, start small. Any M-series Mac can run a starter stack, and the mflux project (MLX, MIT-licensed) can handle image models and more if you want to add those too. Their walkthrough video is also how I got started with it.
I served in the U.S. Army, specializing in Network Switching Systems and was attached to a Patriot Missile System Battalion. After my deployment and Honorable discharge, I went to college in Jacksonville, FL for Computer Science. I have two beautiful and very intelligent daughters. I have more than 20 years professional IT experience. This page is made to learn and have fun. If it's messed up, let me know. I'm still learning! :)