Guide

Run ComfyUI on a GPU server for image generation

Last updated: 1 December 2026

ComfyUI is a node-based tool for running image generation models on your own GPU. This guide assumes the NVIDIA driver is installed.

Instant VPS from $7.99 a month

See Instant VPS plansHow ordering works

Install it

Create a Python environment and install ComfyUI and its requirements:

sudo apt install -y git python3-venv
git clone https://github.com/comfyanonymous/ComfyUI
cd ComfyUI
python3 -m venv venv
. venv/bin/activate
pip install torch torchvision torchaudio
pip install -r requirements.txt

Start it privately

Start the server on the local address only, then open a tunnel from your computer and visit http://127.0.0.1:8188 in your browser:

python main.py --listen 127.0.0.1 --port 8188
ssh -L 8188:127.0.0.1:8188 root@YOUR_SERVER

Add models

Download model files you are allowed to use into the models folders, for example the checkpoints folder, and restart ComfyUI. Check each model's licence before commercial use.

Tips

Need a GPU server?

See our GPU servers: NVIDIA T4 to H200, built to order, no ID documents, pay with Monero or Bitcoin. Use them within our acceptable use policy.

Questions and answers

How much GPU memory do I need?
Small models work with 8 GB or less; larger ones and higher resolutions want 16 to 24 GB or more.

Why not open the port to everyone?
The interface has no login; keep it on 127.0.0.1 and use the tunnel.

Where do the files go?
Outputs are saved in the ComfyUI output folder on the server.

Can I use it with a T4?
Yes, with smaller models and resolutions.

Related guides

Ready to try it? Instant VPS from $7.99 a month

See Instant VPS plansHow ordering works