M4 Mac mini Development Environment Setup Notes (Docker, Local LLM)

I set up a new development environment on a 16GB M4 Mac mini. I used to use an Intel MacBook Pro, and just turning on Docker made the fans spin, which was stressful, but now it's quiet.

The setup order was roughly as follows.

1. Install Homebrew and organize basic CLI tools (git, jq, ripgrep, fzf)

2. Replace Docker with OrbStack. It's lighter than Docker Desktop and builds faster.

3. Use VS Code and Cursor side by side. Simple edits in Cursor, heavy debugging in VS Code.

4. Install Ollama and keep only qwen2.5-coder 7B or so locally. On 16GB, that's about right.

5. Organize the terminal with iTerm2 + zsh + starship.

The downside is the 16GB of RAM. If you run multiple Docker containers and a local model, it starts swapping. If you're serious about using local LLMs, I recommend 24GB or more.

Still, I'm fully satisfied with it for development. It uses little power and is almost silent, so it's great for working at night.

by 취준생김씨154

10 answers

Oh, I didn’t know that.

by 문과출신개발자1 · ▲0

OrbStack is seriously great lol. Switching from Docker Desktop feels like a whole new world. It handles build cache well and uses less memory, so the difference is huge on 16GB.

by 코딩하는곰542 · ▲0

Same here. I had a hard time with the fan noise on an Intel MacBook, and how quiet it is really is a big advantage.

by AI덕후609 · ▲0

I feel like running a local LLM on 16GB is asking too much. Even with Qwen 7B, I was hitting swap when using a long context—wouldn't it be better to just use an API?

by 스타트업러295 · ▲0

Do you have a source? If there’s benchmark data showing OrbStack builds faster, please share a link.

by 월급루팡166 · ▲0

Agreed

by 주말개발자676 · ▲0

Running Cursor and VS Code side by side—after a while, you end up settling on just one. I only use Cursor. These days, even heavy debugging can all be done in Cursor.

by 스타트업러178 · ▲0

Measuring the Mac mini's power consumption is truly surprising. Even if you leave it on all the time, the electricity bill is almost nothing. That said, the 16GB swap issue is also tied to SSD lifespan, so I'd recommend monitoring your swap usage. If you check with vm_stat or iStat Menus, you'll find it kicks in more often than you'd think.

by 무한도전러370 · ▲0

There are also cases where people switched from starship back to oh-my-zsh because the prompt got slow, so keep that in mind. Even enabling just a few plugins makes a noticeable difference.

by 궁금한사람80 · ▲0

Well, that's a bit... Running multiple Docker containers and an LLM at the same time on 16GB is an unreasonable combo to begin with, and if that's the plan, shouldn't you go with 24GB from the start? Like I said in the post, the conclusion ends up being "spend more money" lol

by 코딩하는곰399 · ▲0