Mac mini as a server: the setup that keeps it running 24/7

Written by Jeff Pascal · Updated (macOS 26 menu names) · 5 minute read

In short

  • A Mac mini works well as a home or office server: Apple documents the setup, and Apple lists recent models at about 4 W at idle.
  • Four settings matter: no sleep, start up when power is connected, a way in from another computer, and your server app set to start by itself.
  • Automatic login only works with FileVault off. Decide that trade-off before you rely on the Mac mini restarting alone.
  • Finish with a power-cut test: pull the plug, plug it back in and check that your service answers without you touching the Mac.

Yes, a Mac mini makes a good small server. Apple documents the setup itself: stop the Mac mini from sleeping, set it to start up when power comes back, turn on the firewall, and give yourself a way in from another computer (SSH or Screen Sharing). Then make your server app start by itself, and test the whole thing by pulling the plug.

This guide is the checklist, with Apple's menu names as of macOS 26. Names can shift a little between versions.

What people run on a Mac mini server

Apple's own guide lists file sharing, Time Machine backups for the other Macs in the house, media servers, databases, local AI models and agentic AI tools. The common thread is a job that has to be there when you are not. A few examples:

  • a dental office in Austin that keeps a shared folder and a Time Machine target for three front-desk Macs;
  • a bakery owner in Manchester who runs a personal AI assistant that answers on WhatsApp and books orders while the laptop is closed;
  • a family media library that the TV can reach at any hour.

If your job is an AI assistant built on Claude Code, note that Claude Code needs macOS 13.0 or later (requirements). Check your version in Apple menu > About This Mac.

Why a Mac mini

  • Low power at idle. Apple lists the Mac mini (M6) with 16 GB at 4 W idle and 70 W maximum, and the M4 with 16 GB at 4 W and 65 W (Apple power figures). A server that mostly waits stays near the idle number.
  • Nothing that forces sleep. No battery, no lid. A laptop needs extra rules for both; see how to stop a Mac from sleeping.
  • Small and quiet. It fits on a shelf next to the router.

You need a display, keyboard and mouse once, for the first setup. After that it can run without them.

Step 1. Stop it from sleeping

Open System Settings > Energy and turn on:

  • Prevent automatic sleeping when the display is off
  • Wake for network access

Those are the desktop names from Apple's sleep and wake guide. The display can still turn off. Your services keep running.

If you prefer Terminal, the same result in one line:

sudo pmset -a sleep 0 womp 1

sleep 0 turns off the system sleep timer and womp 1 is "Wake for network access" (both from the pmset manual, man pmset).

Step 2. Start up after a power cut

In System Settings > Energy, open the Start up when power is connected menu and choose an option. That is Apple's current wording. On older versions it was a checkbox called "Start up automatically after a power failure". In Terminal, sudo pmset -a autorestart 1 does the same.

A small UPS (a battery box) for the Mac mini and the router rides out short outages, so the Mac never needs to restart for a flicker.

Step 3. Log in by itself, or not

After a restart, most apps that you start yourself only run once a user is logged in. Two choices:

  • Automatic login. System Settings > Users & Groups > Automatically log in as, then pick the account. Apple notes the menu is dimmed while FileVault is on (Apple: log in automatically). So this means turning FileVault off.
  • FileVault on. Safer. After each power cut or update restart, you type the password once, then everything starts.

With FileVault off, anyone who walks off with the Mac mini can read its disk. Keep it at home or in a locked room if you go this way.

Step 4. Turn on the firewall

System Settings > Network > Firewall, on. Apple recommends it for a server. If your server app stops answering other devices afterward, allow it through the firewall.

Step 5. Give yourself a way in

Apple lists three ways to manage a Mac mini server from another computer:

  • Remote Login (SSH), in System Settings > General > Sharing, for the command line.
  • Screen Sharing, in the same Sharing pane, to see the desktop from another Mac. From a Windows PC you need a third-party VNC client.
  • The server app's own tools, if it has a web panel or an app.

Set one of these up before you unplug the display. Apple also suggests giving the Mac mini a fixed IP address (DHCP with a manual address), so you always find it at the same place on your network. To reach it from outside your home, use a VPN, such as the one built into many routers, rather than opening ports on the router.

Step 6. Make your server app start by itself

Apple's guide ends with a warning: after a power outage or a macOS update, some server apps have to be relaunched by hand unless you set them to start automatically. How you do that depends on the app. Check its documentation for "start at login" or a service option. For an AI assistant, ask whoever set it up how it starts after a reboot.

Step 7. Decide on updates

In System Settings > General > Software Update, Apple lets you turn on automatic updates so security fixes install by themselves. Some people prefer to update a server by hand, at a time they choose, because an update restarts the Mac. Either is fine. Just pick one on purpose.

Network: cable beats Wi-Fi

Use an Ethernet cable if the router is close. A server that other devices depend on should not hang on a weak Wi-Fi signal. Wake for network access is also more reliable over Ethernet; the pmset manual describes it as a wake on an Ethernet "magic packet".

The power-cut test

  1. Unplug the Mac mini for ten seconds, then plug it back in.
  2. Do not touch it. Wait two or three minutes.
  3. From another device, use the service: open the shared folder, load the media library, or send your assistant a message.
  4. If it answers, the server comes back on its own. If it does not, check step 2 (start up when power is connected), then step 3 (login), then step 6 (the app's own start setting).

Is it worth it?

For a job that must run around the clock and is too small for a rented server, a Mac mini at home is a quiet, low-power answer. If you have no spare Mac, a Windows PC can do the same job; the settings are in how to stop your computer from sleeping. And if the job you want is an assistant that works for you while you sleep, that is what our personal AI assistant runs on.

If you would rather wire up your own always-on AI setup with others working on the same thing, Team of One is my free WhatsApp community for people learning to amplify themselves with AI.

Checked on 18 November 2026 against Apple's Mac mini server guide and the pmset manual.

Questions

Is a Mac mini good as a home server?

For light, always-on jobs, yes. Apple has its own guide for it, the M6 and M4 models draw about 4 W at idle by Apple's figures, and it has no battery or lid that can put it to sleep. For many hard drives or heavy virtual machines, a NAS or a bigger machine may fit better.

Can I run a Mac mini without a monitor?

Yes, after setup. Apple calls it a headless setup: turn on Screen Sharing or Remote Login first, so you can manage the Mac mini from another computer, then unplug the display.

Will a Mac mini turn back on after a power outage?

Only if you set it. In System Settings > Energy, choose an option in the "Start up when power is connected" menu. Your server apps also need to be set to start by themselves.

How much power does a Mac mini use running 24/7?

Apple lists 4 W at idle and 70 W at maximum for the Mac mini (M6) with 16 GB of memory, and 4 W and 65 W for the M4 with 16 GB. The Pro models with 64 GB draw more: 6 W and 145 W for the M5 Pro, 5 W and 140 W for the M4 Pro. A server that waits most of the time sits close to the idle figure.

Should I turn off FileVault on a server Mac?

Only if the Mac sits somewhere safe. Automatic login does not work while FileVault is on, so with FileVault on you type the password once after each restart. With it off, anyone who takes the Mac can read the disk.

Sources

  1. Apple Support: Set up your Mac mini as a server: prevent sleep, firewall, start up when power is connected, Remote Login, Screen Sharing, headless use, checked 18 November 2026
  2. Apple Support: Mac mini power consumption: Mac mini (M6) with 16 GB, 4 W idle and 70 W max; M5 Pro with 64 GB, 6 W and 145 W; M4 with 16 GB, 4 W and 65 W; M4 Pro with 64 GB, 5 W and 140 W, checked 18 November 2026
  3. Apple Support: Set sleep and wake settings for your Mac: on a desktop, System Settings > Energy, "Prevent automatic sleeping when the display is off", "Wake for network access", checked 18 November 2026
  4. Apple Support: How to log in automatically to a Mac user account; the option is dimmed when FileVault is turned on, checked 18 November 2026
  5. ss64.com (copy of the macOS man page): pmset manual page: sleep 0 disables the system sleep timer, womp = Wake for network access, autorestart = restart on power loss (man pmset in Terminal), checked 18 November 2026
  6. code.claude.com: Claude Code system requirements: macOS 13.0 or later, checked 18 November 2026

Free WhatsApp community

Learning AI? Learn it on real work.

In “Team of one” I post what I actually tried on my own work. Most of it is in Romanian, but ask in English any time and we will work it out together.

Join the community