• bitcoinBitcoin(BTC)$77,332.000.42%
  • ethereumEthereum(ETH)$2,394.11-0.64%
  • tetherTether(USDT)$1.000.00%
  • binancecoinBNB(BNB)$686.741.17%
  • rippleXRP(XRP)$1.34-0.92%
  • usd-coinUSDC(USDC)$1.000.00%
  • solanaSolana(SOL)$99.43-0.02%
  • tronTRON(TRX)$0.3247130.75%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.01-0.11%
  • HyperliquidHyperliquid(HYPE)$81.630.12%
  • zcashZcash(ZEC)$812.70-1.73%
  • dogecoinDogecoin(DOGE)$0.081454-0.21%
  • RainRain(RAIN)$0.0167692.09%
  • moneroMonero(XMR)$527.226.57%
  • USDSUSDS(USDS)$1.000.01%
  • leo-tokenLEO Token(LEO)$9.29-0.84%
  • whitebitWhiteBIT Coin(WBT)$70.880.01%
  • chainlinkChainlink(LINK)$11.14-0.53%
  • cardanoCardano(ADA)$0.1970740.44%
  • stellarStellar(XLM)$0.174004-0.92%
  • bitcoin-cashBitcoin Cash(BCH)$244.14-0.65%
  • daiDai(DAI)$1.00-0.02%
  • CantonCanton(CC)$0.109218-4.64%
  • Ethena USDeEthena USDe(USDE)$1.00-0.01%
  • USD1USD1(USD1)$1.000.00%
  • litecoinLitecoin(LTC)$49.720.94%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.330.72%
  • uniswapUniswap(UNI)$5.812.64%
  • hedera-hashgraphHedera(HBAR)$0.073935-0.41%
  • Global DollarGlobal Dollar(USDG)$1.000.02%
  • avalanche-2Avalanche(AVAX)$7.17-0.58%
  • shiba-inuShiba Inu(SHIB)$0.0000050.26%
  • suiSui(SUI)$0.731.31%
  • paypal-usdPayPal USD(PYUSD)$1.000.02%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • tether-goldTether Gold(XAUT)$4,373.630.95%
  • crypto-com-chainCronos(CRO)$0.054424-0.51%
  • nearNEAR Protocol(NEAR)$1.86-2.88%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • MemeCoreMemeCore(M)$1.04-2.12%
  • okbOKB(OKB)$106.14-3.64%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.140.22%
  • BittensorBittensor(TAO)$217.97-1.67%
  • AsterAster(ASTER)$0.735.67%
  • aaveAave(AAVE)$127.160.95%
  • pax-goldPAX Gold(PAXG)$4,384.110.98%
  • mantleMantle(MNT)$0.564.67%
  • World Liberty FinancialWorld Liberty Financial(WLFI)$0.056339-1.04%
  • MorphoMorpho(MORPHO)$2.51-0.21%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

Meet Switchyard: A Rust Proxy and Library That Routes and Translates LLM Traffic Across OpenAI and Anthropic APIs

September 2, 2026
in AI & Technology
Reading Time: 15 mins read
A A
Meet Switchyard: A Rust Proxy and Library That Routes and Translates LLM Traffic Across OpenAI and Anthropic APIs
ShareShareShareShareShare

Teams running coding agents hit the same wall. Claude Code speaks the Anthropic Messages API, Codex CLI speaks OpenAI, and the model a team actually wants to serve sits behind vLLM, NVIDIA NIM, or Ollama. Rewriting the agent is not an option, so the translation layer has to live somewhere else.

Switchyard is NVIDIA’s answer: a Rust proxy and library for LLM traffic that routes requests across providers, translates between OpenAI and Anthropic formats, records operational metrics, and exposes typed, composable routing algorithms. It is released under Apache 2.0 with documentation at docs.nvidia.com/nemo/switchyard.

YOU MAY ALSO LIKE

Modding Platform Nexus Mods Now Owns SteamDB

Huskeys Raises $27M Series A to Build the Security Control Layer for the AI Driven Network – Unite.AI

Is it deployable? Yes, but for evaluation only. The binary installs from crates.io and the launcher from PyPI, and it self-hosts anywhere, but NVIDIA labels Switchyard pre-alpha and experimental, warns it is not for production use, and expects the API and algorithms to change significantly before v1.0.

What Switchyard does

Clients keep their native API. Switchyard decodes the inbound request into provider-neutral Rust types, runs a routing algorithm to pick a backend, re-encodes the request in that backend’s own wire format, calls it, and translates the response, including streaming events, back into the shape the client expects.

The server accepts three inbound formats: OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages. Any of the three can address any route, and each configured LLM client selects one upstream format of its own. That decoupling is the point: the agent’s API and the backend’s API no longer have to match.

Three ways to run it

The launcher path targets coding agents. Install the published tool with uv tool install --python 3.12 "nemo-switchyard[cli]", then run switchyard launch claude, switchyard launch codex, or switchyard launch openclaw against a packaged deployment or your own TOML file.

The server path installs the standalone proxy with cargo install --locked switchyard-server, validates a config with --dry-run, and serves on a host and port you choose.

The library path uses switchyard-libsy, which embeds the routing algorithms in a Rust application without owning an HTTP stack. It never calls a model itself; the algorithm decides which target to use and hands every model call back to the caller.

Routing algorithms

A route is one client-visible model ID plus the algorithm behind it. The server supports:

  • passthrough sends every request to one target.
  • random splits traffic across targets using optional relative weights, with an optional seed that reproduces the selection sequence. This is the A/B and cost-experiment path.
  • llm_classifier calls a classifier target for a capability verdict, then routes to a weak or strong target. base_threshold is required; min_confidence, capability_elevated_floor, and session_affinity tune it, and anything the judge cannot decide falls through to the strong target. Setting mode = "escalation" runs every turn on the weak tier first and lets a judge decide whether to rerun it on the strong tier.
  • stage_router scores tool-result and agent-progress signals from recent turns to pick a capable or efficient target, avoiding an extra classifier call on most turns.

Strong, weak, capable, and efficient are roles inside a route, not fixed properties of a model. The same upstream model can serve different roles in different routes.

Observability

GET /metrics returns Prometheus text from the server’s process-wide OpenTelemetry provider. The families cover requests, errors, model-call latency, full-turn latency, prompt, completion, cached, cache-creation, and reasoning tokens, and upstream HTTP attempts by outcome and code. A tier label carries strong or weak for distinguishable classifier decisions, and classifier calls are excluded from those families.

The more interesting metric is switchyard_routing_overhead_ms, which reports the algorithm’s run time minus the call that served the request. Classifier calls are not subtracted, so an LLM-classifier route reports its classification time here while passthrough and random report the sub-millisecond cost of picking a target. Buckets start at 0.1 ms. Separately, --routing-log-file appends a JSON record per completed response, and GET /v1/routing/session-stats returns per-session call and token totals from that log.

Configuration

A TOML deployment has three layers: llm_clients define base URL, wire format, credential environment variable, and retry policy; targets bind one upstream model ID to a client; routes expose one client-visible model ID and its algorithm. Secrets never sit in the file, since api_key_env only names an environment variable. max_retries defaults to 2 and applies to transport failures, timeouts, HTTP 408/429, and 5xx responses.

Key Takeaways

  • Switchyard is an Apache-2.0 Rust proxy and library that routes and translates LLM traffic.
  • It bridges OpenAI Chat, OpenAI Responses, and Anthropic Messages in both directions, including streams.
  • Four route types ship: passthrough, random, LLM-classifier, and signal-driven stage router.
  • Prometheus metrics isolate routing overhead from model-call latency, per model and tier.
  • It is pre-alpha and explicitly not for production, so treat it as an evaluation tool.

Check out the GitHub Repo and Documentation. Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.

Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us


Michal Sutter is a data science professional with a Master of Science in Data Science from the University of Padova. With a solid foundation in statistical analysis, machine learning, and data engineering, Michal excels at transforming complex datasets into actionable insights.

Credit: Source link

ShareTweetSendSharePin

Related Posts

Modding Platform Nexus Mods Now Owns SteamDB
AI & Technology

Modding Platform Nexus Mods Now Owns SteamDB

September 2, 2026
Huskeys Raises M Series A to Build the Security Control Layer for the AI Driven Network – Unite.AI
AI & Technology

Huskeys Raises $27M Series A to Build the Security Control Layer for the AI Driven Network – Unite.AI

September 2, 2026
Forward-deployed engineering is how enterprise AI learns
AI & Technology

Forward-deployed engineering is how enterprise AI learns

September 2, 2026
Nintendo’s Surprise Free Update For Mario Kart 8 Deluxe On Switch 2 Includes Eight-Player Split-Screen
AI & Technology

Nintendo’s Surprise Free Update For Mario Kart 8 Deluxe On Switch 2 Includes Eight-Player Split-Screen

September 2, 2026
Next Post
Dr. Fauci Pleads the Fifth; How Long Can Mitch McConnell Stay Out of the Senate? – July 29

Dr. Fauci Pleads the Fifth; How Long Can Mitch McConnell Stay Out of the Senate? - July 29

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
Neighbors react to teen suspect in clown costume

Neighbors react to teen suspect in clown costume

August 27, 2026
New video shows moment hero fires at shooter at Idaho In-and-Out

New video shows moment hero fires at shooter at Idaho In-and-Out

August 30, 2026
Nearly 25K pounds of frozen buffalo chicken recalled over inspection lapse

Nearly 25K pounds of frozen buffalo chicken recalled over inspection lapse

August 27, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!