How to run ComfyUI with a rented GPU


A no-nonsense guide to renting powerful GPUs, launching ComfyUI, and actually enjoying the ride.

When you first dip your toes into the world of AI tools, everything feels like a smooth ride. You type a prompt into ChatGPT, and there you go โ€” instant results. You show it around โ€” applause. You click around in Midjourney or Runway, and bam โ€” pretty images, stuff is moving, no assembly required.

But eventually, you hit a point where you want to go a little deeper.

You donโ€™t just want to use AI โ€” you want to build with it. Control it. Understand (at least to a degree) how the magic happens. For me, this thought led me down the rabbit hole of ComfyUI.

What Is ComfyUI?

ComfyUI is a free, open-source tool for generating images and videos with AI โ€” built around a modular, node-based interface. Instead of just typing a prompt and hoping the AI gets it right, you design your own image generation workflows step by step.

ComfyUI is an image generation tool, thatโ€™s free to use. Its node-based UI is not nearly as hard to get into as you might think.

Each block (or โ€œnodeโ€) in ComfyUI represents a part of the process โ€” loading a model, interpreting a prompt, tweaking parameters, generating the image โ€” and you can connect and customize them however you like.

What makes ComfyUI stand out:

  1. Itโ€™s free and open-source, meaning anyone can use, extend, or modify it, no subscription needed.
  2. It gives you much more control over the generation process.
  3. Itโ€™s powered by Stable Diffusion, but it doesnโ€™t lock you into one way of working.

If youโ€™ve ever wanted to peek under the hood of AI image generation and actually build your own system โ€” ComfyUI lets you do that, without needing to pay for some closed, black-box platform.

The node-based interface might seem a bit daunting at first, but youโ€™ll realize quickly, that ComfyUI is a modular, visual sandbox that gives you actual control over what you create โ€” And thatโ€™s where things get exciting.

How to Get Started with ComfyUI

Technically, thereโ€™s nothing stopping you from downloading ComfyUI to your computer and running it from there โ€” but get ready to wait. A lot. AI Models like ComfyUI use a lot of your graphics cardโ€™s capacity, and if youโ€™re not running a super-high-end gaming setup, things will be slow.

Especially when youโ€™re still figuring out what all the settings do, waiting several minutes just to get an image full of artifacts isโ€ฆ less than ideal. Thatโ€™s why we will be renting out some GPUs to do the heavy lifting for us. Donโ€™t worry, itโ€™s surprisingly simple and involves no commitment.

When I first got started, this is what came out after 5 minutes of waiting. So better rent a decent GPU.

There are generally two ways to go about it:

One is the just-a-few-clicks-template-way โ€” simple and fast, but with a little more jank.

The other is a manual CLI based setup โ€” with all the power, and all the responsibility that comes with it.

Ready? Letโ€™s go.

Setting Up ComfyUI Using a Template

This oneโ€™s pretty simple. Weโ€™ll just rent a GPU and get a link to open a pre-installed version of ComfyUI right after. You can start using it immediately โ€” no setup, no stress. And it really sounds like more commitment than it is. Our provider of choice here is CloudRift.

CloudRift is a GPU provider that lets you rent high-performance models like NVIDIAโ€™s RTX 4090 and RTX 5090 for a decent hourly price. No long-term commitment โ€” just pay as you go.

When youโ€™re picking a GPU on CloudRift the selection might look different to you, depending on whatโ€™s available, but an RTX 4090 is always a good choice.

Hereโ€™s how to get started:

  1. Go to โ€Šcloudrift.ai and log in.
  2. Add credits (10 USD is more than enough to get started).
  3. Click โ€œNewโ€ to start setting up your instance.
  4. Select Container Mode.
  5. Pick your GPU (if youโ€™re not sure, start with the cheapest โ€” even low-end ones handle basic workflows surprisingly well).
  6. Under the Select Software tab, choose Recommended.
  7. Look for the template called ComfyUI-FLUX.1-Schnell under Image Generation. Select it and confirm.
  8. Click โ€œDeployโ€ and wait a minute while your instance spins up.
  9. In the dashboard, youโ€™ll see a summary of your instance โ€” click Connect, then open the link in the window that pops up. There, youโ€™ll also find a lot of helpful resources on how to use ComfyUI.

The new browser window that pops up should look a little something like this.

Setting Up ComfyUI Using the CLI (aka the more complex way)

As mentioned before, using the template lets you get started right away. Through the Manager menu in ComfyUI, you can even install updates, additional tools, and plugins relatively easily.

But I found that by setting everything up manually, I got a much better picture of how it all works โ€” and I could be more intentional and precise with my setup.

So, hereโ€™s the advanced version:

Letโ€™s start with the basics: CLI = Command Line Interface. Itโ€™s a tool that lets you interact with services (like your rented GPU) using text commands instead of clicking buttons. If youโ€™re on a Mac, just open Terminal. On Windows, itโ€™s CMD or PowerShell.

In our case, weโ€˜d have to install an additional tool before we get started: the CloudRift CLI โ€” a lightweight command-line tool that connects to the cloud GPU you rented and lets you deploy applications (like ComfyUI) in just a few lines.Hereโ€™s how to install the CloudRift CLI.

Once thatโ€™s done, go to โ€Šcloudrift.ai to rent a GPU and letโ€™s get our hands dirty.

Step 1: Rent a GPU via CloudRift

CloudRift is a GPU provider that lets you rent out models like RTX 4090 and RTX 5090 for a pretty decent price.

  1. Go to Cloudrift.ai and log in.
  2. Add Credits
  3. Choose โ€œNewโ€ to start setting up your instance.
  4. Select Container Mode.
  5. Pick your GPU
  6. In the โ€œSelect Softwareโ€ tab, this time, select โ€œNo Containerโ€. This gives us a clean slate.
  7. Click โ€œDeployโ€ and wait a moment.

Renting your GPU should be pretty straightforward. Under the software tab, choose โ€œNo containerโ€.

Step 2: Launch ComfyUI with a Single Command

Now that youโ€™ve got your GPU running somewhere in the cloud, letโ€™s access it.

First, open your terminal and make sure youโ€™ve installed the CloudRift CLI โ€” otherwise, the rift command weโ€™re about to use wonโ€™t work.

First, check if your GPUs are actually available by typing:

rift cluster info

and hit enter.

This is what your terminal will show you. Here I rented two RTX 4090. The machine theyโ€™re running on has its own name and ip address, as seen in the first and second column.

Hereโ€™s the command youโ€™ll run in your terminal next:

rift docker -x <executor id> run -p 8188 -e WEB_ENABLE_AUTH=false –name comfyui -it –rm ghcr.io/ai-dock/comfyui:latest-cuda

Letโ€™s break it down:

  1. rift docker: Youโ€™re running Docker on your cloud GPU.
  2. -x <executor-id>: Optional as long as you only have one instance running โ€” Replace this with the name from rift cluster info (e.g. my-gpu-01).
  3. -p 8188: Opens port 8188 so you can access ComfyUI via browser.
  4. -e WEB_ENABLE_AUTH=false: Disables the login screen for simplicity.
  5. –name comfyui: Optional โ€” makes your container easier to reference later.
  6. -it: Runs the container in interactive mode.
  7. –rm: Removes the container when you stop it, so it doesn’t take up space.
  8. ghcr.io/ai-dock/comfyui:latest-cuda: This is the Docker image for ComfyUI (basically the app weโ€™re installing).

Youโ€™ll see some logs fly by โ€” messages about pulling the image, connecting tunnels, etc. Thatโ€™s normal. Give it a minute or two. Congrats, you just set up your first container and installed ComfyUI on it!

Quick Note: Keep It Running

If you close the terminal window now, your container stops running. Just keep it up and open a new terminal window to continue.

Step 3: Confirm Itโ€™s Up

In the new terminal window, use the following command:

rift docker ps

This will list all active containers. If ComfyUI is running, youโ€™ll see something like:

Then, open your browser and go to:

http://{node-IP-address}:8188

Replace {node-IP-address} with the IP from rift cluster info (or check the IP listed in your NeuralRack rental details).

This is what you should be seeing about now.

Congrats! Youโ€™ve officially launched ComfyUI on a rented GPU. Now letโ€™s make it do something.

Step 4: Download a โ€œCheckpointโ€

Before generating images, you need a checkpoint โ€” a trained model that tells ComfyUI how to turn your prompts into images. Think of it like the โ€œbrainโ€ of the operation. If ComfyUI is the body, the checkpoint is what actually knows what to draw.

Weโ€™ll use DreamShaper, a beginner-friendly model that works great out of the box. You can find other checkpoints on CivitAI.

Run the following to connect to your container:

rift docker exec -it comfyui bash

Now youโ€™re inside the container โ€” itโ€™s like opening a terminal inside the rented machine.

Next, navigate to the correct folder:

cd /opt/ComfyUI/models/checkpoints/

And then run this to download DreamShaper V8:

wget https://civitai.com/api/download/models/128713 –content-disposition

(obviously, you can exchange this one for any other checkpointโ€™s download link)

This may take a minute or two depending on the model size and internet speed. Youโ€™ll see something like:

dreamshaper_8.safetensors 100%[====================>] 1.99G

When thatโ€™s done, exit the container with:

exit

Step 5: Start Generating!

Open your browser (if itโ€™s not already), and go to:

http://{node-IP-address}:8188

You should see ComfyUIโ€™s interface. Load the default text-to-image workflow if itโ€™s not already there.

I went and updated ComfyUI through the manager menu, see here:

After youโ€™re done, make sure your DreamShaper V8 checkpoint is selected in the โ€œLoad Checkpointโ€ node.

Then comes the magic. Click the top box that says โ€œPromptโ€ and enter your prompt. The box below is the negative prompt, meaning what you put there, is what you donโ€™t want to be in the image.

Click โ€œQueue Promptโ€, wait a few seconds, and there it is: Your first custom image using ComfyUI + a rented GPU.

Iโ€™m a fantasy and video game nerd, so naturally, when presented with the opportunity to create crazy AI generated artwork, my mind goes to something like what you see below. But of course, you can go and put together whatever you fancy (no judgement). You could also try and load different checkpoints from sources like CivitAI. In this case, when you use this command, like you did earlier:

wget https://civitai.com/api/download/models/128713 โ€” content-disposition

you just replace the link with the download link of whatever model you found.

When youโ€™re done, donโ€™t forget: Shut it down

And one more thing: When youโ€™re done, go to your NeuralRack dashboard and stop the instance there to avoid charges.

TL;DR:

  1. ComfyUI is a free node-based AI image generation tool you can run in the cloud using CloudRift CLI.
  2. Renting a GPU via CloudRift gives you the power without the heat (or hardware costs) and significantly increases the speed with which content is created.
  3. You can start from scratch using a single command, download a model from CivitAI, and generate your first image in minutes.
  4. The process is surprisingly approachable โ€” even if the terminal looks scary at first.

Thats all for today. Stay curious, stay scrappy, and donโ€™t be afraid to type weird things into a black box.

Thatโ€™s where the good stuff happens.