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.

Metadata

Release files for comfyui-remote-gateway 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for comfyui-remote-gateway 0.1.0
File Size Uploaded Provenance
comfyui_remote_gateway-0.1.0.tar.gz 4.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for comfyui-remote-gateway 0.1.0
File Interpreter ABI Platform
comfyui_remote_gateway-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / comfyui_remote_gateway-0.1.0.tar.gz

Download URL comfyui_remote_gateway-0.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ef6d3690dd1ff09748d0276e5d74147590791d93ab0defcf2d1fab6bb84e2eba
BLAKE2b-256 checksum
How to use checksums
b8cecfb950dc064f09aeb4dd211907748f06fbbbe9cf81ed70e9ddfcc3bed345
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2026.

Transparency log

Release files / comfyui_remote_gateway-0.1.0-py3-none-any.whl

Download URL comfyui_remote_gateway-0.1.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
697fb3910aa02471cc4e183403954bf2bc5a8972923d9789beb1a0dd111d8897
BLAKE2b-256 checksum
How to use checksums
25a6349f798b058ca0349da7fc097e1ff06b2c82721e91581e9ce1a4b33e4efa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2026.

Transparency log

Security for comfyui-remote-gateway 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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for comfyui_remote_gateway-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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