全局安装并运行第三方 npm 软件
原文依据:3 处使用前要求执行全局 npm 安装;该包及其安装脚本会以当前用户权限运行。提供的材料没有包含 CLI 实现,因此无法从这些行验证其网络限制、令牌处理或下载行为。
若发布包、依赖或后续版本遭篡改,它可能读取当前用户可访问的文件或凭据,并修改用户级环境。
前置步骤要求全局安装第三方 npm CLI,并通过登录或环境变量向其提供账户令牌。材料没有包含该 CLI 的实现,因此无法从所给源码验证其安装脚本、令牌处理及所声称的网络边界。用户可要求可审计的锁定版本,并在隔离环境中安装,仅提供权限受限的令牌。
## Prerequisites1. **RunComfy CLI** — `npm i -g @runcomfy/cli`2. **RunComfy account** — `runcomfy login` opens a browser device-code flow.3. **CI / containers** — set `RUNCOMFY_TOKEN=<token>` instead of `runcomfy login`.查看另外 2 个位置
1. The skill invokes `runcomfy run blackforestlabs/flux-2-klein/<variant>/text-to-image` with a JSON body matching the schema.2. The CLI POSTs to `https://model-api.runcomfy.net/v1/models/blackforestlabs/flux-2-klein/<variant>/text-to-image` with the user's bearer token.3. The Model API returns a `request_id`; the CLI polls `GET .../requests/<id>/status` every 2 seconds.4. On terminal status, the CLI fetches `GET .../requests/<id>/result` and downloads any URL whose host ends with `.runcomfy.net` or `.runcomfy.com` into `--output-dir`. Other URLs are listed but not fetched.5. `Ctrl-C` while polling sends `POST .../requests/<id>/cancel` so you don't get billed for GPU you stopped.- **Token storage**: `runcomfy login` writes the API token to `~/.config/runcomfy/token.json` with mode 0600 (owner-only read/write). Set `RUNCOMFY_TOKEN` env var to bypass the file entirely in CI / containers.- **Input boundary**: the user prompt is passed as a JSON string to the CLI via `--input`. The CLI does NOT shell-expand the prompt; it transmits the JSON body directly to the Model API over HTTPS. No shell injection surface from prompt content.- **Third-party content**: image / mask / video URLs you pass are fetched by the RunComfy model server, not by the CLI on your machine. Treat external URLs as untrusted; image-based prompt injection is a known risk for any image-edit / video-edit model.