ComfyUI Server Ops over HTTP

    by Drizzt Studio

    1

    Run jobs on a shared ComfyUI box without monopolising the queue.

    Free

    Security scanned

    Works with the AI Agents you already use

    ComfyUI Server Ops over HTTP

    Example session with this skill installed

    Check the queue on $COMFYUI_URL and submit the portrait workflow with prefix 'batch_01' only if nothing else is running. If someone else's job is in the queue, stop and tell me.

    • Read your context and instructions
    • Compiled the comfyui server ops

    Queue on $COMFYUI_URL was 0 running / 0 pending, so the portrait workflow was submitted; the queue now shows one item of mine (position 1). Time to first image was about 45 s on a warm server — cold start on the same class of box measured roughly 19–29 s just to load the model, so treat 45 s as warm-start only.

    Submission Status

    ParameterValue
    Server URL$COMFYUI_URL
    Prompt IDf7a2b9c1-…
    Filename Prefixbatch_01_20231027_r1
    Queue StatusSubmitted (position 1, mine is the only item)
    Time to first image~45 s (warm start)

    Scan history instead of trusting one prompt ID — GET /history/{prompt_id} often returns {} even when the image exists:

    import json, urllib.parse, urllib.request
    
    def harvest_batch(server, prefix):
        # GET /history (full list), match filenames by prefix, fetch via /view
        history = json.loads(urllib.request.urlopen(f"{server}/history").read())
        for pid, data in history.items():
            for node_output in data.get("outputs", {}).values():
                for img in node_output.get("images", []):
                    if img["filename"].startswith(prefix):
                        q = urllib.parse.urlencode({"filename": img["filename"], "subfolder": img.get("subfolder", ""), "type": img.get("type", "output")})
                        print(f"{server}/view?{q}")
    

    Next steps

    1. If the session times out, do not resubmit: scan GET /history for filenames starting with the prefix and pull the file with /view (include subfolder, or you get a 404).
    2. Re-check GET /queue before the next item; if the running job isn't yours, stop rather than queue behind it.
    3. Used this prefix before? The server appends _00001_/_00002_ counters — deliver this run's file, not last batch's.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Operational discipline for submitting, polling, and scheduling work on a shared ComfyUI machine: one job at a time, queue courtesy, timeout and partial-file traps, cron collisions, and model downloads when you have no shell on the box. Examples use $COMFYUI_URL and may call the ComfyUI HTTP API, Hugging Face, or Civitai (token from a local .env, passed as a query parameter). Those network calls are documented in the skill; the package itself does not hardcode credentials or hosts.

    Custom-node install over HTTP only works when the box allows manager installs at weak/normal security and git-URL installs on a loopback listener — a remotely-listening server has no API path, the owner has to clone and restart. Downloads larger than roughly 10 GB should not be pushed through a download node at all: one 22 GB weight stalled at 18.9 GB, could not be interrupted, and only finished when the owner fetched it by hand. Creating directories under a Windows junction can fail with WinError 183 when python3 is the Microsoft Store build — use a venv python. The skill text and its six reference documents are written in Traditional Chinese, and there are no runnable scripts: the snippets are curl/Python you paste into your own code.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 16 days ago

    • Free with an Agensi account

    Software
    ComfyUI server (reachable over HTTP)
    curl
    orPython 3
    Git
    Optional
    Hugging FaceCivitai

    Shared ComfyUI boxes are queue politics, not code. This is the rulebook: one job at a time, yield when the running job isn't yours, poll /history by filename prefix, never retry POST /prompt blind. Bring your own workflow and URL; snippets are curl/Python. Skill text is Traditional Chinese.

    Permissions

    Terminal / Shell
    Network Access
    Read Files
    Write Files
    Environment Variables
    Listed16 days ago

    What's inside

    Frequently Asked Questions

    It is not a wrapper library. It is the operating rules around the same HTTP calls you already make: check GET /queue before submitting, back off when another job is running, and treat POST /prompt as non-idempotent — a dropped response may mean the job is already queued, so re-check /queue or /history for your prefix before retrying. Polling by filename prefix exists because /history/{prompt_id} frequently returns {} for jobs that succeeded.

    Anything that can make HTTP calls: a shell with curl, or Python 3 with urllib/requests. No SDK, no ComfyUI install and no custom client library on the agent side — only a reachable server URL. Multi-host agents work too, but the server must listen beyond loopback for that, which is exactly when custom-node installs stop being possible.

    One SKILL.md plus six reference documents: HTTP API scripting contract, history forensics, cron collision and re-arming, cron provider-outage triage, external workflow port audit, and remote model download with no shell. Everything is prose plus inline curl/Python snippets you adapt to your own workflow — there are no bundled scripts and nothing to install.

    There is no code layer to do it for you; the traps are documented with fixes you apply in your own script: MSYS paths vs native forward-slash paths, native Python's /tmp not being bash's /tmp, junction trees returning 0 files without error under find, and cron jobs that work interactively then die on the first line because they relied on relative paths.

    Yes, that is the first rule of the skill. One job at a time: read GET /queue, identify other people's work by input filename prefix or model name, let their running job finish, and submit only into an empty queue. Chained batches are explicitly banned even when sequential, because 20 items at 5.5 minutes blocks everyone's morning — finish one, report, and wait for the go-ahead.

    New in Image & Video

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Video Skills.

    Free