confyui
KπX sovereign local image generation and editing daemon over ComfyUI.
Hardware-accelerated on Intel Arc (XPU) via PyTorch XPU wheels, with portable CPU and CUDA extras.
Philosophy
- 0 Magic: The CLI talks to ComfyUI's standard REST API via structured JSON graphs.
- 0 Manual Start: The first call (
generate,edit,inpaint) automatically starts ComfyUI in the background. - 0 Wasted RAM: An idle watchdog shuts ComfyUI down after
CONFYUI_IDLE_TIMEOUTseconds of inactivity (default: 30 minutes). - 0 Hardcoding: Paths expand
$HOMEat runtime and are 100% overridable via environment variables.
Installation
# Clone or navigate to the repository
cd ~/Labs/KpihX-Labs/AI/confyui
# Intel Arc workstation (XPU)
make sync-xpu
# or: uv sync --extra xpu
# Generic CPU fallback
make sync-cpu
# NVIDIA CUDA host
make sync-cuda
Environment Variables
| Variable | Default | Description |
|---|---|---|
CONFYUI_DIR |
~/RAW/comfyui-local/ComfyUI |
Path to the ComfyUI checkout |
CONFYUI_PYTHON |
$CONFYUI_DIR/.venv/bin/python |
Python interpreter used to run ComfyUI |
CONFYUI_HOST |
127.0.0.1 |
Bind address |
CONFYUI_PORT |
8188 |
Port |
CONFYUI_IDLE_TIMEOUT |
1800 |
Seconds of inactivity before auto-shutdown |
CONFYUI_SPAWN_TIMEOUT |
90 |
Max seconds to wait for daemon readiness |
CONFYUI_STATE_DIR |
~/.cache/confyui |
Directory for PID, logs, and heartbeat |
CONFYUI_DEFAULT_CKPT |
Realistic_Vision_V5.1_noVAE.safetensors |
Default checkpoint for txt2img & img2img |
CONFYUI_INPAINT_CKPT |
Realistic_Vision_V5.1_fp16-no-ema-inpainting.safetensors |
Default inpainting checkpoint |
Usage
1. Text-to-Image (generate)
# Minimal
uv run confyui generate "a red panda wearing a top hat on the moon, cinematic lighting"
# Full options
uv run confyui generate "a red panda wearing a top hat on the moon" \
--negative "blurry, low quality, artifacts" \
--width 512 \
--height 512 \
--steps 20 \
--cfg 7.0 \
--seed 42 \
--sampler euler \
--scheduler normal \
--model "Realistic_Vision_V5.1_noVAE.safetensors" \
--out panda_moon.png
2. Image-to-Image (edit)
Modifies an existing image based on a prompt. The source image is kept and only altered proportionally to --denoise (0.0 = unchanged, 0.45-0.60 = balanced modification, 1.0 = total repaint):
uv run confyui edit panda_moon.png "make the red panda wear a golden astronaut suit" \
--denoise 0.50 \
--steps 20 \
--out panda_astronaut.png
3. Inpainting (inpaint)
Repaints only the masked region (white pixels in the mask are regenerated, black pixels preserved):
uv run confyui inpaint portrait.png torso_mask.png "she wears a long red silk dress" \
--denoise 1.0 \
--steps 25 \
--out portrait_red_dress.png
4. Daemon Management
# Inspect status, uptime, PID, and idle time remaining
uv run confyui status
# List installed checkpoints
uv run confyui models
# Stop the daemon immediately to free RAM and VRAM
uv run confyui stop
Development
make help # Show available targets
make check # Lint (ruff), format check, compile, pyright, pytest
make smoke # Fast sanity check of CLI and imports
make demo # Run a real 12-step test generation
Metadata
Release files for confyui 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| confyui-0.1.0.tar.gz | 11.2 kB | Without provenance | Details for confyui-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| confyui-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for confyui-0.1.0-py3-none-any.whl |
Total release size: 24.3 kB
Release files / confyui-0.1.0.tar.gz
| Download URL | confyui-0.1.0.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04eca39f97515efeac3c013b3bd12b7321641fba33982a4799dcf673f882b931
|
|
BLAKE2b-256 checksum How to use checksums |
4eb717a33970393cf34932d82aebc577a62b99f4883ace2464f071183d7cb5c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / confyui-0.1.0-py3-none-any.whl
| Download URL | confyui-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8c77eb235d61a492b31f67074797646e71510ba0d9b9c79756e8fd4134d6d2d
|
|
BLAKE2b-256 checksum How to use checksums |
182963b8db548f761ab9893c5f668f42c59d880687fd27a9744afb35b3a2e898
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for confyui 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.