</>macrostackBrowse all
Head-to-head · LLM Gateways & Routing

Portkey Gateway (self-hosted) vs OpenRouter

Both are alternatives to Portkey. Here's how they stack up — verified facts, no spin.

Also searched as OpenRouter vs Portkey Gateway (self-hosted) — same comparison, one verdict.

86

Portkey Gateway (self-hosted)

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

OPEN SOURCEMITSELF-HOSTLOCAL-FIRST

Worth knowing before you buy the platform: Portkey publishes its gateway as open source under the MIT licence, so the routing engine — 250+ models, failover, load balancing, caching — can be self-hosted at no cost. What the subscription adds is the hosted control plane: dashboards, prompt management, guardrails, analytics and support. If your requirement is the routing and not the console, this is the same engine without the bill or the third-party data path.

32

OpenRouter

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

SOURCE-AVAILABLEProprietary (hosted service)

OpenRouter is a hosted router: a single API key and one OpenAI-compatible endpoint in front of hundreds of models across providers, with automatic fallback and a unified bill. There is nothing to deploy and no subscription — you pay per token with a small margin on top of provider rates. If what you actually wanted was to stop juggling five provider accounts, this solves it in an afternoon and is frequently the right answer even for teams who could self-host.

Side by side

 Portkey Gateway (self-hosted)OpenRouter
Sovereignty Score8632
Open sourceYesNo
Self-hostableYesNo
Local-firstYesNo
LicenseMITProprietary (hosted service)
PricingFree — the gateway is MIT-licensed. You pay only your model providers and your own hosting.No subscription — pay-as-you-go per token at provider rates plus a small margin. Some free models are available.
The verdict

Portkey Gateway (self-hosted) edges it on the Sovereignty Score, but the right pick depends on the trade-offs below.

Portkey Gateway (self-hosted)

Strengths

  • +MIT licence on the full routing engine
  • +Same 250+ model coverage as the hosted product
  • +The lowest-friction exit from Portkey's paid tier — same engine, same config shape
  • +No third party in the request path when self-hosted

Trade-offs

  • You lose the dashboards, prompt management and guardrails that justify the subscription
  • Development cadence is slower than LiteLLM's
  • Smaller self-hosting community, so fewer worked examples when something breaks
  • You are self-hosting a vendor's open core — feature direction still follows their commercial product

OpenRouter

Strengths

  • +Zero operations: one key, one endpoint, hundreds of models
  • +No monthly fee — you pay only for tokens used
  • +Unified billing across providers, with automatic fallback
  • +The fastest way to test many models without opening accounts everywhere

Trade-offs

  • Hosted and proprietary: every prompt transits OpenRouter
  • A margin on token spend rather than provider cost
  • No self-hosting path at all
  • Score of 32 reflects a closed hosted service — a transparency lens, not a judgement on quality
See all 4 Portkey alternatives →

Related alternative guides

Facts verified 2026-07-30. Licenses and pricing change — spotted something out of date? That's a correction we want.

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.