Reference
Nest this run. Take it back.
The Renest panel is a ComfyUI sidebar tab with two jobs. Nest this run packs the workflow on your canvas, after a run that finished, into a nest: the models it used, the custom nodes, the exact package versions and the workflow itself. Take back brings a saved workflow and its files back into the ComfyUI you are running, checked byte for byte, and tells you what changed on this machine since you saved it. Every upload and every take-back is approved once in your own browser, and the engine's token never reaches the browser.
The panel is a thin front end; the renest engine does the work
The panel adds a Renest tab to the ComfyUI sidebar. It has two halves:
a small piece of Python that runs inside ComfyUI, and browser code that draws the tab. Neither
half packs or fetches anything itself. The work is done by the renest command-line
tool, running as a local service (renest serve) on the same machine as ComfyUI. The
browser code only ever talks to ComfyUI's own address; the Python half passes each call on to
the engine over plain HTTP on that machine's loopback address. That HTTP interface is the only
connection between the panel and the engine.
The panel follows ComfyUI's licence (GPL-3.0-or-later). The engine is a separate program that is source-available, not open source. The process boundary between them is also the licence boundary.
A nest saved from the panel is an ordinary nest: the same format, the same promise as one packed from the command line. What differs is what you do with it later. The command line rebuilds it on another machine. The panel takes its files back into the ComfyUI it came from.
You install two things: the panel inside ComfyUI, and the engine once per machine
The panel. In ComfyUI-Manager, search for "Renest", install it, restart ComfyUI, then refresh the browser tab so the Renest tab shows up. Or clone it by hand:
$ cd ComfyUI/custom_nodes $ git clone https://github.com/renest-ai/comfyui-renest
It needs a ComfyUI frontend that has the sidebar extension API. It adds no nodes to the node list, and it has no Python dependencies of its own.
The engine. When you open the Renest sidebar tab inside ComfyUI for the
first time, you can press Set up & start Renest here to install the
renest engine in an isolated tool environment and start it on
127.0.0.1:7799 with one click (Windows, macOS and Linux). Or run it yourself in a
terminal on the machine that runs ComfyUI:
$ uv tool install --upgrade renest $ export PATH="$HOME/.local/bin:$PATH" $ renest serve
Install it with uv rather than pip inside ComfyUI's own
environment: pip install renest would add packages to the very environment you
are about to capture. The engine needs Python 3.11 or newer, but that Python does not have to
be the one running ComfyUI. The install command needs uv. No uv yet?
curl -LsSf https://astral.sh/uv/install.sh | sh puts one there first.
renest serve listens on 127.0.0.1:7799. The panel always looks
for it there, so leave the port at its default when you use the panel.
To save to your Renest drive or take a workflow back, also sign the machine in once, in the same terminal:
$ renest login
It prints a short code and a link. Open the link in a browser where you are signed in to Renest, check that the code matches, and approve. No Renest account yet? Create one at app.renest.ai. Keeping a nest on the machine only needs neither an account nor this step.
If the engine is not running, the tab says so and shows the install commands with a Copy button and a Check again button.
On a rented machine, open ComfyUI the way you normally do
Open ComfyUI through your provider's web address or through a tunnel, whichever you already use: the panel works either way. Your browser never connects to the engine itself. It calls ComfyUI's own address, and the panel's Python half, running next to ComfyUI, forwards the call to the engine on that machine.
The flip side: anyone who can open your ComfyUI can use the panel. They can preview and pack on that machine. They cannot save to your Renest drive, list your nests or fetch anything from them, because every upload and every take-back has to be approved in a browser signed in to the account that signed the machine in (see below). Keep your ComfyUI address to yourself, as you would anyway.
Nest this run: a run has to have finished
The panel saves only a workflow that just ran to the end. That is not a formality: the things worth saving beside the files, which custom node provides each node, which system libraries the run loaded, how much video memory it used, the exact packages installed, can only be read off a run that worked. When a run finishes successfully, the panel tells you that you can save it. Pressing Nest this run works through these steps:
- Checks that this is the run that worked. The panel saves only the workflow that last ran to the end. If you have not run the workflow on the canvas yet, or changed it since its last finished run, the panel asks you to run it once more first.
- Asks for a preview. The engine does a dry run and writes nothing. Which folder is packed is decided on the machine, from where ComfyUI really runs; the browser only sends the workflow and a name.
- Shows "What goes in the nest". This lists counts and sizes for Models, ComfyUI itself, Custom nodes and Dependency locks, followed by an Estimated size. Anything the engine could not capture appears under Worth reading before you save. Read that box: a list that looks complete but isn't is the one that costs you later.
- Lets you choose where it goes. The name defaults to the folder name and today's date in your own time zone. Then press Save to my Renest drive (includes 1 free active workflow slot kept for 7 days, or kept permanently on a paid plan; see below) or Save on this machine only (free; see where it goes). If the canvas changed after the preview, the panel asks for a new preview instead of packing the old one.
- Packs and checks every file. The panel shows what it is doing in plain words (reading and copying what the run used, writing the manifest, uploading, checking with the drive), a progress bar and the engine's own log lines; Cancel stops the job. If packing fails, the panel shows the engine's own explanation.
Packing from the panel always records a direct download address for packages that are
pinned to a vendor-only build (such as a CUDA-specific torch). A machine that just
ran a workflow has network access, and a nest sealed from the panel should never be one that
can't be put back elsewhere.
Every workflow you save from the same ComfyUI installation lands under that installation on your drive: the web console shows one ComfyUI environment per installation, with its saved workflows beneath it. The code of ComfyUI and of your custom nodes is stored once per installation, not once per workflow, so saving a second workflow from the same machine sends only the models that are new.
Saving to your Renest drive: you approve each upload once, in your browser
Your Free drive includes 1 active workflow slot kept for 7 days; a paid plan keeps your own nests permanently. When you press Save to my Renest drive:
- The panel shows a code and an "Open approval page" link. The machine has asked your Renest account for permission to upload this one nest.
- You approve in your browser. The approval page shows the nest's name, its estimated size, the machine and the same code. Approve only if you started it just now and the code matches. Only the account that signed this machine in can approve; anyone else is told the machine belongs to a different account.
- The upload runs, and the permission ends with it. The permission covers this one upload. It is switched off when the upload finishes, fails or is cancelled, and it can only start a new nest, never change one already on your drive. Cancelling while the panel waits for you withdraws the request.
- The panel finishes on "Saved to your Renest drive", with a link to the nest in the web console, once the drive has checked every file.
If your plan can't store nests of your own, or your drive is full, the panel says so in the drive's own words, links to the page that fixes it, and offers Save on this machine instead.
What the machine keeps after renest login can only ask for an upload or a
take-back to be approved: it cannot upload, list your nests or download anything by itself.
Getting the disk back: the panel removes its own copy, and lists what you may remove
While it packs, the engine keeps a working copy beside your ComfyUI folder, in
renest-nests. The model files in that copy are hard links to your originals, so
the copy costs no extra space, and, for the same reason, deleting an original would free
nothing while the copy still holds it. So once the drive has checked a nest saved to it,
the engine removes that nest's working copy: its manifest folder and every stored file no
other nest beside it still refers to. The panel says when it has done so. A nest saved with
Save on this machine only keeps its copy, because that copy is the nest.
Then the success page lists the model files the workflow used, with their paths and sizes, and tells you they are now on your drive, checked byte for byte. Whether to delete them from this machine is your decision, and yours to carry out. The panel never deletes a file in your ComfyUI folders. It does tell you when one of those files is also used by another workflow you saved earlier; workflows you have not saved are not checked.
Take back: the files return to where they were, checked, and nothing is overwritten
On the Take back side of the tab, press Show my saved workflows. As with an upload, the machine asks your account for permission, the panel shows a code, and you approve it in your browser. The permission covers one listing and one take-back; it is switched off when that take-back ends, and it expires on its own after an hour. Then the panel lists the workflows saved on your drive, and each row has Compare with this machine.
Comparing writes nothing. It downloads the nest's manifest, reads what the machine looks like right now, and shows the report described below. If you then press Bring the missing files back:
- A file already here with the same bytes is left alone.
- A file that is missing is downloaded, checked against its recorded SHA-256, and put back at its original path.
- A file at the same path with different bytes is yours, and stays. The
saved version lands beside it, under
.renest/kept/in your ComfyUI folder, and the report names it. - A file the drive does not hand out (one whose licence does not allow passing it on) is listed with the address it came from, for you to fetch yourself.
- The workflow goes back to where it was saved from, and a copy is added to ComfyUI's Workflows list.
Take back never writes outside your ComfyUI folder, never installs a custom node, and never changes a package. It brings files back and checks them. Whether the workflow then runs is not something the panel promises.
What the report tells you: facts about then and now, not a verdict
The report compares what the nest recorded at save time with what this machine has now. Each line says unchanged, changed (then and now) or missing (what it was and where it came from). It covers:
- ComfyUI itself: the commit it was at then, and now.
- Python: the version then, and now.
- Packages: the version of
torchand its family then and now, and how many other packages differ, with the full list a click away. - Custom nodes the workflow used: for each, the repository and version recorded at save time, and whether that folder is here now, at the same version or another, or not at all.
- Files: how many are unchanged, missing, different here, or not handed out, and the state of each one.
- The graphics card: the name then, and now.
The report does not say whether the workflow is compatible with this machine, does not recommend a version, and does not suggest a replacement for a missing node or model. It tells you what was there when you saved, so you can decide what to put back.
The panel keeps a small run record so packing can use facts from the live run
Some facts about a run exist only while ComfyUI is running. So the panel's Python half watches the status messages ComfyUI already sends to the browser. It changes nothing about them. Whenever a prompt ends (finished, failed or interrupted), it writes one file beside ComfyUI's program folder:
<ComfyUI program folder>/.renest/native-libs.json
It records:
- Which node pack each loaded node type came from, as ComfyUI itself reports it. Without this, packing would have to search custom node folders for class names as text, which misses packs that build node names at start-up.
- The most video memory the run was seen using, sampled at most every couple of seconds while a prompt runs, along with the sampling interval. This is kept only when the run finished successfully. A run that stopped on its first node would otherwise leave a figure far below what the workflow really needs.
- When the record was written, and which Python wrote it.
The engine reads this file when it packs, both for the preview and for the real pack. The node owners decide which custom nodes go in. The video memory figure goes into the nest, where the pre-flight check on another machine can compare it against that machine's card. A nest with no figure says nobody measured, and the check reports exactly that instead of passing. When you take a workflow back, the panel also hands the engine the node table of the running ComfyUI, so the report can say which node pack provides each node type right now.
The operating-system libraries a run loaded are read by the engine from the running ComfyUI process, not from this file. If ComfyUI is already closed when you pack, the engine can only use what the installed packages declare. Packing tells you so, and the fix is to start ComfyUI and pack again.
"Save on this machine only" writes the nest beside your ComfyUI folder, in renest-nests
This is free and needs no account. It uploads nothing. The panel shows the exact folder when it is done:
<the folder holding your ComfyUI>/renest-nests/ ├─ nests/<nest-id>/manifest.json └─ blobs/sha256/…
A nest kept this way is gone when the machine is. On a rented machine,
copy the whole renest-nests folder off it before you stop or delete the machine,
or save the nest to your Renest drive instead. Two cases land elsewhere, in your per-user data
folder (on Linux, normally ~/.local/share/renest):
- ComfyUI sits at the root of the filesystem (such as
/ComfyUI): the nest goes torenest-nestsinside that data folder,~/.local/share/renest/renest-nestson Linux. - The chosen folder isn't writable: the nest goes to
nestsinside that data folder,~/.local/share/renest/nestson Linux.
To rebuild from the nest on another machine, bring the whole folder there and run
renest restore --manifest <folder>/nests/<nest-id>/manifest.json --dir
./run. Restore reads the files from the blobs/sha256 folder beside
nests, so keep the two together. The next nest you pack never includes this
folder.
The engine's token stays on the machine; the browser never sees it
Every engine endpoint except its health check needs a token:
- The engine creates it. The first time
renest servestarts, it generates a random token and writes it with owner-only permissions (0600):- Linux:
~/.config/renest/serve.token - macOS:
~/Library/Application Support/renest/serve.token
--token-file, the engine also writes that location into a file namedtoken-path(0600) in~/.config/renest/, where the panel looks for it. - Linux:
- The panel's Python half reads the file on every call it forwards and
adds the token as an
Authorizationheader on its way to the engine. Replacing the token needs no ComfyUI restart. - Nothing hands the token to the browser. The browser's calls carry no token at all.
- Only the panel's own calls are forwarded: the health check, preview and pack, following or cancelling a job, and the three take-back calls (open a take-back, take one workflow back, close it). Which folder is packed or written to, and which Python runs ComfyUI, are filled in on the machine, never taken from the browser. Restore, in the sense of rebuilding an environment, is not reachable through ComfyUI.
This token is not your Renest account key and can't read your drive.
No cloud keys pass through the panel, and nothing moves without your approval
- No bucket keys or account tokens. The panel never sees, stores or
forwards them. What
renest loginkeeps lives in the command-line tool's own config file (0600) on the machine, and can only ask for an upload or a take-back to be approved. - No upload and no download without you. A nest reaches your drive only after you approve that one upload in your browser; your saved workflows are listed and fetched only after you approve that one take-back. "Save on this machine only" uploads nothing.
- No file of yours is deleted or overwritten. The engine removes only the working copy it made itself, and only after the drive has checked the nest. A file of yours that differs from the saved one stays; the saved one lands beside it.
- No imports of engine code. The panel talks to the engine over HTTP only.
These docs describe renest 0.1.34, the latest release.