White AWS blog card with a blue bar on the right. Orange kicker text reads AWS ARTIFICIAL INTELLIGENCE BLOG. The title is Route coding agent requests to the right model on Amazon Bedrock with NVIDIA Switchyard. A Read the blog post link sits at the lower left, and the AWS smile logo at the lower right.
Featured card from the AWS Machine Learning Blog post on routing coding agents with NVIDIA NeMo Switchyard, published 13 November 2026., Amazon Web Services

要点

  • On 13 November 2026, AWS described a Cloud Development Kit sample that runs LiteLLM with the NVIDIA NeMo Switchyard plugin on Amazon ECS, calling models on Amazon Bedrock.
  • The post argues that price per token does not tell you what a coding-agent task costs, because a task can take many turns, replay history, and include retries that never finish. The suggested metric is cost per solved task: total estimated cost of all runs, divided by the runs whose tests pass.
  • Stage routing inspects the three most recent tool results and chooses between two candidates. In the sample those are a capable model, claude-opus-5-5, and an efficient one, nvidia.nemotron-super-3-120b. A new request with no tool results goes to the efficient model. Repeated failures escalate to the capable one. There is no judge model.
  • The sample installs switchyard-server 0.3.0, which NVIDIA documents as a demo and evaluation component, and LiteLLM v1.102.0. AWS labels the integration experimental and the sample as non-production.
  • The included benchmark runners print RUNS, SOLVED, ERRORS, COST/TASK, and COST/SOLVED, using token usage and a PRICES table, not the AWS bill. The post publishes no scored comparison of the routed group against the single-model baselines.

On 13 November 2026, AWS engineers including Aswath Ram A Srinivasan, Anshika Saxena, Curt Lockhart, Ian Cairns, Kevon Mayers, and Aris Tsakpinis published a walkthrough for routing coding-agent requests across models on Amazon Bedrock. The sample uses AWS Cloud Development Kit to deploy LiteLLM, an open-source gateway, with the NVIDIA NeMo Switchyard routing plugin, on Amazon ECS and AWS Fargate. The coding agent sends an OpenAI-compatible request to a model group named switchyard. LiteLLM then calls Bedrock.

The useful part of the post is not the diagram. It is the accounting advice. A coding agent such as Claude Code or OpenAI Codex CLI is paid for by the task, not by a single call. One task may take a few model calls or dozens. You also pay for attempts that never finish. Price per token does not capture that. AWS says the right comparison is cost per solved task: the estimated cost of all runs on a group, divided by the number of runs whose tests pass.

[1]

Switchyard is an open-source library that chooses which model handles each request according to a strategy you define. The LiteLLM integration in this sample supports two strategies, and neither calls a judge model. Stage routing needs exactly two candidates, typically a capable model and a cheaper efficient one. It reads tool activity and results in the request history and then picks one of the two. The sample inspects the three most recent tool results (recent_window = 3). A new request has no tool results, so Stage sends it to the efficient candidate, named in the sample as bedrock/converse/nvidia.nemotron-super-3-120b. Repeated failures escalate to the capable candidate, claude-opus-5-5. Random routing instead draws from a weighted pool, which the post presents as a way to split traffic for A/B tests.

The post is careful about what is being shipped. The sample installs switchyard-server 0.3.0 from crates.io and runs the published LiteLLM v1.102.0 image. NVIDIA documents that server version as a demo and evaluation component, and AWS says the Switchyard LiteLLM integration is experimental, with configuration and APIs that may change. The code is a sample for non-production use. The load balancer only forwards /v1/chat/completions, /v1/models, and /health/liveliness. Clients that speak the OpenAI Responses API or the Anthropic Messages API get a dead end. The model field in the response body stays switchyard. The actual model is named in the x-litellm-model-name header.

[1]

Step 5 of the walkthrough is the measurement harness, not a results table. The runners compare the routed switchyard group with two single-model baseline groups that always answer with claude-opus-5-5 or nemotron-super-3-120b. Each run stores a transcript, a patch, and a result. The terminal summary has columns for RUNS, SOLVED, ERRORS, COST/TASK, and COST/SOLVED. Cost is estimated from token usage and a PRICES table, not from the AWS bill. The authors warn that prompt caching, batch inference, and price changes will move the real number, and that it should be checked against Bedrock pricing and Cost and Usage Reports.

The interpretation section is more honest than many routing blogs. A group that solves fewer tasks can show a lower cost per task and still cost more per solved task, because failed runs add cost without adding successes. Stage cannot send a hard task to the capable model in advance, because it only reacts to failures already in the history. An escalated turn also replays the whole failed attempt, which can make a late upgrade expensive. With only a handful of runs, a difference of one or two solved tasks can be noise. AWS even names Fisher's exact test as a check on solve rates.

[1]

A fair reading is that the metric is the contribution, and the software is a provisional way to collect it. Teams that still compare coding agents by dollars per million tokens are using a unit that ignores retries and unfinished work. That point stands even if Switchyard 0.3.0 never becomes a production router. LiteLLM has also shipped a built-in Switchyard stage router as an auto-router strategy, which the post mentions as another option, still not as a published bake-off.

What the post does not do is close the argument with evidence. There is no table showing that Stage routing beat Opus alone, or Nemotron alone, on a named set of tasks. The authors say the results apply only to the models, settings, and tasks you measure, and they tell you to measure again if those change. That is responsible, and it leaves the headline claim untested in public.

[1]

Over the next six months, the useful artifact is a team's own COST/SOLVED table for the models it actually runs, with solve counts shown beside the money, and with the cost of failed runs kept inside the total. If those tables show a routed pair beating both single-model baselines on the same tasks, the Switchyard sample will have earned its keep as a measurement tool. If the only numbers in circulation are still dollars per token, engineering groups will keep picking the cheaper model on paper and then paying for the retries that metric hides.

[1]