Skip to content

cd .. && $ cat lightbox-comfyui-howto.md

Lightbox: ComfyUI from a Mac and an iPad – and how to set ComfyUI up

What ComfyUI is, how to install it on whatever GPU you have (or don't), where models and workflows come from – and Lightbox, a first draft of a native Mac and iPad app that drives it.

---
commit
f73b81a
date
tags
[ lightbox , comfyui , image-generation , local-models , macos ]
stats
+1,741 words, 8 min read
---

ComfyUI is the most capable way to make pictures on your own hardware, and it looks the part: a browser tab full of boxes and spaghetti, like a modular synthesizer that outputs castles. I love it. I also wanted to use it from the couch, on an iPad, with a gallery that remembers how every picture was made – because “which seed was that again?” is the eternal question. So I started Lightbox, a native Mac and iPad app that talks to a ComfyUI server. It’s a first draft and changes every week, but it works well enough to talk about. And since setting up ComfyUI is where most people give up, that part comes first.

Lightbox

What ComfyUI is

ComfyUI is an open-source program that runs image (and video, and audio) models. Its README calls it a “modular diffusion model GUI, api and backend with a graph/nodes interface”, which is the polite way of saying: every step of a generation – load the model, encode the prompt, sample, decode – is a node, and a workflow is the graph you wire from them (ComfyUI on GitHub). Comfy Org maintains it, and running it locally stays free: “ComfyUI will always remain fully open-source and free for local users” (Partner Nodes overview).

Two things make it everyone’s favourite backend. New models usually run in ComfyUI first, often on release day. And everything you can click, you can also send as JSON to its HTTP API – which is exactly what Lightbox does, and what Krita’s AI plugin does too.

What you need (spoiler: less than you think)

The internet will tell you that you need a 24 GB NVIDIA card and a dedicated power line. You don’t.

  • No NVIDIA card? Fine. Comfy Desktop’s own words: a dedicated NVIDIA or AMD GPU “is recommended, but not required” (Desktop overview). AMD cards run through ROCm on Linux and Windows, Intel Arc through PyTorch’s XPU build.
  • A MacBook works. Apple Silicon, M1 and up, runs ComfyUI through Metal. It won’t win a race against a desktop GPU – make a coffee while it samples, maybe two for Flux – but it works, and the pictures are just as good. They just arrive with more suspense.
  • An old 8 GB card goes a long way. I run Krea 2 on an 8 GB NVIDIA card in a machine that’s seen better days, and the results are genuinely good. The trick is quantisation: the ComfyUI-GGUF node loads GGUF files, and its README notes that transformer models like Flux lose surprisingly little in the process, so they fit on small cards (ComfyUI-GGUF). For comparison, the Krita AI plugin asks for at least 6 GB and an RTX 2060 (krita-ai-diffusion), which is SDXL territory.
  • The big new models do like big cards. For FLUX.2 at high resolution, Comfy says “24GB+ strongly recommended” (Comfy blog). Nobody needs high resolution on the first day.
  • Disk: a model is 2 to 15 GB and more (model issues). You will collect them like trading cards. Put them on an SSD.

And if the card runs out of memory anyway, ComfyUI degrades gracefully: --lowvram, then --novram, and --cpu for the truly patient.

Installing ComfyUI

Four ways in, from “click next” to “I compile my own kernel”:

  1. Comfy Desktop – the recommended one, for Windows 10+ (x64 and ARM64), macOS 13+ on Apple Silicon and Linux (AppImage or .deb). Each ComfyUI copy it manages is a “build” that follows the stable release by default (Desktop overview).
  2. Windows Portable – a zip with Python and PyTorch inside, for NVIDIA or CPU. Unzip, run, done (portable).
  3. Manual install – git clone https://github.com/Comfy-Org/ComfyUI.git, then pip install -r requirements.txt and python main.py. Python 3.13 is the recommended version; on a Mac you need a PyTorch nightly, and the docs give the exact command (manual install).
  4. comfy-cli – pip install comfy-cli, then comfy install. It puts ComfyUI and the Manager in ~/comfy and fetches nodes and models from the command line, for people whose happy place is a terminal (comfy-cli).

When it runs, open http://127.0.0.1:8188. Before you download half of the internet, open the Templates sidebar: loading a template marks the models it’s missing and offers to download them into the right folders (templates). It’s the fastest way to a first picture that actually works – and to the first one that has six fingers.

Opening it to your network

Out of the box, ComfyUI only talks to the machine it runs on. For a Mac or an iPad to reach it, start it with --listen (all interfaces; the port stays 8188 unless you set --port). In Comfy Desktop, each build has a Startup arguments field for this (instance management). Lightbox also likes --preview-method auto, which streams previews while the picture is sampled – watching noise turn into a lighthouse never gets old:

python main.py --listen --preview-method auto

Two warnings from the docs, and they’re serious. “The ComfyUI server has no authentication by default.” Open it on your home network, not on the café Wi-Fi, or put a reverse proxy with a login in front of it (self-hosting). And with --listen, the Manager refuses to install node packs; its “Personal cloud” mode lifts that, on a machine you control.

Models: what goes where

ComfyUI looks for models in subfolders of models/. Comfy Desktop shares one folder between its builds, ~/ComfyUI-Shared/models on a Mac, so you don’t download a 12 GB model twice:

Folder What goes in it
checkpoints Whole models: SD 1.5, SDXL, Pony, Illustrious
diffusion_models The model part of split models: Flux, Flux 2, Z-Image, Qwen-Image (GGUF in unet)
text_encoders T5, CLIP-L, Qwen3 and other encoders for split models
vae Image decoders, e.g. ae for Flux
loras LoRAs: styles, characters, speed-ups
controlnet, clip_vision Guides; IP-Adapter models go into ipadapter, which its node creates
upscale_models Upscalers

The names come from ComfyUI’s own folder_paths.py, and the old unet and clip still work (folder_paths.py).

Where to get them:

  • Hugging Face – the official model files, usually linked from the ComfyUI docs and templates.
  • Civitai – the big community site for fine-tuned checkpoints and LoRAs, each with example pictures and the prompts behind them. It’s blocked in the UK (since July 2025) and Australia (since March 2026).
  • ComfyUI_examples – older but still updated example workflows per model, stored inside PNGs: drop the picture onto the canvas and the whole graph appears. Pure magic, or steganography, depending on how you look at it (ComfyUI_examples).

Custom nodes and the extras

Custom nodes add what the core doesn’t have, and there are thousands. ComfyUI-Manager installs and updates them, and is now built into ComfyUI: Comfy Desktop turns it on by itself; a manual install needs pip install -r manager_requirements.txt and --enable-manager (Manager install).

The ones Lightbox can use, all optional:

  • comfyui_controlnet_aux – extracts lines, depth and poses from a picture, for guides.
  • ComfyUI_IPAdapter_plus – “borrow from a picture”: reference, style, composition. It has been in maintenance-only mode since April 2025, but still does its job (IPAdapter_plus).
  • ComfyUI-Impact-Pack and Impact-Subpack – the face and hand fix. Yes, for the fingers.
  • ComfyUI-GGUF – the quantised models from above, the 8 GB card’s best friend.

The lazy (I mean: efficient) shortcut: the Krita AI Diffusion plugin can install a managed ComfyUI server with a set of recommended models and those nodes. Budget 10 GB at least, often 50 GB and more (installation). Lightbox connects to such a server like to any other.

Cloud models, if you must

ComfyUI also has Partner Nodes: nodes that call closed models over an API – GPT-Image, Grok Imagine, Kling, Luma and others – inside a normal workflow. They need a Comfy account and prepaid credits, and there’s no free tier. A catch for a server on the network: the direct login only works when ComfyUI is opened as localhost; from another machine you log in with an API key (Partner Nodes). Prefer your pictures to stay home? --disable-partner-nodes turns them off.

Once the server runs, Lightbox is the fun part. Enter the server’s address in its settings, and it takes it from there:

  • Presets that set themselves up. For every model on the server, Lightbox reads the file name, the details stored in the file and the LoRAs in use, and picks the sampler, steps, CFG, size and prompt style that engine was made for – four steps and no CFG for Flux 2 Klein, Danbooru tags for Illustrious. Every guess says what it was based on, so you can argue with it.
  • Configurator or nodes. The Generate panel is a short form. Press Nodes and a node editor modelled on ComfyUI shows the graph that will be sent – the spaghetti is still there, it just waits until you ask for it. Both are views of the same state: a LoRA added on one side shows up on the other. Groups, reroutes, subgraphs, mute and bypass work as in ComfyUI.
  • Workflows in and out. Import a workflow from a file or from the ones saved on your server, and export any graph back for ComfyUI. A workflow can also become a preset template: Lightbox fills in prompt, seed, size and sampling, so an engine it has never heard of runs as soon as ComfyUI has a working workflow for it. Future-proof, as far as anything is in this field.
  • The recipe. Every picture lands in a gallery with everything it was made with: the prompt as typed and as sent, preset, model, seed, LoRAs and guides. Use Settings brings it all back. No more “which seed was that”.
  • A canvas for the last mile. Layers, a magic wand, shadows, and Redraw Area or Edit with Instruction for the part that isn’t right yet. Usually the hands.

The composition editor in Lightbox

The full tour – presets for every engine, the node editor, the recipe, the canvas – is on the Lightbox project page.

There’s no download yet. Lightbox is open source and built in Xcode for macOS 14 or iPadOS 17 and later; the project page has the steps. The node editor is Mac-only for now – touch support on the iPad comes later, once I’ve figured out how to drag a noodle with a finger without hating it.

Where to find help

If you try Lightbox against your own server, tell me which engine broke first. There’s always one.