Skip to content

Kaeso vs Portkey Gateway

Full self-hosted Rust gateway & console at 6,338 req/s vs TypeScript open core at 779 req/s.

Back to all comparisons
6,338
requests a second for Kaeso 0.7.0 on two cores
779
requests a second for Portkey on the same two cores
7.8ms
p99 gap between streamed chunks for Kaeso
8.6ms
p99 gap between streamed chunks for Portkey

In short.

Portkey pairs an MIT TypeScript routing gateway with a commercial cloud platform for analytics, prompt management and enterprise governance. Kaeso is built exclusively for self-hosting: a Rust gateway benchmarked at 6,338 req/s versus Portkey 1.15.2 at 779 req/s, with the full web console, hard Valkey budgets, OIDC SSO, SCIM 2.0 and ClickHouse logs all inside the MIT repository.

How a request travels.

Where API keys live, where budgets and translation happen, and where prompts and logs are stored.

Kaeso 0.7.0

  1. 01Your app sends a request with its own OpenAI, Anthropic, Gemini or ElevenLabs SDK.
  2. 02Kaeso checks the key, the model and the budget on your server, in Valkey.
  3. 03It calls one of 50 providers, or your Ollama or vLLM server, with your own key.
  4. 04Usage goes to PostgreSQL and the request log to your ClickHouse.

Portkey Gateway

  1. 01Your app sends an OpenAI-compatible request with Portkey config headers.
  2. 02The Portkey gateway, in Node.js, runs its plugins and routing rules.
  3. 03A provider adapter calls the cloud provider or a custom local host.
  4. 04Logs stay in the open-source console or go to Portkey's commercial cloud.

Feature by feature.

Verified on 23 November 2026 against each project's repository, documentation and our published benchmark run.

View comparison sources on GitHub
CriterionKaeso 0.7.0Portkey Gateway
Self-hosted on your own serversKaeso 0.7.0Self-hosted onlyPortkey GatewaySelf-hosted OSS core + commercial cloud platform
Gateway runtimeKaeso 0.7.0Rust (single binary + Postgres, Valkey, optional ClickHouse)Portkey GatewayTypeScript (Node.js)
Open-source licenceKaeso 0.7.0MIT (everything in one repo)Portkey GatewayMIT core (control plane commercial)
OIDC SSO & SCIM in free codeKaeso 0.7.0Yes: OIDC SSO, SCIM 2.0, 2FA, audit logs, no user capPortkey GatewayEnterprise tier
Spend & token limitsKaeso 0.7.0Hard & soft budgets reserved in Valkey (exact USD + display currency)Portkey GatewayWorkspace budgets (advanced controls Pro / Enterprise)
Fallbacks & routingKaeso 0.7.0Alias routes (fallbacks, conditions, splits) + weighted sticky key poolsPortkey GatewayConfig-driven fallbacks, retries & semantic cache
Request logs & privacyKaeso 0.7.0Own ClickHouse, content logging off per org/project, CSV/JSONL exportPortkey GatewayLocal request logs in OSS; full analytics hosted
Local models (Ollama, vLLM, LM Studio)Kaeso 0.7.0Custom providers with auto-detect (Ollama, vLLM, LM Studio, llama.cpp)Portkey GatewayYes, via custom host routing
Inbound API formatsKaeso 0.7.0OpenAI Chat & Responses, Anthropic Messages, Gemini API, ElevenLabsPortkey GatewayOpenAI-compatible + provider headers
MCP tool gateway & guardrailsKaeso 0.7.0Per-project OAuth MCP portal + built-in secrets/PII & HTTP guardrailsPortkey GatewayGuardrails framework + plugins
Measured throughput (2 cores, 64 clients)Kaeso 0.7.06,338 req/sPortkey Gateway779 req/s (2 cores, 64 clients)

Five verified benchmark dimensions.

Every bar reads directly from our published ai-gateway-bench results on two dedicated cores. Switch metric to compare throughput, tail latency, streaming smoothness, coding-agent sessions and CPU efficiency.

Inspect every table, image digest and raw file
Higher is better
  1. 01Kaeso0.7.06,338 req/s6,086–6,355
  2. 02Kaeso0.7.0, request logs on5,324 req/s5,085–5,388
  3. 03LiteLLM Rustmain at d4e8f96, unreleased3,211 req/s3,146–3,265
  4. 04Bifrost2.6.02,806 req/s2,777–2,819
  5. 05Portkey1.15.2779 req/s776–793
  6. 06LiteLLM Python1.110.274 req/s74–75

Benchmarked on BerriAI's ai-gateway-bench (two dedicated cores, 64 clients, median of three rounds). Full scripts and raw archives at /benchmarks.

Choose Kaeso when

  1. 01You want 8x higher throughput on the same hardware (6,338 vs 779 req/s) and +1.47 vs +20.40 ms p99 added latency at 16 clients.
  2. 02You need the full web console, hard budgets, OIDC SSO, SCIM, audit logs and analytics 100% self-hosted with no commercial control plane.
  3. 03You want apps to keep standard OpenAI, Anthropic, Gemini and ElevenLabs SDKs without custom gateway routing headers.
  4. 04You need an OAuth MCP portal per project alongside built-in secrets and PII guardrails.

Choose Portkey Gateway when

  1. 01You want a managed SaaS control plane with prompt management, semantic caching and pre-built third-party guardrail marketplace plugins.
  2. 02Your team already uses Portkey's commercial enterprise platform and TypeScript plugin ecosystem.

Common questions.

01Why is Kaeso faster than Portkey Gateway in benchmarks?
Kaeso runs as a single compiled Rust binary with zero interpreter overhead on the request path, serving 6,338 req/s (314 µs CPU/req) on two cores versus Portkey 1.15.2 (Node.js/TypeScript) at 779 req/s (1,449 µs CPU/req).
02What features are free in self-hosted Kaeso that Portkey gates commercially?
Kaeso ships the complete multi-organization web console, nested hard spend budgets, analytics, OIDC SSO, SCIM 2.0, custom RBAC roles and audit logs under MIT, whereas Portkey's open-source gateway focuses on routing and basic local logs while reserving full governance for commercial plans.
03Does Kaeso include guardrails like Portkey?
Yes. Kaeso 0.7.0 includes built-in secrets and PII guardrails plus custom HTTP guardrail hooks that inspect chat requests and replies before tokens reach providers.

Measure it on your own stack.

Install Kaeso with one command, point one SDK at it, or rerun our published benchmark harness on your own hardware.