---
title: "Open-source AI gateways, compared"
description: "Kaeso 0.7.0 beside LiteLLM, OpenRouter, Bifrost, Portkey, Helicone, Kong, Cloudflare, agentgateway, TensorZero and One API. Where each one runs, what is free in open source, how fast it is, and when another tool fits better."
url: https://kaeso.app/compare
markdown: https://kaeso.app/compare.md
language: en
alternates:
  de: https://kaeso.app/de/compare.md
  zh-CN: https://kaeso.app/zh-CN/compare.md
updated: 2026-11-23
kaeso_version: 0.7.0
index: https://kaeso.app/llms.txt
---

# Open-source AI gateways, compared

Kaeso 0.7.0 beside LiteLLM, OpenRouter, Bifrost, Portkey, Helicone, Kong, Cloudflare, agentgateway, TensorZero and One API. Where each one runs, what is free in open source, how fast it is, and when another tool fits better.

> Every page, article and docs page of Kaeso is listed in https://kaeso.app/llms.txt.

[Read the benchmarks](https://kaeso.app/benchmarks.md) · [Migrate from LiteLLM](https://kaeso.app/articles/migrate-from-litellm.md)

## Ten gateways across ten checks

Every column links to a dedicated head-to-head comparison. Filled means included free in open source, half means partial or enterprise-gated, dash means absent or hosted only.

- [Kaeso vs LiteLLM](https://kaeso.app/compare/litellm.md) (6/10): Rust MIT gateway at 6,338 req/s vs Python proxy (74 req/s) and unreleased LiteLLM Rust (3,211 req/s).
- [Kaeso vs OpenRouter](https://kaeso.app/compare/openrouter.md) (1/10): Self-hosted zero-markup gateway with your own keys and local models vs hosted multi-model SaaS.
- [Kaeso vs Bifrost](https://kaeso.app/compare/bifrost.md) (8/10): Rust MIT gateway (6,338 req/s, 7.8 ms chunk gap) vs Maxim AI's Go gateway (2,806 req/s, 20.5 ms chunk gap).
- [Kaeso vs Portkey Gateway](https://kaeso.app/compare/portkey.md) (3/10): Full self-hosted Rust gateway & console at 6,338 req/s vs TypeScript open core at 779 req/s.
- [Kaeso vs Helicone](https://kaeso.app/compare/helicone.md) (4/10): Full Rust control-plane gateway with hard budgets & MIT SSO vs observability-first LLM logger.
- [Kaeso vs Kong AI Gateway](https://kaeso.app/compare/kong-ai-gateway.md) (4/10): Dedicated MIT Rust AI gateway with console & free SSO vs enterprise API gateway with paid AI plugins.
- [Kaeso vs Cloudflare AI Gateway](https://kaeso.app/compare/cloudflare-ai-gateway.md) (2/10): Self-hosted on your own servers with local models & SSO vs hosted edge proxy on Cloudflare.
- [Kaeso vs agentgateway](https://kaeso.app/compare/agentgateway.md) (7/10): Complete Rust AI gateway + web console + budgets + SSO vs Kubernetes-native data plane proxy.
- [Kaeso vs TensorZero](https://kaeso.app/compare/tensorzero.md) (6/10): Actively maintained MIT Rust AI gateway (v0.7.0) vs archived TensorZero Rust stack (June 2026).
- [Kaeso vs One API / New API](https://kaeso.app/compare/one-api.md) (5/10): Enterprise-grade MIT Rust gateway (SSO, SCIM, KPP, Valkey, ClickHouse) vs Go credit-relay aggregator.

## Side by side

Checked on 23 November 2026 against each project's repository, documentation and our published ai-gateway-bench run on two cores.

| Criterion | Kaeso 0.7.0 | LiteLLM | Bifrost 2.6.0 | Portkey Gateway | OpenRouter |
| --- | --- | --- | --- | --- | --- |
| Self-hosted on your own servers | Self-hosted only | Yes | Yes | Yes | No (hosted service) |
| Gateway runtime | Rust (single binary + Postgres, Valkey, optional ClickHouse) | Python (plus unreleased Rust beta) | Go | TypeScript (Node.js) | Hosted multi-tenant cloud |
| Open-source licence | MIT (everything in one repo) | MIT, except enterprise/ | Apache 2.0 (enterprise features separate) | MIT core (cloud control plane commercial) | Proprietary service |
| OIDC SSO & SCIM in free code | Yes: OIDC SSO, SCIM 2.0, 2FA, audit logs, no user cap | Up to 5 users; larger teams require Enterprise | Enterprise tier | Enterprise tier | Hosted organization plans |
| Spend & token limits | Hard & soft budgets reserved in Valkey (exact USD + display currency) | Virtual keys, team budgets, RPM/TPM limits | Virtual keys, hierarchical budgets, rate limits | Workspace budgets (some features in Pro / Enterprise) | Hosted credit limits per key |
| Fallbacks & routing | Alias routes (fallbacks, conditions, splits) + weighted sticky key pools | YAML fallback chains, retries, router load balancing | Failover chains, retries, load balancing, semantic cache | Config-driven fallbacks, retries, load balancing, semantic cache | Hosted provider routing and automatic fallbacks |
| Request logs & privacy | Own ClickHouse, content logging off per org/project, CSV/JSONL export | PostgreSQL + callbacks (Langfuse, S3, Datadog, OTEL) | Built-in logs, Prometheus and OpenTelemetry | Local logs in open core; full analytics in hosted platform | Hosted activity logs; zero-data-retention filters available |
| Local models (Ollama, vLLM, LM Studio) | Custom providers with auto-detect (Ollama, vLLM, LM Studio, llama.cpp) | Yes, via config.yaml api_base | Yes, via custom OpenAI-compatible endpoints | Yes, via custom host routing | No (cloud providers only) |
| Inbound API formats | OpenAI Chat & Responses, Anthropic Messages, Gemini API, ElevenLabs | OpenAI, Anthropic, Gemini, Bedrock pass-through | OpenAI, Anthropic, GenAI | OpenAI-compatible + provider-specific headers | OpenAI Chat Completions compatible |
| MCP tool gateway & guardrails | Per-project OAuth MCP portal + built-in secrets/PII & HTTP guardrails | MCP gateway + guardrail integrations | MCP gateway + governance plugins | Guardrails framework + plugins | None |
| Measured throughput (2 cores, 64 clients) | 6,338 req/s | 74 req/s (Python) / 3,211 req/s (Rust) | 2,806 req/s | 779 req/s | Hosted (not benchmarked locally) |

Benchmarked capacity is the median of three rounds at 64 clients on two dedicated cores; OpenRouter is a hosted service and is not part of the local gateway benchmark.

[View comparison sources on GitHub](https://github.com/logicplanes/kaeso#how-it-compares)

## Measured throughput on two cores

Every open-source gateway ran on the same machine under BerriAI's ai-gateway-bench. Kaeso checked project API keys, allowed models and wrote usage to PostgreSQL on every request while the others kept no state.

- Kaeso (0.7.0): 6,338
- Kaeso (0.7.0, request logs on): 5,324
- LiteLLM Rust (main at d4e8f96, unreleased): 3,211
- Bifrost (2.6.0): 2,806
- Portkey (1.15.2): 779
- LiteLLM Python (1.110.2): 74

Requests a second, the median of 3 rounds; the thin line runs from the slowest round to the fastest. The same driver reached 27,750 a second straight to the mock, far above any gateway.

[Inspect every table, image digest and raw file](https://kaeso.app/benchmarks.md)

## Where another tool fits better

Every architecture has trade-offs. Choose another option when these matter most to your team.

- **No servers to maintain**: Choose OpenRouter when you want hosted multi-model access and consolidated billing without running PostgreSQL, Valkey or a Docker host.
- **More than 50 niche providers or external callbacks**: Choose LiteLLM when you depend on a provider Kaeso does not ship yet or require built-in Langfuse and Datadog callback plugins. Or put LiteLLM behind Kaeso as a custom provider.
- **Smallest possible stateless footprint**: LiteLLM Rust ran in 86 MB with no database in our benchmark, compared with Kaeso's 164 MB plus 271 MB for PostgreSQL and Valkey when you do not need persistent users, budgets or logs.
- **Existing Kong or Kubernetes mesh**: If your platform team already runs Kong across every microservice and only needs lightweight AI plugins on existing routes, extending Kong avoids a second proxy tier.

## Deep-dive comparison and buyer guides

Each guide answers one concrete engineering decision with verified code, architecture details and benchmark data.

- [Kaeso vs LiteLLM: architecture, benchmarks and trade-offs](https://kaeso.app/articles/kaeso-vs-litellm.md): Throughput, streaming jitter, licensing, hard budgets, and when LiteLLM is still the better fit.
- [A self-hosted alternative to OpenRouter](https://kaeso.app/articles/self-hosted-openrouter-alternative.md): How to unify OpenAI, Anthropic, Gemini and local models on your own servers with zero markup.
- [One API for OpenAI, Anthropic, Gemini and local models](https://kaeso.app/articles/one-api-for-openai-anthropic-gemini-and-local-models.md): Keep the OpenAI, Anthropic or Google Gen AI SDK and route seamlessly across cloud and Ollama or vLLM.
- [Self-hosted LLM gateways compared: limits, fallbacks and logs](https://kaeso.app/articles/comparing-self-hosted-llm-gateways.md): How Kaeso, LiteLLM, Bifrost, Portkey and Helicone handle hard spend caps, routing and logging overhead.
- [Self-hosted AI gateway checklist: keys, logs and data control](https://kaeso.app/articles/self-hosted-ai-gateway-security-checklist.md): What to verify when provider keys, prompts and usage records must stay on your own infrastructure.
- [Migrate from LiteLLM in 5 minutes](https://kaeso.app/articles/migrate-from-litellm.md): Step-by-step base URL switch and line-by-line mapping from config.yaml to Kaeso.

## 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.

```bash
curl -fsSL https://kaeso.app/install.sh | sh
```

[Install Kaeso](https://docs.kaeso.app/self-hosting/installation) · [Open the live demo](https://demo.kaeso.app)
