</>macrostackBrowse all
Best of · 4 tools ranked

The best LLM Gateways & Routing

Every option ranked — open-source, self-hostable, and commercial — by our transparent Sovereignty Score, with honest trade-offs so you choose what fits you, not us.

The layer between your application and the model providers — routing, failover, caching, virtual keys and spend limits. Hosted control planes compared against gateways you run yourself.

  1. 1

    LiteLLM

    Top pickOpen source

    One OpenAI-compatible API in front of 100+ providers, running on your own box.

    Free and self-hosted — you pay the model providers directly with no markup, plus hosting for a small VM (roughly $20–50/month). A paid enterprise tier exists for SSO, audit logs and support. · in our Portkey comparison →

    90
    sovereignty
    What is LiteLLM? →
  2. 2

    Helicone

    Open source

    Apache-2.0 gateway in Rust, with observability built in rather than bolted on.

    Free and self-hostable under Apache-2.0. The hosted service has a free tier of roughly 10,000 requests per month, with paid plans starting around $79/month. · in our Portkey comparison →

    88
    sovereignty
    What is Helicone? →
  3. 3

    Portkey Gateway (self-hosted)

    Open source

    Portkey's own routing engine, MIT-licensed and running on your hardware.

    Free — the gateway is MIT-licensed. You pay only your model providers and your own hosting. · in our Portkey comparison →

    86
    sovereignty
    What is Portkey Gateway (self-hosted)? →
  4. 4

    OpenRouter

    Commercial

    One key, hundreds of models, nothing to run — the honest hosted pick.

    No subscription — pay-as-you-go per token at provider rates plus a small margin. Some free models are available. · in our Portkey comparison →

    32
    sovereignty
    What is OpenRouter? →

Replacing a specific tool?

Head-to-head comparisons for each popular llm gateways & routing product.

Straight head-to-heads

Two llm gateways & routing tools, side by side — verified facts and a plain verdict.

The Macrostack brief

New swaps, worth your inbox.

A short, occasional email when we add a high-intent alternative or ship a new head-to-head. No spam, no selling your address — unsubscribe in one click.