AI Deployment Runbook
This page is written for AI agents, not humans. Send this single page link to any agent that can operate your computer (Claude Code, Codex, Cursor, Trae…) and it will install, configure, and verify VideoFree Studio step by step. Humans only need to send the first sentence.
“Follow https://videofreestudio.com/guide/agent-runbook.md and deploy VideoFree Studio on this computer, step by step. Check before you act at every step; stop and hand back to me whenever a login, terms acceptance, or payment is required.” ::
Rules for the agent
- Execute steps in order. The “Check” at the end of each step must pass before moving on; on failure, follow the “On failure” line — never skip ahead.
- Never upgrade PyTorch / CUDA / Python on your own initiative; versions follow the machine’s current state. Report before changing anything.
- When a download requires login, license acceptance, payment, or a cloud-drive captcha: stop, explain what is needed, hand it to the human.
- Use absolute paths; verify file sizes after every download.
- Cloud environments (e.g. the official VideoFree Studio image on GPU clouds such as Xiangongyun): jump straight to Step 6 — the image already contains everything.
Step 1 · Survey the machine
Check: OS, GPU model and VRAM, Python version, free disk (≥ 100 GB), network access to github.com / gitee.com / huggingface.co.
Check passes when: a usable GPU with ≥ 8 GB VRAM and ≥ 100 GB free disk.
Step 2 · Look for an existing ComfyUI
- Running process? Windows:
netstat -ano | findstr 8188; Linux:ss -tlnp | grep -E "8188|8189". - Found → record its install directory and Python path from the process command line; go to Step 3.
- No process → search common locations (
~/ComfyUI,~/ComfyUI_windows_portable,D:\). - Nothing found → run Step 2a.
Step 2a · Install ComfyUI (only if missing)
- Official ComfyUI: https://www.comfy.org/download (Windows portable or manual Linux install) into a directory with plenty of space.
- Chinese users may instead use the bundled kit that ships ComfyUI + models + plugins (Quark cloud drive link on the install guide page); downloading from the cloud drive is a human task — take over from Step 3 once extracted.
Check: main.py (source install) or run_comfyui.bat (portable) exists and ComfyUI starts once.
Step 3 · Update ComfyUI to the latest stable
Ask the human for consent first (this touches a live environment). Then, inside the ComfyUI directory: git pull and pip install -r requirements.txt --upgrade using ComfyUI’s own Python. Portable installs: prefer the bundled Update script.
Check: git log -1 shows the newest commit; startup log ends with Starting server on a port (8188/8189) and the web UI opens.
On failure (IMPORT FAILED): note the failing node package, reinstall only that package’s dependencies.
Step 4 · Download the required models
- Fetch the machine-readable manifest first: https://videofreestudio.com/guide/model-manifest.md — every plugin’s exact filenames, target folders and direct download links (hf-mirror / ModelScope preferred in China) in one file.
- Confirm which plugins the user wants.
- Read each plugin’s
INSTALL.md— it lists exact model filenames, download URLs, and target subfolders. - Place models under
ComfyUI/models/<proper subfolder>/with original filenames; node packs underComfyUI/custom_nodes/, installing their Python requirements into ComfyUI’s own environment. - If Hugging Face is unreachable, suggest hf-mirror.com to the human — never fetch models from unknown mirrors silently.
Check: every file from INSTALL.md exists with a sane size; ComfyUI restarts without IMPORT FAILED for those nodes.
Step 5 · Download and launch VideoFree Studio
- Windows: latest release from https://github.com/linpengishero/VideoFreeStudio/releases (Gitee mirror: https://gitee.com/heroofgod_admin/VideoFreeStudio ), extract, double-click
videofree.bat. - Linux / source: clone the repo,
pip install -r requirements.txt, thenchmod +x videofree.sh && ./videofree.sh.
Then: open http://127.0.0.1:8765 , enter a project → gear icon → set the ComfyUI gateway address recorded in Step 3 → save. The editor plugin needs ffmpeg and ffprobe available in the same environment — if missing, tell the human.
Step 6 · Deployment check (acceptance list)
Run all of these and report results:
- http://127.0.0.1:8765 serves the workspace UI;
- the ComfyUI port serves its UI;
- the gateway setting shows as connected;
- plugin list loads with no missing-model / missing-node warnings;
- one minimal generation job (low-res image) completes;
- optional: MCP is live — add
{"mcpServers": {"videofree": {"type": "http", "url": "http://127.0.0.1:8765/mcp"}}}and confirm the tool list.
On success, report: install paths, both service addresses, installed plugins and models, and a suggested first workflow to run.
Stop conditions (hand back to the human)
- Any login / registration / terms / payment (cloud drives, gated HF models);
- GPU–Python–PyTorch–CUDA incompatibility with no clearly safe option;
- Insufficient disk or VRAM;
- A production ComfyUI that an update could break — consent required before updating.