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.
Portkey Gateway (self-hosted)
Portkey's own routing engine, MIT-licensed and running on your hardware.
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.
OpenRouter
One key, hundreds of models, nothing to run — the honest hosted pick.
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 Score | 86 | 32 |
| Open source | Yes | No |
| Self-hostable | Yes | No |
| Local-first | Yes | No |
| License | MIT | Proprietary (hosted service) |
| Pricing | Free — 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. |
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
Related alternative guides
Facts verified 2026-07-30. Licenses and pricing change — spotted something out of date? That's a correction we want.