# Connect distant branches with remote routes

Use workflow-local named channels while retaining real dependency, data and error-route behavior.

Canonical URL: https://opennodeflow.dev/wiki/remote-routes/
JSON reference: https://opennodeflow.dev/wiki/remote-routes/index.json
Source snapshot: 2026-10-23

Remote send and Remote receive connect distant branches on the same canvas through a named channel. They reduce long visible wires while remaining ordinary routing nodes in the same accepted run. They do not send a network message or start a separate workflow.

## Wire a channel

Add both operations from Routing in the node picker. Set the same case-sensitive Channel in each node's Configuration, for example `diagnostics`. Channel suggestions help reuse names already present on the canvas.

Wire the producing branch's control output into Send's Exec input. Wire Receive's Next output into the common handler. Optionally send a data value into Send's Value and use the receive output appropriate to the number of active senders.

Use an error control output when routing a failed node. The failing node must still expose and connect its declared `error` route. A remote channel does not itself turn an unhandled failure into a handled one. Downstream code can read the existing `context.errors` records.

## Several senders and receivers

Several sends may share a channel, and several receives may fan out from it. A receive waits for sender predecessors to settle, then executes once if at least one sender selected that channel. Sends on unselected branches skip.

Receive's Value is available for exactly one active sender. With several active sends, use Values explicitly; it contains records with senderId and optional value. This is one join per run, not a new receiver invocation for every send. Do not assume arrival order represents a business sequence.

The transported data boundary is dynamic `any`, while downstream declared input schemas still validate the actual value. Add an explicit typed conversion or [codec](/wiki/codecs/) where the handler needs a named contract.

## Validation and extraction

Both ends must exist. Validation includes implicit channel dependencies when checking cycles, so hiding a long wire cannot create a legal visual loop. Channel names are scoped separately inside each subflow instance.

Channel edits are normal graph drafts with Save and Undo. Copying both ends preserves their channel name; pasted nodes therefore join the existing channel in that canvas. Rename the copied pair when you intend an independent route.

Select every send and receive sharing a channel when extracting a subflow. Partial extraction is rejected to prevent silently disconnecting the rest of the parent graph. Internal remote sockets are not promoted as public subflow boundary sockets.

## Inspect what executed

Saved authoring graphs retain the uncluttered channel view, while runtime snapshots expand the implicit connections for scheduling and inspection. Remote routes also work inside collection bodies with separate per-item values.

Use ordinary continuation wires from Receive's Next. Its Remote input is reserved for channel matching. Distinguish channel routing from the canvas's hide-wire preference: the latter changes rendering only and leaves the original edge intact.

Continue with [control flow](/wiki/control-flow/) for early winners or selected-value merges. Remote routes retain ordinary predecessor settlement behavior and do not introduce cancellation, automatic retries, external triggers or cross-workspace messaging.

---

## Documentation provenance

- `docs/REMOTE-ROUTES.md`
- `docs/GRAPH-AND-LIBRARY.md`
- `docs/AUTHORING.md`

This page describes maintained source, not a live inventory or an authorization to perform actions.
