Routing coding‑agent requests with NVIDIA NeMo Switchyard on Amazon Bedrock
AWS demonstrates a sample that uses the open‑source Switchyard library with LiteLLM to route coding‑agent calls between Claude Opus and Nemotron models on Bedrock.
Original source published: November 13, 2026
AWS published a walkthrough that shows how to route coding‑agent requests between large language models on Amazon Bedrock using the open‑source NVIDIA NeMo Switchyard library integrated with LiteLLM. The sample deploys LiteLLM and the Switchyard plugin in a single container on Amazon ECS Fargate via the AWS CDK. Agents send an OpenAI‑compatible request with the model field set to "switchyard"; the plugin then selects either Claude Opus 5.5 or Nemotron 3 Super 120B based on the configured routing strategy.
Switchyard supports Stage routing, which reads recent tool activity and can prefer the efficient model when signals are inconclusive, and Random routing, which splits traffic by weighted probabilities for A/B testing. The sample’s benchmark runners measure cost per solved task for the routed group and for single‑model baseline groups, enabling developers to compare expense and pass rates.
The code is marked as experimental, intended for non‑production accounts, and requires Bedrock access to the two models in a supported AWS Region.