Skip to content

ComfyUI Setup

Shamik edited this page Mar 19, 2026 · 1 revision

ComfyUI GCP Set up

Clone https://github.com/karaposu/comfyui-on-cloud Run the following commands:

vi comfyui-on-cloud/src/install.sh
sudo systemctl start comfyui.service
vi comfyui-on-cloud/src/install.sh
# Reload systemd to recognize the new service
sudo systemctl daemon-reload
sudo systemctl enable comfyui.service
sudo systemctl start comfyui.service

Comfy CLI Installation

uv install comfy-cli
comfy  --install-completion
source ~/.bashrc
comfy --here install --fast-deps
comfy set-default ~/comfy

To connect a COMFYUI VM from gcp to local

gcloud compute ssh {comfyvm} --zone=us-central1-a -- -L 8000:localhost:8000

Start ComfyUI server

source /mnt/vol1/comfenv/bin/activate
#or path to the comfyUI folder
cd /mnt/vol1/ComfyUI/ 
source run_comfy.sh
#Any changes needed make in run_comfy.sh

Stop ComfyUI server

kill -9 $(lsof -t -i:8080)

Setting up login Password on Comfy

https://github.com/liusida/ComfyUI-Login/blob/main/README.md#resetting-a-forgotten-password

  1. Install ComfyUI-Login custom node
  2. Restart server from the manager
  3. Setup an username and password

Reset Password on Comfy

https://github.com/liusida/ComfyUI-Login/blob/main/README.md#resetting-a-forgotten-password

  1. Delete the PASSWORD file in /mnt/vol1/ComfyUI/login/
  2. Restart the server and set your password

Model Download

Public Model from CIVIT

CIVIT

wget --content-disposition https://civitai.com/api/download/models/132760?type=Model

Private Model from CIVIT

wget --content-disposition https://civitai.com/api/download/models/132760?token={api-token}

From Hugging Face

huggingface-cli download lllyasviel/control_v11p_sd15_inpaint

Resources

Move ComfyUI to production

https://modal.com/blog/comfyui-prototype-to-production Prototype to production with ComfyUI | Modal Blog

Clone this wiki locally