SuperAPIAI Directory

local-gpu-imagegen

github.com · AI images

Confirmation-gated local GPU image generation with ComfyUI: SHA-256 model identity, explicit license approval, evidence retention and human-in-the-loop runs.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsWindows · Linux

About this tool

Local GPU Imagegen is an MCP-first control plane for ComfyUI. It does not replace ComfyUI in generating pixels; instead, it provides authorization, reproducibility, auditing, and recovery capabilities around the generation process. ComfyUI handles image output, while Local GPU Imagegen ensures the entire pipeline is verifiable, confirmable, and rollback-capable.

Purpose

  • Run supported ComfyUI workflows from agents such as Codex without rebuilding the workflow.
  • Reuse your existing local image backend and models, without silent model downloads or switches.
  • Freeze each run's workflow, model identity, prompts, settings, seeds, budget, and output hashes into a persistent manifest for easy reproduction and auditing.
  • Separate "generated images" from "user-accepted final products": review at original resolution, then finalize with byte binding.

Key Capabilities

  • Cryptographic-grade model identity: verify models via identity information such as SHA-256; never load weights during the discovery phase, and never allow silent downloads or model switches during the generation phase.
  • Explicit approval and trust scopes: when using local_gpu_set_model_trust, first display the exact identity and obtain exact confirmation; private use and public evidence are separate scopes.
  • Persistent run evidence: routing, budget, attempt counts, image hashes, audits, and recovery actions are all retained in a machine-readable form.
  • Workflow registration: inspect and register supported ComfyUI API graphs rather than rewriting them into one-off scripts.
  • Three delivery Profiles: standalone illustration, presentation visuals, and UI visual assets share the same deterministic run and audit contract.
  • Auditable hot modification: immutable sub-run records retain/change the contract, and sequentially adopt prompt refinement, low-strength image-to-image, and explicitly confirmed inpainting.
  • Agent Skill: built-in skills can turn natural language requirements into catalog-gated, confirmation-required runs; they will not guess from checkpoint filenames or silently select a backend.
  • Optional managed startup (Windows portable only): register an existing portable root directory and start python_embeded\python.exe -s ComfyUI\main.py at 127.0.0.1:8188; it will not install ComfyUI or download models; an already running endpoint will be reused but never taken over or stopped; child processes started by the MCP process are stopped when the MCP exits only if the queue is empty.
  • Dependency-light MCP layer: protocol checks and tests use the Python standard library and do not require a GPU.

Usage Path A (existing environment): requires Python 3.11 or 3.12, Codex, an already running local ComfyUI instance, installed models, and a plain txt2img API workflow using a supported built-in topology. Running setup without --apply is read-only; --apply delegates to the client's official mcp add command, Local GPU Imagegen does not directly edit client configuration files and does not download models. Path B (Windows NVIDIA bootstrap): bootstrap status can reuse a verified portable root directory, checkpoints, and loopback endpoint; bootstrap plan shows the portable archive, checkpoints, byte limits, license URL, SHA-256, disk/VRAM requirements, and bounded rollback; bootstrap apply requires explicit confirmation. Downloads are resumable and never silent. Frozen scope: Windows 10/11 x64, NVIDIA RTX 20 series or newer, 10 GiB VRAM, 30 GiB free disk; Docker is not required. Other clients: Claude Code uses uvx local-gpu-imagegen setup claude-code --apply; remove entries with codex mcp remove local-gpu-imagegen or claude mcp remove --scope user local-gpu-imagegen; use uvx local-gpu-imagegen doctor to check backend readiness. DeepSeek Harness connects via the standard stdio MCP protocol and requires no setup command. Before PyPI release, you can install a verified wheel or source checkout, then use the equivalent local-gpu-imagegen verify and local-gpu-imagegen setup ... commands.

When to use

  • Users who need to call an existing ComfyUI workflow within an Agent.
  • Scenarios that require auditable model sources, approvals, and run records, and where silent downloads or switches are undesirable.
  • Need to produce illustrations, presentation visuals, or UI assets locally on a GPU according to a deterministic Profile.
  • Want to separate generation, review, and finalization, with a human making the final acceptance decision in the process.

Limitations

  • The host scope supported by v0.9 is Windows 10/11 x64 and NVIDIA; the py3-none-any wheel only indicates pure Python packaging, and does not represent a standalone Linux version or Linux-hosted generation support. Ubuntu CI only verifies platform-neutral MCP, packaging, existing backends, and unsupported-platform contracts; Windows runs the full portable bootstrap suite.
  • Requires an existing local ComfyUI instance and models; does not install backends, does not download models, does not convert UI-format JSON, and does not execute workflows that require unsupported custom nodes. Managed startup does not remove or manage existing custom nodes in the selected portable installation.
  • The golden path is plain sdxl-txt2img; sdxl-regional-txt2img and sdxl-two-stage-copy-subject remain experimental, are not part of the golden path, and provide no fallback from the plain route. The retained negative evidence does not support conclusions of visual quality improvement.
  • Image quality depends on the models and workflows provided by the user; this project does not modify diffusion algorithms, nor does it guarantee that prompt workflows will improve images. Review now treats changes to the requested product medium, subject, actual use, or asset slot as semantic replacement and constraint failure.
  • The retained no-regression gate ends with FAIL_WORKFLOW_REGRESSION, and does not support any public claim of superior image quality.
  • A fresh Windows/NVIDIA installation built from a user-approved ComfyUI archive and SDXL checkpoint reaches managed readiness, provides exactly seventeen MCP tools, and completes one reviewed non-human environment image, with the source hash and final hash byte-for-byte identical; artifacts remain local unless a separate sanitized export is performed, and are not packaged into the package. Two character attempts failed strict review on hands, eyes, or tail, so prominent anthropomorphic anatomical quality has not yet been established.
  • The animations in the documentation are deterministic simulated protocol demonstrations, not model outputs or evidence of image quality. Model-free tests cover protocol and backend contracts, not image quality, broader named-client generation, performance, or the full 9+3 acceptance.
  • Codex has retained one installed client generation, Claude Code generation still remains to be completed.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools