# SMG LLM Gateway: Multi-Engine Routing & OpenAI API Compatibility

> **TL;DR**: Deploy SMG (Shepherd Model Gateway) in Rust to route OpenAI/Anthropic-compatible traffic across vLLM, SGLang, TRT-LLM and cloud APIs with KV-cache-aware load balancing.
> **Source**: https://ai.yevrix.com/articles/smg-llm-gateway-multi-engine-routing-guide

## Why an engine-agnostic gateway matters

A realistic self-hosted inference stack is rarely one engine. You may run vLLM for one model family, SGLang for another, TRT-LLM for latency-critical paths, and still call OpenAI or Gemini for overflow. Each engine has its own health endpoint, tokenizer quirks, and startup behavior, yet your clients want a single `POST /v1/chat/completions`. SMG (Shepherd Model Gateway) is a Rust gateway built

...

> Full engineering guide unlocked at https://ai.yevrix.com/articles/smg-llm-gateway-multi-engine-routing-guide
