Skip to content

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

Back to all comparisons
6,338
requests a second for Kaeso 0.7.0 on two cores
3,211
requests a second for LiteLLM Rust on the same two cores
7.8ms
p99 gap between streamed chunks for Kaeso
40.4ms
p99 gap between streamed chunks for LiteLLM Rust

In short.

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

LiteLLM

  1. 01Your app sends a request with the OpenAI, Anthropic or Gemini SDK.
  2. 02The LiteLLM proxy, in Python or the Rust beta, reads its config.yaml.
  3. 03It calls one of 100+ cloud or local endpoints with a key from env or the database.
  4. 04Spend 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.

View comparison sources on GitHub
CriterionKaeso 0.7.0LiteLLM
Self-hosted on your own serversKaeso 0.7.0Self-hosted onlyLiteLLMSelf-hosted (Docker, Kubernetes, Python)
Gateway runtimeKaeso 0.7.0Rust (single binary + Postgres, Valkey, optional ClickHouse)LiteLLMPython (plus unreleased Rust beta)
Open-source licenceKaeso 0.7.0MIT (everything in one repo)LiteLLMMIT, except enterprise/
OIDC SSO & SCIM in free codeKaeso 0.7.0Yes: OIDC SSO, SCIM 2.0, 2FA, audit logs, no user capLiteLLMFree SSO up to 5 users; Enterprise beyond
Spend & token limitsKaeso 0.7.0Hard & soft budgets reserved in Valkey (exact USD + display currency)LiteLLMVirtual key & team budgets in Postgres
Fallbacks & routingKaeso 0.7.0Alias routes (fallbacks, conditions, splits) + weighted sticky key poolsLiteLLMYAML fallbacks, retries & router load balancing
Request logs & privacyKaeso 0.7.0Own ClickHouse, content logging off per org/project, CSV/JSONL exportLiteLLMPostgres + callbacks (Langfuse, S3, Datadog, OTEL)
Local models (Ollama, vLLM, LM Studio)Kaeso 0.7.0Custom providers with auto-detect (Ollama, vLLM, LM Studio, llama.cpp)LiteLLMYes, via api_base in config.yaml
Inbound API formatsKaeso 0.7.0OpenAI Chat & Responses, Anthropic Messages, Gemini API, ElevenLabsLiteLLMOpenAI, Anthropic, Gemini, Bedrock pass-through
MCP tool gateway & guardrailsKaeso 0.7.0Per-project OAuth MCP portal + built-in secrets/PII & HTTP guardrailsLiteLLMMCP gateway + guardrail integrations
Measured throughput (2 cores, 64 clients)Kaeso 0.7.06,338 req/sLiteLLM74 req/s (Python) / 3,211 req/s (unreleased Rust)

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 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.
  2. 02You need company-wide OIDC SSO, SCIM 2.0, custom RBAC roles and audit logs without paying for an Enterprise tier.
  3. 03You want hard spend budgets reserved atomically in Valkey before concurrent streams run.
  4. 04You prefer managing models, alias routes and weighted key pools in a web console and Platform API instead of large YAML files.

Choose LiteLLM when

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

Common questions.

01Is 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).
02Do 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.
03How 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.

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.