A streamlined launcher for running ComfyUI natively on Apple Silicon Macs.
Automated setup, local virtual environment, and nightly PyTorch — zero hassle.
comfyui-mac-launcher/
├── comfyui/ # ComfyUI clone target directory
├── install.sh # Dependency checker & full installer
├── launch.sh # ComfyUI launcher (uses local venv)
└── Update Scripts/
├── update-comfyui.sh # Pull latest ComfyUI changes
└── update-torch.sh # Upgrade to latest nightly PyTorch
git clone <this-repo-url>
cd <repo-folder>chmod +x install.sh launch.sh "Update Scripts/update-comfyui.sh" "Update Scripts/update-torch.sh"To execute .sh scripts you need to be where there are.
Clones ComfyUI, creates a local virtual environment, and installs all dependencies:
./install.sh./launch.shcd Update\ Scripts./update-comfyui.shcd Update\ Scripts./update-torch.shWeb Interface — Once ComfyUI is running, open your browser at: http://127.0.0.1:8188
Startup Time — First launch may take longer depending on your machine's specs and initialization time. Please be patient.
Clean Shutdown — To ensure ComfyUI is fully stopped:
- Close the terminal running
launch.sh - Open Activity Monitor (
Applications → Utilities → Activity Monitor) - Search for any remaining
pythonprocesses and terminate them if needed
- Verifies Homebrew is installed (exits with instructions if not)
- Installs
python@3.13via Homebrew if not already present - Clones or updates ComfyUI into
./comfyui - Creates or reuses a local virtualenv at
./comfyui/.venv - Upgrades
pipinside the venv, then installs nightly PyTorch + torchvision (CPU):./comfyui/.venv/bin/python -m pip install --pre torch torchvision \ --index-url https://download.pytorch.org/whl/nightly/cpu
- Installs ComfyUI's Python dependencies:
./comfyui/.venv/bin/python -m pip install -r comfyui/requirements.txt
- Clones or updates ComfyUI-Manager into
comfyui/custom_nodes/
- Uses
./comfyui/.venv/bin/pythonto runcomfyui/main.py - Forwards any additional arguments passed to the script
- Fetches and rebases the latest ComfyUI commits (
fetch + pull --rebase) - Updates any git submodules if present
- Reinstalls project dependencies in the local venv
- Verifies the
comfyui/directory and local venv exist - Upgrades
pipinside the venv - Installs the latest nightly build of PyTorch and torchvision (CPU)
The entire comfyui/ folder (including .venv) can be moved to another Apple Silicon Mac.
Note: Ensure
python3.13is available on the target machine if you need to recreate the venv. For maximum portability, simply run./install.shon the new machine — it will handle everything from scratch.
| Requirement | Notes |
|---|---|
| Apple Silicon Mac | M1 / M2 / M3 / M4 series |
| macOS 13 Ventura+ | Recommended |
| Homebrew | Must be installed manually before running install.sh |
| Internet Connection | Required during install & update steps |
This project is released under the MIT License.
Made with ❤️ for the Apple Silicon community