Dynamic Any
The wildcard passthrough for wires that refuse to pick a type
- input
- output
Dynamic Any is the "let the graph decide" passthrough. One input socket, one output socket, both typed * - which in ComfyUI means matches anything. Plug an image in and the node becomes an image passthrough; plug a latent in and it becomes a latent passthrough; the socket labels update live to reflect whatever you connected. It's the single-wire cousin of Dynamic Passthrough: same idea, but just one lane.
You reach for it when you're building a template, a subgraph, or a reusable chunk where the incoming type isn't fixed yet - "whatever this branch produces, carry it out the other side." It also earns its keep mid-iteration: when you're toggling an upstream node between outputs of different types, a wildcard passthrough means the wiring doesn't have to change every time you switch.
How it works
ComfyUI's type system has exactly one escape hatch, and this node lives in it. The AnyType("*") class overrides equality so "*" compares equal to every type string, and the node's VALIDATE_INPUTS always returns True - telling the backend to skip type-checking a socket it can't reason about. That's the standard wildcard mechanism, the same one every switch and logic pack in the ecosystem is built on.
The run function is a passthrough with a small compatibility wrinkle: it checks the newer input_1 parameter name first and falls back to the legacy input name, which is there so workflows saved against older versions keep loading. The output is whatever you connected, unchanged.
Inputs and outputs
input(*) - anything. One socket.output(*) - the same thing, unchanged.
There's nothing else on the node, which is the appeal. You'll find it under Tojioo Passthrough → Dynamic Nodes, and since v1.7.1 it also pops up in the slot menu when you drag a link into empty space - pick "Dynamic Any" and it inserts itself and auto-connects.
Install
Manager → search "Tojioo Passthrough" → Install → restart, or:
cd ComfyUI/custom_nodes
git clone https://github.com/Tojioo/tojioo_passthrough.git
No models, no extra pip deps, no build step - the frontend JS ships prebuilt. Small single-maintainer pack, GPL-3.0, author active on r/comfyui.
Common issues
The honest warning is the one the community has been making since the "Anything Anywhere" backlash: type-erasing nodes make a graph harder to debug, because you lose the visual guarantee that an IMAGE socket is actually carrying an image. * also swallows type mismatches - a wrong connection won't error, it'll just fail somewhere downstream where the types finally have to agree. If you know the type (you almost always do), the typed passthroughs in this same pack are the safer choice. Reserve Dynamic Any for genuinely polymorphic spots, and don't scatter it across a whole workflow.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| inputopt | * | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| output | * | — |