Guides, Tech

Install and Run ComfyUI on Mac mini (macOS) as a Server

Step-by-step guide to set up ComfyUI on a Mac mini with macOS and run it as a local or remote AI image generation server for creators and developers.

Step-by-step instructions using the example of the hosting provider PinVPS (pinvps.com) with remote access via VNC.

What is this article about?

ComfyUI is a graphical user interface (GUI) for working with Stable Diffusion and other open source image generation models using neural networks. In this article, we will explain how to deploy ComfyUI on a Mac mini running macOS and use it as a server: with remote network access, autostart, basic security settings, and Apple Silicon GPU (MPS/Metal) generation. The minimum requirements for comfortable operation are a Mac mini M2 with 16 GB of RAM.

Quick, step-by-step plan:

  • Prepare macOS and install the Xcode Command Line Tools.
  • Install a VNC client for initial access. Use RealVNC Viewer as an example.
  • Download ComfyUI for macOS (ARM64) and launch the setup wizard for the first time.
  • Install Git via Xcode CLT, Homebrew, or pkg.
  • Configure the environment and enable MPS (GPU on Apple Silicon).
  • Load models and perform the first render.
  • Some observations about VNC delays and alternatives to AnyDesk/TeamViewer.

Step 1. Install the VNC client (RealVNC Viewer) on your work PC.

We will connect to a Mac mini rented from PinVPS (https://pinvps.com/mac-mini/). Initial access is usually provided via VNC. If you are working on an Apple device, the VNC client is already built in. If you are using Windows, you will need to install it separately. Find “RealVNC Viewer” in the Microsoft Store and install the application. Alternative: winget (`winget install RealVNC.RealVNCViewer`).

Screen 01: Microsoft Store: selecting RealVNC Viewer
Screen 01: Microsoft Store: selecting RealVNC Viewer

Step 2. Connect to the Mac mini via VNC: enter the IP address, login, and password.

Enter the IP address and port (usually 5900), then use the username and password provided by PinVPS. This is not a RealVNC account. If necessary, check “Remember password.” If you are connecting from macOS, you can launch the VNC client via Finder → Go → Connect to Server… → enter vnc://IP address. If you see an encryption warning, this is normal for Mac mini in the default configuration from the provider.

Screen 02: RealVNC Viewer authentication window
Screen 02: RealVNC Viewer authentication window

Step 3. Download ComfyUI for macOS (Apple Silicon)

On your remote macOS desktop, open comfy.org → Install Now and click “Download for Mac.” Open the downloaded DMG (arm64) and drag ComfyUI to “Applications.” This is convenient for a quick smoke test; we will still configure server launch from the GitHub version later.

Screen 03: ComfyUI download page for macOS (ARM64)
Screen 03: ComfyUI download page for macOS (ARM64)

Step 4 — Install Git (ComfyUI requires it to install nodes)

ComfyUI Desktop uses git to install/update custom nodes. If the system reports that git is not found, install it using one of the following methods:

• Xcode Command Line Tools: `xcode-select –install`;

• Homebrew: `brew install git`;

• Installer from git-scm.com: download .pkg and follow the wizard.

If ComfyUI cannot see git due to PATH, add `/opt/homebrew/bin` to `/etc/paths.d/homebrew` and restart the session.

Screen 04: ComfyUI requests to install Git
Screen 04: ComfyUI requests to install Git
Screen 05: git-scm.com downloads page
Screen 05: git-scm.com downloads page

Step 5 — Install Homebrew and Git

If Homebrew is not yet installed:

/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)”

Then add the environment (Apple Silicon): `echo ‘eval “$(/opt/homebrew/bin/brew shellenv)”’ >> ~/.zprofile` and run `eval “$(/opt/homebrew/bin/brew shellenv)”`. After that, install git: `brew install git`.

Screen 06: Homebrew installation
Screen 06: Homebrew installation
Screen 07: Configuring shellenv and installing git via brew
Screen 07: Configuring shellenv and installing git via brew

Step 6. ComfyUI Wizard: Select GPU (MPS) and set environment

In the wizard, select MPS (Apple Metal Performance Shaders) — this is the GPU for Apple Silicon; leave CPU mode disabled. Specify the user data directory (for example, ~/Documents/ComfyUI); you can skip migration. Next, enable/disable auto-updates and click Install. The wizard will create a virtual environment and install PyTorch.

Important: on macOS, torch wheels are marked as cpu, but there is MPS support inside. For stability, add `PYTORCH_ENABLE_MPS_FALLBACK=1` to the environment. You can check the availability of MPS as follows:

python -c “import torch;print(torch.backends.mps.is_available())”

Screen 08: GPU selection: MPS (Apple Silicon)
Screen 08: GPU selection: MPS (Apple Silicon)
Screen 09: Path to install user data
Screen 09: Path to install user data
Screen 10: (Optional) Migration from an existing installation
Screen 10: (Optional) Migration from an existing installation
Screen 11: Desktop Application Settings
Screen 11: Desktop Application Settings
Screen 12: Installing the Python environment and PyTorch
Screen 12: Installing the Python environment and PyTorch

Step 7. Download the models and do the first render

Open Templates → Image Generation and download the example. If Missing Models pops up, download the recommended checkpoint automatically or place it manually in ~/Documents/ComfyUI/models/checkpoints/. Then, in Load Checkpoint, select the model and click Run. The results will appear in the output/ folder.

Screen 13: ComfyUI template gallery
Screen 13: ComfyUI template gallery
Screen 14: Missing Models: load the checkpoint in checkpoints/
Screen 14: Missing Models: load the checkpoint in checkpoints/
Screen 15: First successful render
Screen 15: First successful render

If VNC is running slowly

If you experience lag via VNC, try AnyDesk or TeamViewer—they are better suited to unstable networks. For security, use complex passwords, 2FA, and disable permanent access when it is not needed. In VNC itself, you can reduce the color depth and disable wallpaper to reduce traffic and speed up the update of the broadcast to your computer.

Conclusion

Setting up ComfyUI on a Mac mini turns your system into a compact yet powerful AI image server. Whether you rent it or own it, you can generate, experiment, and automate creative workflows from anywhere. Try it with PinVPS and experience full Mac performance for your AI projects.