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

DevFeed: [Route coding agent requests to the right model on Amazon Bedrock with NVIDIA NeMo Switchyard](<https://devfeed.tech/articles/route-coding-agent-requests-to-the-right-model-on-amazon-bedrock-with-nvidia-nemo-switchyard-133426.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/machine-learning/route-coding-agent-requests-to-the-right-model-on-amazon-bedrock-with-nvidia-nemo-switchyard/>)

Author: Aswath Ram A Srinivasan

Published: 2026-11-13T22:30:12Z

Content type: tutorial

Language: en

Sources: [Artificial Intelligence](<https://devfeed.tech/sources/artificial-intelligence.md>)

Topics: [litellm](<https://devfeed.tech/topics/litellm.md>), [NeMo](<https://devfeed.tech/topics/nemo.md>), [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [Nemotron](<https://devfeed.tech/topics/nemotron.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [codex](<https://devfeed.tech/topics/codex.md>)

Tags: [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [amazon-bedrock](<https://devfeed.tech/tags/amazon-bedrock.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-cdk](<https://devfeed.tech/tags/aws-cdk.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-agent](<https://devfeed.tech/tags/coding-agent.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [cost](<https://devfeed.tech/tags/cost.md>), [litellm](<https://devfeed.tech/tags/litellm.md>), [nemo](<https://devfeed.tech/tags/nemo.md>), [nvidia](<https://devfeed.tech/tags/nvidia.md>), [route](<https://devfeed.tech/tags/route.md>), [routing](<https://devfeed.tech/tags/routing.md>), [solved](<https://devfeed.tech/tags/solved.md>), [switchyard](<https://devfeed.tech/tags/switchyard.md>), [tasks](<https://devfeed.tech/tags/tasks.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>), [token](<https://devfeed.tech/tags/token.md>)

## AI overview

The article's main takeaway is to judge coding-agent routing by cost per solved task, since multi-turn history, retries, and failed runs make token price alone misleading. It walks through deploying LiteLLM with NVIDIA NeMo Switchyard on Amazon Bedrock using AWS CDK, then comparing a routed model group with single-model baselines. Stage routing uses recent tool results to choose between exactly two candidates; it starts with the efficient model when signals are inconclusive and can escalate after failures. Random routing splits requests among candidates by weight. The sample's benchmark estimates cost from token usage and a price table, and counts a task solved when its tests pass within the turn limit. Results are illustrative: repeat runs, inspect hard tasks and truncation, and treat costs as estimates rather than billing data. The Switchyard integration is experimental, supports only specified message shapes and Chat Completions paths, and is presented for non-production use.

## Source excerpt

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.