inference-gateway vs router

Go proxies for routing requests across AI providers

inference-gateway and router are Go proxies that give clients a shared API for requests to multiple AI providers. inference-gateway emphasizes provider compatibility, MCP tools, authentication, guardrails, and observability; router emphasizes scored model selection, routing inspection, and a self-hosted dashboard.

inference-gatewayrouter
LanguageGoGo
LicenseApache-2.0Apache-2.0
Stars2155.6k
Forks48159
Last analyzedOct 23, 2026Oct 20, 2026

Key differences

  • inference-gateway supports OpenAI-compatible chat across cloud and local providers, plus Anthropic Messages and OpenAI Responses endpoints; router accepts Anthropic Messages, OpenAI Chat Completions, and Gemini formats.
  • inference-gateway can connect MCP tool servers and provides OIDC authentication, authorization, TLS, and configurable guardrails; router offers an in-process cluster scorer and a route-inspection endpoint.
  • inference-gateway lists OpenTelemetry metrics, Prometheus export, and OTLP metrics push; router exports traces through OTLP and provides routing analytics endpoints.
  • inference-gateway offers container and Kubernetes deployment options, including a companion operator; router offers a self-hosted dashboard and stores provider keys encrypted at rest when self-hosted.
  • Both projects use Go and list Apache-2.0, though router notes that the license applies to releases beginning with router-v0.2.24, while earlier releases retain their shipped licenses.
  • The listed project metrics differ: inference-gateway has 214 stars and 50 forks, while router has 5.6k stars and 151 forks.

Choose inference-gateway if you…

  • need MCP tool-server integration or configurable authentication and request guardrails.
  • want a common API for cloud and local providers, with container or Kubernetes deployment options.
  • need metrics via Prometheus or OpenTelemetry for a self-hosted gateway.
Read the inference-gateway analysis →

Choose router if you…

  • want requests routed to enabled models using an in-process cluster scorer.
  • need to inspect routing decisions without calling an upstream provider.
  • want a self-hosted dashboard and provider keys encrypted at rest on your own infrastructure.
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.