Installation¶
Requirements¶
- ComfyUI with Python 3.13+ (see
pyproject.toml) - Dependencies are installed automatically on node load when
auto_install_depsis enabled (default:trueinconfig.json)
Automatic dependency installation¶
On startup, MSS-Login installs dependencies into ComfyUI's Python environment (sys.executable):
- Detect the PyTorch backend (before downloading wheels):
- macOS: Metal / MPS via PyPI (
requirements_metal.txt). CUDA indexes are not used on darwin. - Linux / Windows: read the NVIDIA driver (
libcuda/nvidia-smi). Prefer cu130 (https://download.pytorch.org/whl/cu130) when the driver reports CUDA 13+, otherwise cu128, otherwise CPU (https://download.pytorch.org/whl/cpu). - Overrides:
USE_CPU=1forces CPU wheels;USE_CUDA=1prefers CUDA even if auto-detect is inconclusive. - UV first —
uv pip installusing the matching requirements file (requirements_metal.txt,requirements_cuda.txt, orrequirements_cpu.txt), thenpyproject.tomlif needed. - pip fallback — if UV is missing or fails, the same requirements file is installed with
pip install -r.
Optional dotenvx CLI is installed best-effort via python-dotenvx postinstall; failure does not block the node.
Disable auto-install¶
- Config: set
"auto_install_deps": falsein your data-dirconfig.json - Environment: set
AUTO_INSTALL_DEPS=0(orfalse/no) to disable even when config istrue
Manual install¶
From the extension directory, using ComfyUI's Python:
# Preferred (UV)
/path/to/comfy/python -m uv pip install --python /path/to/comfy/python .
# macOS (Metal / MPS from PyPI)
/path/to/comfy/python -m pip install -r requirements_metal.txt
# Linux/Windows CUDA 13+
/path/to/comfy/python -m pip install -r requirements_cuda.txt \
--extra-index-url https://download.pytorch.org/whl/cu130
# Linux/Windows CUDA 12.x
/path/to/comfy/python -m pip install -r requirements_cuda.txt \
--extra-index-url https://download.pytorch.org/whl/cu128
# Linux/Windows CPU only
/path/to/comfy/python -m pip install -r requirements_cpu.txt \
--extra-index-url https://download.pytorch.org/whl/cpu
See utils/install_deps.py for the full install logic.
Steps¶
- Install the node Place the extension in ComfyUI's custom nodes directory:
ComfyUI/custom_nodes/ComfyUI-MSS-Login/
Or clone:
cd ComfyUI/custom_nodes
git clone <repository-url> ComfyUI-MSS-Login
-
Restart ComfyUI so the node loads.
-
First launch On first run, register the initial admin user when prompted.
-
Configure Open Settings → mss-login to configure groups, IP rules, user environment, and NSFW settings.
Optional: Encrypted SQLite and recovery¶
- For encrypted SQLite (optional), install
argon2-cffiandsqlcipher3(see Configuration). - For MFA recovery (e.g. after changing
SECRET_KEY), see the recovery endpoint in the API Reference.