#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.
- Stars
- 3.7k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- Rust
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
- [bug] Context-overflow fallback does not recognize llama.cpp's "exceeds the available context size" error ↗ (opens in a new tab)1 reactions · closed 15 Oct 2026Fixed by fix: treat llama.cpp exceed-context errors as overflow ↗ (opens in a new tab)
- [ci] Do not skip full CI solely from a docs-prefixed PR title ↗ (opens in a new tab)1 reactions · closed 10 Sept 2026Fixed by ci: base full CI on changed paths ↗ (opens in a new tab)
- [bug] SSE decoder drops data: fields without a space after the colon ↗ (opens in a new tab)1 reactions · closed 17 Aug 2026Fixed by fix(translation): accept SSE data fields with no space after the colon ↗ (opens in a new tab)
- [bug]: transport 502 echoes base_url including ?key= ↗ (opens in a new tab)0 reactions · closed 10 Sept 2026Fixed by fix(llm-client): drop upstream urls from transport errors ↗ (opens in a new tab)
- [bug] Server collapses JSON extractor errors to HTTP 400 ↗ (opens in a new tab)0 reactions · closed 18 Aug 2026Fixed by fix(server): preserve JSON rejection statuses ↗ (opens in a new tab)
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| Rank | Project | Score |
|---|---|---|
| #29 | LatitudeAgent observability that groups failures and dispatches coding agents to fix them | 77 out of 100 |
| #30 | optillmOpenAI-compatible proxy that applies inference-time reasoning techniques to any LLM | 76 out of 100 |
| #32 | vllm-project/semantic-routerPolicy-driven router that selects or combines models behind one API endpoint | 75 out of 100 |
| #33 | agentgatewayOne proxy for LLM, MCP and A2A traffic with auth and RBAC | 75 out of 100 |
| #34 | PlanoEnvoy-based data plane that routes, traces and guards agent traffic | 74 out of 100 |