Skip to main content

ComfyUI Remote Gateway

Fail-closed routing policy for remote ComfyUI jobs.

This package is the independent Python policy core. It has no provider credentials, no GPU deployment template and no ComfyUI-loaded custom node. Remote execution requires both server policy and an explicit request from the browser. Invalid workflow references or a profile outside the allowlist fail closed.

Install

pip install comfyui-remote-gateway

Example

from comfyui_remote_gateway import RemotePolicy, route

policy = RemotePolicy.from_names(("image", "video"))
request = {
    "client_id": "operator-17",
    "prompt": {"1": {"class_type": "KSampler", "inputs": {}}},
    "extra_data": {"comfyui_remote": {"enabled": True, "profile": "image"}},
}

remote_job = route(request, policy, server_enabled=True)
assert remote_job is not None
assert remote_job.profile.name == "image"

Scope

This is not a ComfyUI extension and does not redistribute ComfyUI or custom nodes. Keep an integration that is loaded by ComfyUI, and any built image, under its own file-level license and provenance review. The reference implementation in this repository is MIT; it does not change the license of ComfyUI or other components used by an integrator.

Development

PYTHONPATH=src python -m unittest discover -s tests -v
uv build

License

MIT. See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

comfyui_remote_gateway-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

comfyui_remote_gateway-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file comfyui_remote_gateway-0.1.0.tar.gz.

File metadata

  • Download URL: comfyui_remote_gateway-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for comfyui_remote_gateway-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ef6d3690dd1ff09748d0276e5d74147590791d93ab0defcf2d1fab6bb84e2eba
MD5 e3faf628969b78db3d91b924e9e7aff3
BLAKE2b-256 b8cecfb950dc064f09aeb4dd211907748f06fbbbe9cf81ed70e9ddfcc3bed345

See more details on using hashes here.

Provenance

The following attestation bundles were made for comfyui_remote_gateway-0.1.0.tar.gz:

Publisher: publish.yml on Mihailorama/comfyui-remote-gateway

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file comfyui_remote_gateway-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for comfyui_remote_gateway-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 697fb3910aa02471cc4e183403954bf2bc5a8972923d9789beb1a0dd111d8897
MD5 28e366fcac720f5d96a1a8bb2c5f9d00
BLAKE2b-256 25a6349f798b058ca0349da7fc097e1ff06b2c82721e91581e9ce1a4b33e4efa

See more details on using hashes here.

Provenance

The following attestation bundles were made for comfyui_remote_gateway-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Mihailorama/comfyui-remote-gateway

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page