#3131st of 75 in Gateways and observability

switchyard

Rust library that routes each agent request to an efficient or capable model

Run it:RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Releases and problems feed (RSS)

Stars
3.7k
License
Apache-2.0
Last commit
Nov 2026
Last release
Nov 2026
Language
Rust
Stars, last 26 weeks+3,671
23 May 2026: 14 stars30 May 2026: 14 stars6 Jun 2026: 14 stars13 Jun 2026: 14 stars20 Jun 2026: 14 stars27 Jun 2026: 14 stars4 Jul 2026: 75 stars11 Jul 2026: 132 stars18 Jul 2026: 159 stars25 Jul 2026: 175 stars1 Aug 2026: 190 stars8 Aug 2026: 209 stars15 Aug 2026: 1,592 stars22 Aug 2026: 2,230 stars29 Aug 2026: 2,553 stars5 Sept 2026: 2,704 stars12 Sept 2026: 2,960 stars19 Sept 2026: 3,156 stars26 Sept 2026: 3,210 stars3 Oct 2026: 3,258 stars10 Oct 2026: 3,339 stars17 Oct 2026: 3,391 stars24 Oct 2026: 3,441 stars31 Oct 2026: 3,470 stars7 Nov 2026: 3,505 stars14 Nov 2026: 3,538 stars21 Nov 2026: 3,685 stars

14 on 23 May 20263,685 on 21 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Switchyard is a Rust routing library (libsy) that decides which model handles each agent request, mixing efficient and more capable models to trade off task success, cost and latency. Algorithms include Auto (a Stage preset), Task (LLM classifier), Execution (tool-activity signals) and Composite. It embeds in your gateway or harness, with integrations for Agent Router (Envoy), LiteLLM, NeMo Relay and OpenRouter, plus Python and TypeScript bindings.

Who it is for: Engineers adding model routing to an LLM gateway or agent harness

Strengths

  • Routing can change mid-run using recent tool activity, not only the first prompt
  • You keep model clients and credentials; the library only returns the routing decision
  • Several algorithms: Auto, Task, Execution, Composite, escalation, advisor, sub-agent, random
  • Integrations for Agent Router, LiteLLM, NeMo Relay, OpenRouter; Python and TypeScript bindings

Weaknesses

  • Pre-1.0: libsy is Beta and its API will change before v1.0
  • Standalone server is demo-only, not a supported production path
  • LiteLLM integration is experimental and cannot serve classifier or escalation algorithms
  • Cheaper calls may not mean cheaper completed tasks; needs your own evaluation

What it needs

  • Docker
  • Needs Rust toolchain, Python 3 (NeMo Relay plugin source build)
  • Models: OpenAI-compatible APIs, Anthropic-compatible APIs

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Known problems

Reported, then fixed by a linked change

Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.

Also in Gateways and observability

See all 75
Also in Gateways and observability
RankProjectScore
#29LatitudeAgent observability that groups failures and dispatches coding agents to fix them4.8k starsMIT77 out of 100
#30optillmOpenAI-compatible proxy that applies inference-time reasoning techniques to any LLM Live demo ↗ (opens in a new tab)4.3k starsApache-2.076 out of 100
#32vllm-project/semantic-routerPolicy-driven router that selects or combines models behind one API endpoint6.5k starsApache-2.075 out of 100
#33agentgatewayOne proxy for LLM, MCP and A2A traffic with auth and RBAC6.4k starsApache-2.075 out of 100
#34PlanoEnvoy-based data plane that routes, traces and guards agent traffic7.1k starsApache-2.074 out of 100