python main.py --port 8189

Category: AI/ML Tooling

python main.py --port 8189

Start ComfyUI on a custom port

Runs the ComfyUI server on port 8189 instead of the default 8188, useful when the port is taken or several instances must coexist. Point your browser at http://127.0.0.1:8189 afterwards. The port matters when scripts hardcode the API base URL.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.