Decision Framework
Choose LiteLLM if: you want open-source, self-hosted control, need to support many providers, and have engineering capacity to operate it. Choose Portkey if: you want a managed service with semantic caching, advanced analytics, and enterprise compliance features. Choose OpenRouter if: you want a simple pay-per-use proxy without running infrastructure. Build your own if: you have very specific routing logic, need deep integration with internal systems, or have strict data residency requirements. Most teams should start with LiteLLM (free, self-hosted, covers 90% of needs) and evaluate Portkey if they need advanced observability or semantic caching.
Gateway Comparison
// LLM gateway comparison
LiteLLM Portkey OpenRouter
License: MIT Commercial Commercial
Hosting: Self Cloud/Self Cloud only
Providers: 100+ 100+ 50+
Fallbacks: Yes Yes Limited
Caching: Exact Semantic No
Analytics: Basic Advanced Basic
Guardrails:No Yes No
Cost: Free $$ Per-token
Best for: Self-host Enterprise Simple proxy
// Recommendation:
// Start → LiteLLM (free, flexible)
// Scale → Portkey (if you need analytics)
// Simple → OpenRouter (zero setup)
Key insight: The gateway is the control plane for your LLM operations. Once in place, you can change models, add providers, adjust routing, and control costs — all without touching application code. It’s the single highest-leverage LLMOps investment.