Dev.to AI 🤖 Ai 👁 0 📖 3 min read

Bought a Mac mini to run coding agents in 2026? 10 things I'd set up on day one

A Mac mini on a shelf, plugged into ethernet, running Claude Code or Codex while your laptop is closed in your bag. It sounds simple until the agent stops at 2 AM because the machine went to sleep, or you can't reach it

Bought a Mac mini to run coding agents in 2026? 10 things I'd set up on day one

A Mac mini on a shelf, plugged into ethernet, running Claude Code or Codex while your laptop is closed in your bag. It sounds simple until the agent stops at 2 AM because the machine went to sleep, or you can't reach it from a coffee shop.

Here's what I'd install and turn on before handing that box a single task, in the order I'd do it.

The foundation

1. Homebrew

Almost everything below installs with one brew install line, and brew upgrade keeps it all current. It's the first thing I'd run on any new Mac.

Cost: free and open source. brew.sh

2. The Energy settings you'll forget about

On a Mac mini, System Settings > Energy has the two switches that matter: prevent automatic sleeping when the display is off, and start up automatically after a power failure. A headless agent box should have both on.

Cost: built in.

3. Amphetamine

For the times you want finer control than a system setting. It keeps the Mac awake indefinitely, for a set time, while a specific app is running, or through Triggers you configure. Handy for "stay awake while this agent session is running, then go back to normal."

Cost: free on the Mac App Store. Amphetamine

Reaching it from anywhere

4. Tailscale

A private network between your devices, so your laptop and phone can reach the mini from anywhere without opening ports on your router. Once both machines are signed in, the mini gets a stable name you can SSH to.

Cost: the Personal plan is free (unlimited user devices, up to 6 users). tailscale.com

5. Remote Login and Screen Sharing

Both are built into macOS under System Settings > General > Sharing. Remote Login gives you SSH; Screen Sharing lets you see and control the desktop from another Mac with the built-in Screen Sharing app when a GUI prompt needs a click. Pair them with Tailscale and you rarely need anything else.

Cost: built in. Apple's Screen Sharing guide

Where the agents live

6. Ghostty

A fast, native terminal. The macOS app is built with Swift, AppKit and SwiftUI, so tabs and splits feel like a real Mac app. Nice for the moments you're sitting in front of the mini or screen sharing into it.

Cost: free and open source. ghostty.org

7. tmux

The single most important tool for a remote agent box. tmux lets you detach a session so it keeps running in the background, then reattach from a different terminal later. Start the agent inside tmux over SSH, close your laptop, and pick it back up from your phone or another machine.

Cost: free and open source. brew install tmux. tmux wiki

8. Claude Code

Anthropic's agentic coding tool. It reads your codebase, edits files and runs commands from the terminal, which is exactly what you want on a machine you mostly reach over SSH.

Cost: most surfaces need a Claude subscription or an Anthropic Console account. Install with curl -fsSL https://claude.ai/install.sh | bash. Claude Code docs

9. Codex CLI

OpenAI's lightweight coding agent that runs in your terminal. Having a second agent on the same box is useful when one is busy on a long task or you want a second opinion on a diff.

Cost: free CLI, used with a ChatGPT plan or an API key. openai/codex on GitHub

Keeping an eye on it

10. TokenBar

Two agents running unattended means two sets of limits resetting on their own schedules. TokenBar is a menu bar app that shows usage and reset times for Claude, Codex, Cursor, Gemini and Copilot in one place, so a quick look (or a Screen Sharing peek) tells you whether there's room for an overnight task. It doesn't add any quota; it only shows where you stand.

TokenBar showing Codex usage and reset times

It's built on Peter Steinberger's open source CodexBar (MIT) and credits the Pixel Agents project for its agent view.

Cost: $5/month Basic or $15 lifetime Pro, macOS 14+. tokenbar.site

Bonus: Stats

A free, open source system monitor that lives in your menu bar: CPU, GPU, memory, disk, network and more. Useful for spotting the moment an agent kicks off a build that pins every core.

Cost: free. brew install --cask stats. Stats on GitHub

The day-one install line

brew install tmux
brew install --cask ghostty tailscale-app stats

Then grab Amphetamine from the App Store, turn on Remote Login and Screen Sharing, and add Claude Code, Codex and TokenBar from their own sites.

What's on your always-on Mac that I missed?

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.