llm-d-router vs router

LLM inference routing and agent model routing compared

llm-d-router directs LLM inference traffic within model-serving infrastructure, while router provides a proxy that routes agent and application requests across model providers. Their main difference is focus: llm-d-router uses inference signals such as backend load and KV-cache locality, while router scores actions to select a model.

llm-d-routerrouter
LanguageGoGo
LicenseApache-2.0Apache-2.0
Stars4225.6k
Forks472159
Last analyzedOct 20, 2026Oct 20, 2026

Key differences

  • llm-d-router targets inference infrastructure and Kubernetes deployments; router targets agent clients and applications using Anthropic, OpenAI, or Gemini APIs.
  • llm-d-router selects endpoints using InferencePool state, including load and KV-cache locality; router uses an in-process cluster scorer derived from Avengers-Pro to select a model per action.
  • llm-d-router integrates with Envoy through ext-proc and supports Gateway API deployments; router presents a single endpoint to clients and connects to configured hosted providers or OpenAI-compatible endpoints.
  • llm-d-router includes request prioritization, flow control, and a sidecar for coordinating inference stages; router includes route previews, usage and cost analytics, and OpenTelemetry traces.
  • Both projects are written in Go and licensed under Apache-2.0. llm-d-router has 422 stars and 472 forks, while router has 5.6k stars and 159 forks.
  • llm-d-router is described as active, with regular commits and releases; router has high recent activity but a sparse measured release history, and its Cursor support is labeled early beta.

Choose llm-d-router if you…

  • need routing decisions based on inference-backend load or KV-cache locality.
  • want to connect model-serving infrastructure through Envoy or Kubernetes Gateway API.
  • need request prioritization or coordination across prefill, decode, and encode stages.
Read the llm-d-router analysis →

Choose router if you…

  • want agent clients such as Claude Code or Codex to route requests among configured models through one endpoint.
  • need a per-action model scorer and support for Anthropic, OpenAI, or Gemini API clients.
  • want route previews, usage and cost analytics, or OpenTelemetry traces.
Read the router analysis →

Compare the numbers side by side, or add more projects

This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.