Head-to-headPublished July 16, 2026· Last verified July 16, 2026

Portkey vs OpenRouter (2026): AI Gateway vs Model Router — and Where Kosmoy Fits

Portkey is a control plane you can self-host; OpenRouter is a hosted marketplace that routes to 400+ models. Both put one endpoint in front of many providers, from opposite ends. Here is how they differ, and where each stops being a routing question.

Portkey and OpenRouter both give applications one OpenAI-compatible endpoint in front of many model providers, but they are different kinds of product. Portkey is an AI gateway and control plane — observability, guardrails, prompt management and a documented self-hosting ladder up to air-gapped — now part of Palo Alto Networks. OpenRouter is a hosted marketplace and router: 400+ models behind one API, pass-through provider pricing, and routing that optimizes for price, throughput and latency, with a lighter governance layer added in 2026.

This page compares the two on the capability axes that matter, with every claim cited to each vendor's own documentation. It then does something a straight head-to-head cannot: it asks what happens when the requirement grows past routing — inventory, compliance evidence, agent containment — which is where a full AI management platform like Kosmoy enters the frame.


Who each product is for

Portkey

Portkey speaks to platform and AI engineering teams standardizing LLM access across many teams: a control plane with request logging (21+ metrics), budgets per key, a guardrails library and a prompt-engineering studio, spanning SaaS, hybrid and air-gapped deployments. Its open-source gateway core (MIT, ~12.4k stars) makes adoption easy; the platform monetizes the operational layer, and it now ships an MCP Gateway and an Agent Gateway for A2A agents.

Since May 2026 it belongs to Palo Alto Networks, folded into Prisma AIRS — enterprise security distribution, with a quieter public docs changelog since April 2026.

OpenRouter

OpenRouter speaks to developers, AI startups and, increasingly, enterprises that want one API for many models without running gateway infrastructure: a hosted marketplace over 400+ models with pass-through provider pricing (no per-token markup), provider order/allow-deny routing, price/throughput/latency sorting and automatic failover.

In 2026 it added an enterprise layer — Organizations, Workspaces and Guardrails (per-key spend limits, prompt-injection defense against 30+ OWASP-derived patterns, PII redaction) plus EU in-region routing — while remaining SaaS-only. It reported 25 trillion tokens a week at its May 2026 Series B, so scale and momentum are not the question; sovereignty and governance breadth are.


Portkey vs OpenRouter vs Kosmoy — the capability radar

Three shapes on the same ten axes. Portkey (orange) peaks on Gateway & Policy Control (9) and Observability & FinOps (9), with a full self-hosting ladder that earns a 9 on sovereignty. OpenRouter (violet) sits lower on gateway (7) as a hosted router and 5 on observability, and drops to 2 on sovereignty — it is SaaS-only. Both cluster low on the governance axes: inventory, compliance and containment are not what either is for. Kosmoy (blue) trades a little raw gateway breadth for reach across inventory, compliance and agent containment. Read it as area: the two route traffic on one spoke; the suite covers the web.

  • Portkey
  • OpenRouter
  • Kosmoy
Portkey vs OpenRouter vs Kosmoy — capability radarCapability radar comparing Portkey, OpenRouter and Kosmoy across ten axes, scored 0 to 10. AI Inventory & Discovery: Portkey 5, OpenRouter 1, Kosmoy 9; Security & Shadow AI: Portkey 4, OpenRouter 3, Kosmoy 8; Observability & FinOps: Portkey 9, OpenRouter 5, Kosmoy 7; Gateway & Policy Control: Portkey 9, OpenRouter 7, Kosmoy 8; Guardrails & Runtime Safety: Portkey 8, OpenRouter 5, Kosmoy 8; Agent Containment: Portkey 4, OpenRouter 2, Kosmoy 9; Compliance & Audit: Portkey 5, OpenRouter 2, Kosmoy 9; Testing, Evals & Red-teaming: Portkey 3, OpenRouter 0, Kosmoy 4; Agent Building: Portkey 2, OpenRouter 0, Kosmoy 6; Deployment Sovereignty: Portkey 9, OpenRouter 2, Kosmoy 10.246810AI Inventory &DiscoverySecurity &Shadow AIObservability &FinOpsGateway &Policy ControlGuardrails &Runtime SafetyAgentContainmentCompliance &AuditTesting, Evals &Red-teamingAgent BuildingDeploymentSovereignty
Capability scores, axis by axis
Capability (0–10)PortkeyOpenRouterKosmoy
AI Inventory & Discovery519
Security & Shadow AI438
Observability & FinOps957
Gateway & Policy Control978
Guardrails & Runtime Safety858
Agent Containment429
Compliance & Audit529
Testing, Evals & Red-teaming304
Agent Building206
Deployment Sovereignty9210

Bold marks the highest score on each row. 10 is reserved for categorical architectural facts; specialists are expected to outscore platforms on their own spoke.


Where Portkey wins

Depth of the control plane. Portkey ships request-level observability (21+ metrics), a guardrails library with synchronous blocking (HTTP 446) plus a broad partner ecosystem, and a prompt-engineering studio — an observability and guardrails depth OpenRouter does not match (Portkey observability).

Sovereignty. A documented deployment ladder — MIT open-source gateway self-hosted anywhere, hybrid with the data plane in your VPC, and a fully air-gapped enterprise option with FIPS-compliant images — where OpenRouter is SaaS-only with EU in-region routing as its sole residency control.

MCP and agent governance. A GA MCP Gateway with per-user tool provisioning and full tool-call logging, plus an Agent Gateway (April 2026) with skill-level RBAC for A2A agents — governance surfaces OpenRouter does not offer.

Enterprise trust posture. SOC 2, ISO 27001, GDPR and HIPAA certifications with custom BAAs, and enterprise security backing since the Palo Alto Networks acquisition (Prisma AIRS).

Where OpenRouter wins

Model breadth and pass-through pricing. OpenRouter exposes 400+ models across dozens of providers behind one endpoint with pass-through provider prices and no per-token markup, monetizing a credit fee instead — cost transparency that matters at high volume (OpenRouter FAQ).

Marketplace routing and data-policy controls. Provider order/allow-deny lists, price/throughput/latency sorting, automatic failover across many providers, and strong data-policy routing — per-request `data_collection: deny`, `zdr: true` to require Zero Data Retention endpoints, and EU in-region processing.

Scale, momentum and independence. OpenRouter reported 25 trillion tokens a week at its May 2026 CapitalG-led Series B (~$1.3B valuation) and remains independent and fast-moving, where Portkey's public roadmap has quieted under Palo Alto Networks and its OSS gateway has not released since January 2026.

Zero infrastructure. Instant access to many providers with nothing to operate — the lightest possible adoption for a team that does not want to run a gateway at all.


Where Kosmoy fits

The specialist owns its spoke; the platform holds the frontier

Both Portkey and OpenRouter answer “how do we route and govern model traffic?” Portkey answers it as a control plane you can own; OpenRouter as a hosted marketplace you consume. Neither answers “what AI are we running across the whole organization, is it compliant, and what happens when an agent misbehaves?” Those are different questions, and in a regulated enterprise they arrive together.

Kosmoy includes the gateway both products are — one OpenAI-compatible policy point with guardrails, RBAC, budgets and logging — but wraps it in the three layers a gateway or router leaves out: a risk-tiered inventory of every model, MCP server and agent (including a master agent registry that pulls from Foundry, Bedrock, Vertex, Salesforce and ServiceNow); EU AI Act, ISO 42001 (aligned) and NIST AI RMF evidence from registry state plus gateway logs; and kernel-enforced Action Capsule containment for agents that act.

So the honest framing is not “Kosmoy beats Portkey and OpenRouter at routing” — Portkey is the deeper gateway and OpenRouter the broader marketplace, and Kosmoy is neither a 400+-model catalog nor a tracing suite. It is that routing is one spoke. If the requirement is the whole web — inventory, gateway, compliance and containment in one self-hosted platform — that is a suite decision, not a routing decision.

CapabilityCapabilityPortkeyOpenRouterKosmoy
OpenAI-compatible multi-provider endpoint
Model breadth1,600+ models / 45+ providers400+ models (marketplace)Multi-provider gateway
Guardrails in the request pathPartial — spend/DLP/prompt-injection
Request observability / FinOpsBasic (usage, spend limits)
Org-wide AI inventory (beyond the gateway)
Master agent registry (Foundry/Bedrock/Vertex/…)
EU AI Act / ISO 42001 / NIST evidence
Kernel-enforced agent containment
Self-hosted / air-gapped
Open-source coreGateway only (MIT)
Pricing modelFree tier; Pro; enterprise quotePass-through + credit feeEnterprise subscription

Last verified July 16, 2026 against each vendor's public documentation.


Which should you choose?

For a team whose problem genuinely is model traffic, pick on the axis that matters: OpenRouter for the widest catalog with no infrastructure to run, Portkey for a control plane with depth you can self-host. Both are OpenAI-compatible, so switching later is largely a base-URL and key change.

For an enterprise that has to prove control over all of its AI — not just route it — the choice is not between these two but between a routing layer and a suite. Kosmoy can also sit in front of either: some teams keep OpenRouter for model breadth or Portkey for observability while Kosmoy holds the inventory, compliance evidence and containment for what reaches production.


Questions buyers ask

Is Portkey or OpenRouter better?

Neither is universally better — they are different products. OpenRouter is a hosted marketplace optimized for model breadth (400+ models) and pass-through pricing with no infrastructure to run, ideal for teams that want many providers behind one API fast. Portkey is a self-hostable control plane with deeper observability, guardrails and prompt management, ideal for teams that want to own the gateway and deploy it up to air-gapped. Portkey is now owned by Palo Alto Networks; OpenRouter remains independent.

What is the difference between an AI gateway and a model router?

A model router like OpenRouter focuses on choosing and reaching the best provider for each request — order and allowlists, price/throughput/latency sorting, failover — as a hosted service. An AI gateway like Portkey adds a control-plane layer around that traffic: request observability, guardrails, budgets, prompt management and, in Portkey's case, self-hosting. The categories overlap; the practical question is how much control and depth you need versus how much breadth and how little operational overhead.

Can I self-host Portkey or OpenRouter?

Portkey, yes: its gateway core is MIT-licensed and self-hostable, and the enterprise product offers hybrid (data plane in your VPC) and fully air-gapped deployments with FIPS-compliant images. OpenRouter is SaaS-only — all traffic flows through its infrastructure, with EU in-region routing as the sole data-residency option. If self-hosting is a requirement, Portkey or a self-hosted platform like Kosmoy fits; OpenRouter does not.

Do Portkey or OpenRouter handle EU AI Act compliance?

Not as products. Both provide logs, access controls and data-policy features that support a compliance program, but neither documents EU AI Act, ISO 42001 or NIST AI RMF evidence generation or AI risk classification as of July 15, 2026. That evidence layer is a governance-platform capability — Kosmoy generates it from its registries and gateway logs. Note the timeline: under the Digital Omnibus (May 2026), high-risk obligations now land in December 2027 and August 2028, with Article 50 transparency from August 2, 2026.

Where does Kosmoy fit against Portkey and OpenRouter?

Kosmoy includes the same kind of OpenAI-compatible gateway both provide, but it is one layer of a full AI management platform: organization-wide inventory, compliance evidence, and kernel-enforced agent containment sit alongside it, self-hosted. If your requirement is only model routing, OpenRouter or Portkey is the lighter answer; if it is proving control over all your AI in your own infrastructure, that is a suite decision.


Sources

Every factual claim about another vendor on this page traces to that vendor's own published material or a named third-party source below.

  1. Portkey OSS gateway repository (MIT) — accessed July 15, 2026
  2. OpenRouter FAQ (fees, data-retention defaults) — accessed July 15, 2026
  3. OpenRouter — $113M Series B, 25T tokens/week (Business Wire, May 2026) — accessed July 15, 2026
  4. Kosmoy AI Gateway — accessed July 16, 2026
  5. Portkey docs — what is Portkey — accessed July 15, 2026
  6. Portkey docs — plan & feature comparison (SaaS / hybrid / air-gapped) — accessed July 15, 2026
  7. Portkey docs — observability — accessed July 15, 2026
  8. Portkey docs — guardrails — accessed July 15, 2026
  9. Portkey docs — MCP gateway — accessed July 15, 2026
  10. Portkey pricing — accessed July 15, 2026
  11. Palo Alto Networks press release — Portkey acquisition completed (May 29, 2026) — accessed July 15, 2026
  12. Provider routing docs — accessed July 15, 2026
  13. Guardrails announcement — accessed July 15, 2026
  14. Introducing Workspaces — accessed July 15, 2026
  15. TechCrunch — OpenRouter valuation to $1.3B — accessed July 15, 2026

One suite instead of two point tools

Kosmoy puts an inventory, a policy gateway, compliance evidence and a containment sandbox around every AI your teams run — in your own Kubernetes.

Or email sales@kosmoy.com.