Switchyard¶
Switchyard routes and translates LLM traffic for coding agents and API clients. It supports OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages.
Choose a Path¶
| Goal | Path | Start here |
|---|---|---|
| Run Switchyard as a standalone proxy for API clients | Server Path | Build and run the Rust server |
| Add Switchyard routing to a Rust application | Library Path | switchyard-libsy |
The Server Path builds and runs the standalone switchyard-server binary.
Explore¶
- Core Concepts: learn the LLM client, target, and route layers
- Routing Algorithms: choose how requests select a model
- Architecture: understand the proxy and library components
- Server CLI Reference: inspect
switchyard-servercommands and options - Rust API: browse libsy and protocol crate documentation
- Context-Window Handling: configure eviction and retry behavior
Reference¶
switchyard-server: server configuration, endpoints, and metricsswitchyard-libsy: embeddable routing algorithmsswitchyard-protocol: provider-neutral API typesswitchyard-translation: protocol translation