Skip to main content

Smart routing in Agent Router, powered by NVIDIA NeMo Switchyard

· 4 min read
Ignasi Barrera
Founding Engineer - Tetrate
Erica Hughberg
Agent Router Maintainer - Tetrate

Agent Router, powered by NVIDIA NeMo Switchyard

Today, Tetrate and NVIDIA are making smart routing powered by NVIDIA NeMo Switchyard available to Agent Router. The integration is a Built On Envoy extension, a native Rust module that runs Switchyard's routing algorithms inside the Envoy proxies that already carry your agent traffic. You don't run another service or sidecar, and you don't change Agent Router.

As maintainers, this is the kind of news we love to share. Industry-leading companies are collaborating to bring their solutions to Agent Router, and they're doing it on the same open extension points that every Agent Router user has. That's what an open gateway is for.

Why you'd want it​

Agents don't make one kind of model call. A coding agent spends most of its turns on routine work, like reading a file or listing a directory, that a small, efficient model handles well. Then a tool call fails or the agent stalls, and that turn needs a more capable model.

If you pick one model per agent, you get one of two outcomes:

  • You pick the capable model and pay frontier prices for every routine turn.
  • You pick the efficient model and the agent struggles on exactly the turns that matter.

Agent Router powered by NVIDIA NeMo Switchyard lets you stop choosing. Switchyard picks a model for each request, so routine turns go to an efficient model and hard turns go to a capable one.

The gateway is the right place for that decision:

  • Every request already passes through it. There's nothing new to deploy in the request path.
  • One policy covers every agent. You configure routing once, instead of writing routing logic into each agent or SDK.
  • It works with the APIs your agents already speak. The extension handles OpenAI Chat Completions, OpenAI Responses and Anthropic Messages requests.

How it fits into Agent Router​

The routing decision happens inside the Envoy proxy that already carries the request. There's no extra hop, service or sidecar between your agent and Agent Router.

Your clients ask for a virtual model, such as coding-auto. The Switchyard extension chooses the real model for that turn and rewrites the request's model field. From there, Agent Router routes the request exactly as if the client had asked for that model, so your existing backends, credentials, rate limits and observability all keep working.

The default algorithm, stage_router, starts on an efficient model, escalates to a capable one after tool failures or stalls, and steps back down. The extension also supports other Switchyard algorithms, and it reports each decision in headers, metadata and metrics so you can see why a turn went where it did.

Because Agent Router doesn't change, setup is configuration: an EnvoyProxy that loads the module, an EnvoyExtensionPolicy with your virtual model, and an AIGatewayRoute with a rule per target model.

Try it​

We'd love to hear how you route your agents' traffic, and which models you pair together. Come say hello in the Agent Router community, and let us know what you build.