Install Nodes in ComfyUI

When adding custom nodes, you will need to install them in both comfyui and comfystream conda environments.

Since ComfyUI is started in the comfyui environment, you can usually install nodes directly via ComfyUI-Manager. If you do this, you only need to install the nodes for ComfyStream.
  1. Change to the custom_nodes directory:
cd /workspace/comfyRealtime/ComfyUI/custom_nodes
  1. Clone the node repository:
git clone https://github.com/ryanontheinside/ComfyUI_RealTimeNodes.git
cd ComfyUI_RealTimeNodes

ComfyUI_RealTimeNodes is a collection of over 100 custom nodes for ComfyUI! Many can be used with ComfyStream to create custom workflows for real-time video processing.

  1. Activate the comfyui environment and install requirements:
conda activate comfyui
pip install -r requirements.txt

If not using RunPod, you may need to install the following packages in the comfyui environment before installing certain custom nodes:

Local Installation Only
pip install setuptools wheel ninja
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
pip install -U xformers --index-url https://download.pytorch.org/whl/cu124
  1. Proceed to Install nodes for ComfyStream each time you add a new node to ComfyUI.

Install Nodes in ComfyStream

After adding a custom node to ComfyUI, you must also install the dependencies in the comfystream environment:

  1. Start a new terminal session and navigate to the comfystream directory
cd /workspace/comfyRealtime/ComfyStream
  1. Activate the comfystream environments and install the custom node requirements. The --workspace flag should point to the directory for ComfyUI:
conda activate comfystream
python install.py --workspace ../ComfyUI

Testing the Custom Node Installation

To validate the installation of a new node:

  1. Start or restart ComfyUI after node installation
  2. Monitor the logs on startup for any IMPORT FAILED message when loading the new node
  3. Load or build a workflow that uses the new custom node
  4. From ComfyUI, export the workflow for ComfyStream: Workflow > Export (API)
  5. Run ComfyStream to use the workflow as a live AI video stream

Installing Additional Custom Nodes

Refer to Available ComfyUI Nodes for installation steps and sample workflows for all supported nodes