Understand Standalone vs Client runtime
mainComfyScript supports two runtime modes depending on how the ComfyUI server is managed:
- Standalone runtime: The runtime starts and manages the ComfyUI server itself. Supports both Virtual and Real modes.
- Client runtime: The runtime connects to an existing, running ComfyUI server. Supports Virtual mode only.
| Feature | Standalone | Client |
|---|---|---|
| Virtual mode | ✔️ | ✔️ |
| Real mode | ✔️ | ❌ |
Standalone runtime also provides additional metadata in type stubs, such as the node's module name, to help identify the source of a node.