macrostack
Best of · 7 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.

L4Models & tooling — layer 4 of the AI stack
  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

    Direct SDKs (no framework)

    Open source

    Call each provider's own API: no router in the path, no fee on top.

    Free; you pay each model provider directly. · in our OpenRouter comparison →

    93
    sovereignty
    What is Direct SDKs (no framework)? →
  3. 3

    Helicone

    Open source

    Gateway and observability in one proxy — Apache-2.0, now part of Experiential Labs.

    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? →
  4. 4

    Bifrost

    Open source

    An Apache-2.0 gateway in Go, started with one command.

    Free and open source (Apache-2.0); you pay the providers directly. Enterprise edition by contact, with a 14-day trial. · in our OpenRouter comparison →

    88
    sovereignty
    What is Bifrost? →
  5. 5

    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)? →
  6. 6

    OpenRouter

    Commercial

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

    No subscription: tokens at the providers' own prices, plus a 5.5% fee on credit purchases (read 17 Nov 2026). 25+ free models at 50 requests a day. · in our Portkey comparison →

    32
    sovereignty
    What is OpenRouter? →
  7. 7

    Vercel AI Gateway

    Commercial

    A hosted gateway with no markup on tokens.

    No markup and no platform fee on tokens; payment-processing fees are passed on. Free tier with a subset of models and rate limits. Add-ons such as regional hosting (5%) cost extra. · in our OpenRouter comparison →

    30
    sovereignty
    What is Vercel AI Gateway? →

Is it free?

The free tier, its real limits and where you start paying — read from each vendor's own pricing page and dated.

Run these yourself

What each one actually needs — real RAM, honest running cost, and the setup time nobody quotes.

  • Self-hosting LiteLLM 2 GB
  • Self-hosting Helicone 8 GB. The all-in-one container runs the web dashboard, the Jawn API and proxy, PostgreSQL, ClickHouse and MinIO together, and ClickHouse's own sizing guide says total memory should not go below 8 GB.

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.