---
title: Kaeso vs LiteLLM
description: "Rust MIT gateway at 6,338 req/s vs Python proxy (74 req/s) and unreleased LiteLLM Rust (3,211 req/s)."
url: https://kaeso.app/compare/litellm
markdown: https://kaeso.app/compare/litellm.md
language: en
alternates:
  de: https://kaeso.app/de/compare/litellm.md
  zh-CN: https://kaeso.app/zh-CN/compare/litellm.md
updated: 2026-11-23
kaeso_version: 0.7.0
index: https://kaeso.app/llms.txt
---

# Kaeso vs LiteLLM

Rust MIT gateway at 6,338 req/s vs Python proxy (74 req/s) and unreleased LiteLLM Rust (3,211 req/s).

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

[Install Kaeso](https://docs.kaeso.app/self-hosting/installation) · [Read the benchmarks](https://kaeso.app/benchmarks.md) · [Back to all comparisons](https://kaeso.app/compare.md)

Kaeso is a Rust, MIT-licensed self-hosted alternative to LiteLLM. On BerriAI's own ai-gateway-bench across two cores, Kaeso 0.7.0 served 6,338 req/s (5,324 with ClickHouse logs on) versus 3,211 req/s for unreleased LiteLLM Rust and 74 req/s for LiteLLM Python, while keeping OIDC SSO, SCIM 2.0, custom roles and audit logs free under MIT with no 5-user cap.

## 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. Your app sends a request with its own OpenAI, Anthropic, Gemini or ElevenLabs SDK.
2. Kaeso checks the key, the model and the budget on your server, in Valkey.
3. It calls one of 50 providers, or your Ollama or vLLM server, with your own key.
4. Usage goes to PostgreSQL and the request log to your ClickHouse.

### LiteLLM

1. Your app sends a request with the OpenAI, Anthropic or Gemini SDK.
2. The LiteLLM proxy, in Python or the Rust beta, reads its config.yaml.
3. It calls one of 100+ cloud or local endpoints with a key from env or the database.
4. Spend lands in PostgreSQL, with optional Langfuse, Datadog or S3 callbacks.

## Feature by feature

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

| Criterion | Kaeso 0.7.0 | LiteLLM |
| --- | --- | --- |
| Self-hosted on your own servers | Self-hosted only | Self-hosted (Docker, Kubernetes, Python) |
| Gateway runtime | Rust (single binary + Postgres, Valkey, optional ClickHouse) | Python (plus unreleased Rust beta) |
| Open-source licence | MIT (everything in one repo) | MIT, except enterprise/ |
| OIDC SSO & SCIM in free code | Yes: OIDC SSO, SCIM 2.0, 2FA, audit logs, no user cap | Free SSO up to 5 users; Enterprise beyond |
| Spend & token limits | Hard & soft budgets reserved in Valkey (exact USD + display currency) | Virtual key & team budgets in Postgres |
| Fallbacks & routing | Alias routes (fallbacks, conditions, splits) + weighted sticky key pools | YAML fallbacks, retries & router load balancing |
| Request logs & privacy | Own ClickHouse, content logging off per org/project, CSV/JSONL export | Postgres + callbacks (Langfuse, S3, Datadog, OTEL) |
| Local models (Ollama, vLLM, LM Studio) | Custom providers with auto-detect (Ollama, vLLM, LM Studio, llama.cpp) | Yes, via api_base in config.yaml |
| Inbound API formats | OpenAI Chat & Responses, Anthropic Messages, Gemini API, ElevenLabs | OpenAI, Anthropic, Gemini, Bedrock pass-through |
| MCP tool gateway & guardrails | Per-project OAuth MCP portal + built-in secrets/PII & HTTP guardrails | MCP gateway + guardrail integrations |
| Measured throughput (2 cores, 64 clients) | 6,338 req/s | 74 req/s (Python) / 3,211 req/s (unreleased Rust) |

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

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

### Throughput (req/s) (Higher is better)

- Kaeso (0.7.0): 6,338 req/s (6,086–6,355)
- Kaeso (0.7.0, request logs on): 5,324 req/s (5,085–5,388)
- LiteLLM Rust (main at d4e8f96, unreleased): 3,211 req/s (3,146–3,265)
- Bifrost (2.6.0): 2,806 req/s (2,777–2,819)
- Portkey (1.15.2): 779 req/s (776–793)
- LiteLLM Python (1.110.2): 74 req/s (74–75)

### p99 latency (16 clients) (Lower is better)

- Kaeso (0.7.0, request logs on): +1.45 ms (1.23–3.07 ms)
- Kaeso (0.7.0): +1.47 ms (1.44–1.57 ms)
- LiteLLM Rust (main at d4e8f96, unreleased): +2.26 ms (1.59–2.82 ms)
- Bifrost (2.6.0): +4.08 ms (3.01–4.16 ms)
- Portkey (1.15.2): +20.4 ms (20.1–22.6 ms)
- LiteLLM Python (1.110.2): +216 ms (214–221 ms)

### Streaming chunk gap (p99) (Lower is better)

- Kaeso (0.7.0): 7.8 ms (7.7–7.9 ms)
- Kaeso (0.7.0, request logs on): 8.1 ms (8.1–8.5 ms)
- Portkey (1.15.2): 8.6 ms (8.3–9.0 ms)
- Bifrost (2.6.0): 20.5 ms (20.4–20.6 ms)
- LiteLLM Python (1.110.2): 34.0 ms (33.0–35.2 ms)
- LiteLLM Rust (main at d4e8f96, unreleased): 40.4 ms (40.4–40.4 ms)

### Codex streamed session (Lower is better)

- Kaeso (0.7.0): +48.3 ms (40.7–52.0 ms)
- Kaeso (0.7.0, request logs on): +55.7 ms (52.1–70.1 ms)
- Bifrost (2.6.0): +90.0 ms (87.1–92.1 ms)
- Portkey (1.15.2): +367.3 ms (354.3–377.1 ms)
- LiteLLM Rust (main at d4e8f96, unreleased): +612.9 ms (600.7–619.0 ms)
- LiteLLM Python (1.110.2): +703.2 ms (693.1–707.5 ms)

### CPU per request (µs) (Lower is better)

- Kaeso (0.7.0): 314 µs
- Kaeso (0.7.0, request logs on): 373 µs
- LiteLLM Rust (main at d4e8f96, unreleased): 573 µs
- Bifrost (2.6.0): 708 µs
- Portkey (1.15.2): 1,449 µs
- LiteLLM Python (1.110.2): 13,563 µs

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

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

## Choose Kaeso when

- You want compiled Rust throughput (6,338 req/s) and tight streaming chunk gaps (7.8 ms vs 40.4 ms on LiteLLM Rust) for Claude Code and Codex.
- You need company-wide OIDC SSO, SCIM 2.0, custom RBAC roles and audit logs without paying for an Enterprise tier.
- You want hard spend budgets reserved atomically in Valkey before concurrent streams run.
- You prefer managing models, alias routes and weighted key pools in a web console and Platform API instead of large YAML files.

## Choose LiteLLM when

- You rely on niche providers among LiteLLM's 100+ adapters that Kaeso's 50 built-in providers do not cover yet.
- You depend on native callbacks to Langfuse, Datadog or S3 directly from the proxy.
- You need the smallest stateless memory footprint (86 MB for LiteLLM Rust with no database) or pass-through / moderations endpoints.

## Migration and coexistence

Apps already pointing at LiteLLM move to Kaeso by changing only base_url (/v1 for OpenAI SDKs, bare host for Anthropic) and the API key. You can also place LiteLLM behind Kaeso as a custom provider for any niche endpoint.

[Read the related guide](https://kaeso.app/articles/kaeso-vs-litellm.md)

## Common questions

### Is Kaeso faster than both LiteLLM Python and LiteLLM Rust?

On BerriAI's ai-gateway-bench with two dedicated cores and 64 clients, Kaeso 0.7.0 served 6,338 req/s (5,324 with ClickHouse logs on), compared with 3,211 req/s for unreleased LiteLLM Rust and 74 req/s for LiteLLM Python 1.110.2. At 1 client, LiteLLM Rust had lower p99 latency (+0.98 vs +1.66 ms) and used less memory (86 MB with no database).

### Do I lose SSO or audit logs when self-hosting Kaeso for free?

No. OIDC SSO with domain verification, SCIM 2.0 provisioning, two-factor authentication, up to 50 custom roles and audit logs all ship in the MIT repository with no user cap.

### How long does migrating from LiteLLM take?

Pointing one app at Kaeso takes about five minutes because both speak OpenAI and Anthropic formats. Our migration guide maps every config.yaml setting, virtual key limit and fallback chain to Kaeso.

## More AI gateway comparisons

Compare Kaeso against every other major self-hosted and hosted AI gateway.

- [Kaeso vs OpenRouter](https://kaeso.app/compare/openrouter.md): 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): 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): 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): 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): 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): 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): Complete Rust AI gateway + web console + budgets + SSO vs Kubernetes-native data plane proxy.
- [Kaeso vs TensorZero](https://kaeso.app/compare/tensorzero.md): 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): Enterprise-grade MIT Rust gateway (SSO, SCIM, KPP, Valkey, ClickHouse) vs Go credit-relay aggregator.

[Back to all comparisons](https://kaeso.app/compare.md)

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