Extensions/ComfyUI-EnvVariable
ComfyUI Extension

ComfyUI-EnvVariable

Minimal ComfyUI custom node that outputs an environment variable value by key.

By wtesler·Created 6 months ago·Updated 6 months ago· 1
wtesler/ComfyUI-EnvVariable
Nodes1
On cloudLocal install
Categoryutils
Stars1
Updated6 months ago
Readme

ComfyUI-EnvVariable

Minimal ComfyUI custom node that reads an environment variable by key and outputs it as a string.

<img width="607" height="278" alt="Node Preview" src="https://github.com/user-attachments/assets/26837b08-6c6b-4377-9eaa-a6308646ad50" />

Node

  • Name: Environment Variable
  • Input: key (STRING)
  • Output: value (STRING)

Behavior:

  • Returns os.environ[key] when present.
  • Raises KeyError when the key is missing.

Install

Option 1. Clone into ComfyUI/custom_nodes/:

git clone https://github.com/wtesler/ComfyUI-EnvVariable.git

There are no additional requirements to install.

Option 2. Search and download "ComfyUI-EnvVariable" from Custom Nodes Manager.

Environment Variable Setup

Set the variable either in System Environment Variables or in your ComfyUI launch script (set MY_KEY=...). Then fully close and relaunch ComfyUI so the process receives updated environment values.