Claude Model Selector icon

Claude Model Selector

Route to a Claude Provider credential and model using rules (Main output carries claudeModelConfig for Claude Agent)

Claude Model Selector

AI-generated

Summary

Routes each input item to a configured Claude Provider profile by evaluating its Rules in order, then writes the selected profile’s model configuration and selection details onto the item for a downstream Claude Agent.

Inputs

  • Number of Profiles (required) — Choose 1–10 profiles. Each enabled profile needs a Claude Provider credential; its optional Model override can be selected from the credential’s model list or entered by ID.
  • Rules — Add ordered conditions and a Profile Index for each rule. The first matching rule selects its profile; rules that fail evaluation are skipped.
  • Default Profile Index — Profile used when no rule matches; defaults to 1. The selected index must be within the configured Number of Profiles.
  • Output Field Name — JSON property for the model configuration object; defaults to claudeModelConfig. The selected profile may also use the input item’s inferenceModel, then modelName, when its Model override is empty.

Output shape

One output item for each input item, on the main output.

Preserves the input JSON and adds the configured output field containing the provider/model configuration, plus selectedProfileIndex, selectedModel, and selectedProvider. Output items retain paired-item links to their inputs. A missing profile credential or an out-of-range selected profile causes an error.

Examples

Example 1: Route by item fields

Configure multiple profiles, add Rules that map matching items to profile indexes, and set a fallback with Default Profile Index. Connect this node before a Claude Agent configured to read its model configuration from the selector.

Links

Discussion