ArticlesHow-to
A headless Mac mini: reach its desktop without a monitor
A headless Mac mini, one with no monitor, makes a good home server or an always-on computer for AI coding agents. You still need its desktop now and then. Turn on Apple’s remote access once while a display is attached and you can reach the Mac mini from another Mac at home; add Naytto to reach it from any browser, anywhere. Here is what each route needs, and what still takes someone at a screen.
Before you unplug the monitor
With a display, keyboard and mouse attached, open System Settings › General › Sharing and turn on:
- Screen Sharing, for the desktop. Remote Management has to be off; the two can’t be on together.
- Remote Login, for SSH. Apple’s guide shows the exact
sshcommand for the Mac under Remote Login: On.
Turn them on there, in System Settings. Switched on another way, such as with launchctl, Screen Sharing gives Naytto a black screen later.
Also decide what happens after a restart. With FileVault on, a restarted Mac stops at FileVault’s unlock screen before macOS starts. On Apple silicon with macOS 26 or later, FileVault can be unlocked over SSH if Remote Login is on and the Mac is online. Automatic login needs FileVault off.
Mac mini remote access with Apple’s tools
From another Mac on the same network, open the Screen Sharing app, click Network in the sidebar and connect to the Mac mini, or type its name, such as Sams-Mac-mini.local, under New Connection. Apple’s steps cover the rest.
If both Macs have Apple silicon and macOS Sonoma 14 or later, choose High Performance: it draws one or two virtual displays up to 4K, which suits a Mac mini with nothing plugged in. Our Screen Sharing guide covers both modes, VNC apps and the trouble with reaching it over the internet: Apple describes it only for your own network.
A Mac mini server for AI agents
An AI coding agent mostly needs a terminal. Remote Login gives you one over SSH at home. Naytto adds a terminal in the browser once you turn on Allow terminal in the Naytto app: the shell runs as you and survives a browser disconnect, so a long agent run keeps going. It ends when Naytto quits or updates, or the Mac restarts. When the agent opens a browser or asks for a click, connect to the desktop instead.
Remote desktop to a Mac mini with Naytto
Naytto needs a Mac mini with Apple silicon on macOS 15 or later. Set it up over SSH with the Terminal guide:
- Run
curl -fsSL https://naytto.com/install.sh | shon the Mac mini, then add it to your account withnaytto add. - macOS lets only someone looking at the Mac’s screen turn on Screen Recording and Accessibility, once. With Screen Sharing already on, choose Finish setup for the Mac in your computers at app.naytto.com: the browser shows the Mac’s own Screen Sharing, you sign in with its account name and password and turn both on, and the view switches to Naytto’s. Without Screen Sharing, plug a display in for this step.
- Run
naytto keep-reachable alwaysso the Mac doesn’t sleep, since Naytto can’t wake a sleeping Mac. The first time, its helper needs one approval in System Settings; with no display, connect from another Mac with Screen Sharing and switch on Naytto under App Background Activity. Then run the command once more.
Then sign in at app.naytto.com from any browser and choose Connect. By default the Mac draws a virtual display sized to your browser window, at its pixel density; Mac screen switches to the physical display instead.
After a restart
With Sign-in screen access on, Naytto can show the Mac mini’s login window before anyone signs in. It’s in early access: testing of locking, signing out and restarting isn’t finished, so try it once on your own Mac before you depend on it. FileVault’s unlock screen stays local, and Naytto never turns on automatic login. Mac login screen remote access covers setup and what works there.
When Naytto isn’t the right choice
- An Intel Mac mini. The Naytto app runs only on Apple silicon.
- Unattended restarts with FileVault on. Naytto can’t pass the unlock screen; Apple’s SSH unlock or someone at the Mac can.
- You only ever connect from home. Screen Sharing and Remote Login are free and built in.
- More than 25 Mac minis. Free covers 1 computer and the largest plan, Power, covers 25; see pricing.
Reach your computer from a browser
Naytto is free for 1 computer, with no card needed. Install it on the computer you want to reach, then connect from any browser.