Skip to content

Latest commit

 

History

History
141 lines (109 loc) · 6.63 KB

CONFIG.md

File metadata and controls

141 lines (109 loc) · 6.63 KB

English · Français · Español · 日本語 · 中文

Configuring Open Manager

Settings Everything a user changes from the interface
Server switches What the machine allows, set when ComfyUI starts
Launch files Where switches and keys go
Access keys Hugging Face, GitHub and VirusTotal
Network Every host Open Manager contacts

Settings

Under Settings -> Open Manager, and in Open Manager Settings from the Open Manager menu, the Start menu or the Open Manager: settings command. That window holds every Open Manager setting by section, and an overview: the version and updates, the system, the server switches, each patch's state, and which access keys are set. Installed as the manager, it also offers to uninstall the official ComfyUI-Manager where its package or a ComfyUI-Manager folder is still there, keeping the file that loads Open Manager.

Every panel opens as a movable window, or centred on the page. One setting each.

Piece Default
OM Nodes Off
Download Manager On
Model Library On
Resource Monitor Strip off, Memory button on
Nodes in the sidebar On
Desktop Mode Off, and needs OPEN_MANAGER_ENABLE_DESKTOP=1

The registry address is BASE_URL in open_manager/registry.py, and BASE in open_manager/catalog.py for the offline copy. Both can point at a mirror or a private index.

Server switches

Environment variables, read once when ComfyUI starts. 1 turns a switch on. 0, or leaving it out, keeps the default. Set them in the file that starts ComfyUI, as in Launch files, and restart after changing one.

What ships on is closed with a NO_ switch:

Variable =1 =0 or not set
OPEN_MANAGER_NO_INSTALL Packs cannot be installed or removed Packs install and remove
OPEN_MANAGER_NO_GITHUB GitHub repositories cannot be added or installed They can
OPEN_MANAGER_NO_DOWNLOADS Models cannot be fetched They can
OPEN_MANAGER_NO_RESTART Open Manager cannot restart ComfyUI It can
OPEN_MANAGER_APPROVED_ONLY Only versions the registry lists as active install. No GitHub repositories Flagged versions and GitHub repositories install too

What ships off is opened with its own:

Variable =1 =0 or not set
OPEN_MANAGER_ENABLE_DESKTOP Desktop Mode can be switched on in the settings Desktop Mode is hidden
OPEN_MANAGER_ENABLE_FILES The file browser can be switched on in the settings The file browser is hidden
OPEN_MANAGER_FILE_WRITES The file browser renames, moves, copies and deletes files, makes folders, and saves text files and pictures. Media Assets can delete output files The file browser only reads
OPEN_MANAGER_ALLOW_BANNED Versions the registry has banned install, whatever the setting says The setting decides
OPEN_MANAGER_REPO_DOWNLOADS Whole Hugging Face repositories in ComfyUI-Manager's model list download, configs included Only single model files download

The server refuses what a closed switch governs and names the variable. Desktop Mode and the file browser are hidden rather than refused, and their settings do nothing until the machine opens them.

Desktop Mode is served by ComfyUI's own server: no second port, no second login. On Vast.ai, VASTAI.md has an image with it switched on.

Launch files

Each variable goes in the file that starts ComfyUI, above the line that runs it. These open Desktop Mode and the file browser, give a Hugging Face key, and start ComfyUI with Open Manager as its manager. As a custom node, leave out --enable-manager.

Windows portable. run_nvidia_gpu.bat, in the ComfyUI_windows_portable folder. No spaces around =.

@echo off
cd /d "%~dp0"
set OPEN_MANAGER_ENABLE_DESKTOP=1
set OPEN_MANAGER_ENABLE_FILES=1
set HF_TOKEN=hf_xxx
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --enable-manager
pause

Linux and macOS. run.sh, in the ComfyUI folder. venv is the folder your environment is in; drop that line if python already is ComfyUI's.

#!/usr/bin/env bash
cd "$(dirname "$0")"
source venv/bin/activate
export OPEN_MANAGER_ENABLE_DESKTOP=1
export OPEN_MANAGER_ENABLE_FILES=1
export HF_TOKEN=hf_xxx
python main.py --enable-manager

Run chmod +x run.sh once, then start ComfyUI with ./run.sh.

A list is one value, comma separated: set OPEN_MANAGER_MODEL_HOSTS=civitai.com,cdn.civitai.com. The lists are in DOWNLOADS.md.

Access keys

Optional. Keys come from environment variables only. Access keys in the Open Manager menu shows which are set and by which variable.

For Variables Get one at
Gated and private models HF_TOKEN, HUGGING_FACE_HUB_TOKEN, OPEN_MANAGER_HF_TOKEN huggingface.co/settings/tokens
Starring, higher rate limit GITHUB_TOKEN, GH_TOKEN, OPEN_MANAGER_GITHUB_TOKEN github.com/settings/tokens
Scanning an install VIRUS_TOTAL_KEY, VIRUSTOTAL_API_KEY, OPEN_MANAGER_VIRUSTOTAL_KEY virustotal.com/gui/my-apikey

The value is the key itself: set HF_TOKEN=hf_xxx on Windows, export HF_TOKEN=hf_xxx on Linux and macOS, in the file that starts ComfyUI. See Launch files.

A GitHub token raises 60 anonymous calls an hour to 5,000. Without one, pack pages still show README, gallery and versions.

Starring needs a GitHub token that may read and change stars: a fine-grained token with the Starring account permission set to read and write, or a classic token with public_repo. Without one, a pack page shows its star count only.

Network

Open Manager reads the Comfy Registry live. What it contacts:

Host When
api.comfy.org Browsing and installing
cdn.comfy.org Downloading a registry version to install
codeload.github.com Downloading a GitHub repository to install
raw.githubusercontent.com Licences, READMEs, images
api.github.com Pack stats and gallery, branches, tags and commits, starring, licence lookup
pypi.org Checking for a newer Open Manager
www.virustotal.com Scanning an install, with a key
huggingface.co, github.com and their download hosts Model downloads. OPEN_MANAGER_MODEL_HOSTS adds others
Wherever a pack points Pack icons. README and gallery images given as absolute URLs, unless Read pack README and repository metadata is off