LiteLLM vs Portkey
Portkey is a commercial AI gateway. LiteLLM covers similar ground in an open source package that you host: a unified OpenAI-format API, virtual keys with budgets, guardrails, caching, load balancing, and observability callbacks. The practical difference is where it runs. With LiteLLM, the proxy and its logs live on your infrastructure and you carry the operational work. Check Portkey's current feature list and pricing directly before deciding, since this page only describes LiteLLM from its own docs.
LiteLLM vs OpenRouter
OpenRouter is a commercial service for reaching many models through one API. LiteLLM gives you the same single-interface idea, but you bring your own provider accounts and keys, and the gateway runs where you put it. That means you pay providers directly and keep routing rules under your control, in exchange for running the service yourself. LiteLLM also adds team budgets, an admin UI, and MCP and A2A gateways.
Which to pick
Choose LiteLLM when key custody, self-hosting, and per-team spend control matter more than avoiding operations work. Choose a hosted gateway when you want someone else to run the infrastructure.