Introduction > Installation: Supplement > Installation: Existing environment (ComfyUI)
Setup: Existing GUI workflow creation environment (ComfyUI)
You can connect your existing GUI workflow creation environment (ComfyUI) to this module and use it.
- ◯
- environment
It will work from the next commit onwards: [※1]
- ・
- ComfyUI: 2b653e8 (2025.07.11)
- ◯
- procedure
Follow these steps to set up and configure:
- ・
- Eliminates environment setup and acquires plugins required for connection
- ・
- Get Custom Node
- ・
- Copy the sample configuration files
- ・
- Change the address of the configuration files (if necessary)
- *1
- Supports asynchronous node descriptions (async - await) - in previous versions, the node execution itself will result in an error.
Eliminates environment setup and acquires plugins required for connection
By default, this module creates a new container for the app (ComfyUI) - to prevent this, add the following plugin name to the following file: [1]
- ・
- cnnmmd/manage/cnf/cnfsrc_custom.txt
cnnmmd_xoxxox_appcmf - -
Get the libraries required to connect to the app (CompyUI):
$ cd cnnmmd/manage/bin $ ./manage.sh create cnnmmd_xoxxox_libcmf
- *1
- Since it runs on a container (as long as the ports used do not overlap), there should be no problem running it at the same time as the existing ComfyUI (if you also use it, you can flexibly change the operating status, such as port number, startup options, CPU/GPU compatibility, etc.).
Get Custom Node
Go to the app (ComfyUI) folder and grab the custom node from the following repository:
$ cd ${dirapp}/ComfyUI/custom_nodes $ git clone https://github.com/cnnmmd/comfyui_xoxxox_cnnmmd
Copy the sample configuration files
Copy the following custom node configuration files to the same folder, renaming them (removing the "_sample" part):
$ cp -p lib/params_cmf_sample.py lib/params_cmf.py $ cp -p lib/params_tlk_sample.py lib/params_tlk.py $ cp -p web/lib/params_tlk_sample.js web/lib/params_tlk.js
Change the address of the configuration files (if necessary)
Specify the relay server address and port. The method of specifying this varies depending on your ComfyUI installation:
- ・
- lib/params_cmf.py
# If you are running it directly on your computer (host side) (including Python virtual environments and Conda virtual environments): adrmid = "http://localhost:10001" # If running in a container (Docker): If you want to share the network between the relay server and the container: adrmid = "http://xoxxox_appmid" # If running in a container (Docker): If the relay server and container network are not shared: adrmid = "http://host.docker.internal:10001" # In cases other than those above (e.g. running on a different computer from the relay server): adrmid = "http://<address_host>:10001"
Specify the address and port of the web server (unless you have changed anything, the address will be the same as the relay server) - the way you specify this will vary depending on your ComfyUI installation (the web browser, which is the front end of ComfyUI, is independent of whether you have a container or not):
- ・
- web/lib/params_tlk.js
# If you are running it directly on your computer (host side) (including Python virtual environments and Conda virtual environments): export const UrlLib = 'http://localhost:10002/xoxxox/lib/shared_tlk.js'; export const UrlAud = 'http://localhost:10002/xoxxox/lib/worker_aud.js'; # In cases other than those above (e.g. running on a computer other than the relay server): export const UrlLib = 'http://<address_host>:10002/xoxxox/lib/shared_tlk.js'; export const UrlAud = 'http://<address_host>:10002/xoxxox/lib/worker_aud.js';