AI Cloud Architect

Route coding agent requests to the right model on Amazon Bedrock with NVIDIA NeMo Switchyard

AWSHow-to by Aswath Ram A Srinivasan, Anshika Saxena, Curt Lockhart, Ian Cairns, Kevon Mayers and Aris TsakpinisAWS Artificial Intelligence Blog

Coding agents work in tasks, and the number that matters is cost per solved task, not price per token. In this post, you use the AWS CDK to deploy LiteLLM with the NVIDIA NeMo Switchyard routing plugin on Amazon Bedrock, then measure cost per solved task for a routed model group against single-model baselines.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Shows how to deploy LiteLLM with the NVIDIA NeMo Switchyard plugin on AWS via CDK, routing coding agent requests between Bedrock models and measuring cost per solved task.

Who it is for

Architects and developers running coding agents on Amazon Bedrock who want to cut cost per solved task by routing between models.

Key points

  • Sample uses switchyard-server 0.3.0 and LiteLLM v1.102.0; the post says it is experimental, for non-production use.
  • Stage routing needs exactly two candidates; Random routing splits traffic by weight for A/B tests.
  • Deploys in US East (N. Virginia) tested; needs Bedrock access to Claude Opus 5.5 and Nemotron 3 Super 120B.