A ComfyUI extension that adds user profile management with separate input/output folders and optional file encryption.
- Multiple Profiles: Create and manage multiple user profiles
- Custom Folders: Each profile can have its own input and output directories
- Password Protection: Secure profiles with password authentication
- File Encryption: Optionally encrypt your input/output folders when logged out (AES-256)
- Manual Encryption Control: Files are only encrypted when you choose to logout or safe exit
- Progress Feedback: Visual progress bar during encryption/decryption
- Native UI Integration: Profile selector button in ComfyUI's toolbar
This extension is tested on ComfyUI Portable / Desktop for Windows. It may work on other platforms but is not guaranteed.
- Open ComfyUI Manager
- Search for "User Profiles"
- Click Install
cd ComfyUI/custom_nodes
git clone https://github.com/femanzo/comfyui-user-profiles.git
cd comfyui-user-profiles
pip install -r requirements.txt- Download this repository as a ZIP file
- Extract to
ComfyUI/custom_nodes/comfyui-user-profiles - Install dependencies:
pip install cryptography
- Restart ComfyUI
- Click the profile button in the toolbar (or the floating button)
- Click "Create New Profile"
- Enter a profile name
- (Optional) Set a password
- (Optional) Set custom input/output folders
- (Optional) Enable folder encryption
- Click "Create Profile"
- Select a profile from the dropdown
- Enter password if required
- Click "Login"
When enabled, your input and output folders can be encrypted to protect your files. Encryption is manual - files remain unencrypted while you work and are only encrypted when you explicitly choose to do so.
To encrypt your files:
- Click "Logout" in the profile menu - encrypts files and logs you out
- Click "Safe Exit (Encrypt & Close)" - encrypts files, then you can close ComfyUI
Files are automatically decrypted when you log in.
Important: If you close ComfyUI without logging out or using Safe Exit, your files will remain unencrypted. This is by design to give you full control over when encryption happens.
For profiles with encryption enabled, the Safe Exit (Encrypt & Close) button provides a convenient way to encrypt and close:
- Click the profile button in the toolbar
- Click "Safe Exit (Encrypt & Close)"
- Watch the encryption progress
- Close the window when prompted
Note: Encryption requires a password. Without the password, encrypted files cannot be recovered.
Profiles are stored in:
ComfyUI/user/user_profiles/profiles.json
- Passwords are hashed using SHA-256 with a unique salt per profile
- File encryption uses Fernet (AES-128-CBC) with PBKDF2 key derivation
- Encryption keys are derived from your password - do not forget your password
- The
cryptographylibrary is required for encryption features
- ComfyUI (latest version recommended)
- Python 3.10+
cryptographylibrary (for encryption features)
- Check that
profiles.jsonexists inComfyUI/user/user_profiles/ - Check ComfyUI logs for any error messages
- Ensure
cryptographyis installed:pip install cryptography - Make sure you have a password set on the profile
- Check that the input/output folders exist and are accessible
- Verify the extension is in
ComfyUI/custom_nodes/comfyui-user-profiles/ - Check for Python import errors in the console
- Ensure all files are present (
__init__.py,profile_manager.py,encryption.py)
MIT License - see LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
This project uses Conventional Commits for automatic versioning and changelog generation.
Commit types:
feat:- New feature (bumps minor version)fix:- Bug fix (bumps patch version)docs:- Documentation onlystyle:- Code style changesrefactor:- Code refactoringperf:- Performance improvementtest:- Adding testschore:- Maintenance tasks
Examples:
feat: add profile export/import functionality
fix: prevent config loss on crash
docs: update installation instructions
See CHANGELOG.md for a detailed history of changes.

