Skip to content

Kaeso vs OpenRouter

Self-hosted zero-markup gateway with your own keys and local models vs hosted multi-model SaaS.

Back to all comparisons

In short.

OpenRouter removes infrastructure completely by hosting a unified OpenAI-compatible router and credit balance. Kaeso is a self-hosted, MIT-licensed alternative that runs on your own servers with your own provider keys, zero gateway markup, local Ollama and vLLM support, hard Valkey budgets and private ClickHouse logs. It even includes OpenRouter as one of its 50 built-in providers.

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.

OpenRouter

  1. 01Your app sends a request with an OpenAI Chat Completions client.
  2. 02OpenRouter's cloud checks the key, meters credits and picks a route.
  3. 03It calls the model host with OpenRouter's account, or with your own key.
  4. 04Logs and the credit balance live in OpenRouter's dashboard.

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.0OpenRouter
Self-hosted on your own serversKaeso 0.7.0Self-hosted onlyOpenRouterHosted multi-tenant SaaS only
Gateway runtimeKaeso 0.7.0Rust (single binary + Postgres, Valkey, optional ClickHouse)OpenRouterProprietary hosted cloud platform
Open-source licenceKaeso 0.7.0MIT (everything in one repo)OpenRouterProprietary service
OIDC SSO & SCIM in free codeKaeso 0.7.0Yes: OIDC SSO, SCIM 2.0, 2FA, audit logs, no user capOpenRouterHosted organization plans
Spend & token limitsKaeso 0.7.0Hard & soft budgets reserved in Valkey (exact USD + display currency)OpenRouterHosted credit caps per key
Fallbacks & routingKaeso 0.7.0Alias routes (fallbacks, conditions, splits) + weighted sticky key poolsOpenRouterHosted provider routing & auto-fallbacks
Request logs & privacyKaeso 0.7.0Own ClickHouse, content logging off per org/project, CSV/JSONL exportOpenRouterHosted activity logs (ZDR filter available)
Local models (Ollama, vLLM, LM Studio)Kaeso 0.7.0Custom providers with auto-detect (Ollama, vLLM, LM Studio, llama.cpp)OpenRouterNo (cloud models only)
Inbound API formatsKaeso 0.7.0OpenAI Chat & Responses, Anthropic Messages, Gemini API, ElevenLabsOpenRouterOpenAI Chat Completions compatible
MCP tool gateway & guardrailsKaeso 0.7.0Per-project OAuth MCP portal + built-in secrets/PII & HTTP guardrailsOpenRouterNone
Measured throughput (2 cores, 64 clients)Kaeso 0.7.06,338 req/sOpenRouterHosted (not benchmarked locally)

Five verified benchmark dimensions.

OpenRouter was not part of BerriAI's local ai-gateway-bench lane. Kaeso 0.7.0 measured 6,338 req/s (5,324 req/s with ClickHouse request logs on) on two dedicated cores with +0.54 ms median added latency at 16 clients.

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. 01Provider API keys, prompts and usage logs must stay on your own servers under your direct provider agreements.
  2. 02You want zero platform markup and direct negotiated pricing with OpenAI, Anthropic, Google, AWS Bedrock and Azure.
  3. 03You want one API covering cloud providers plus local Ollama, vLLM and LM Studio GPUs.
  4. 04Your team uses native Anthropic Messages, OpenAI Responses, Gemini /v1beta or ElevenLabs SDKs alongside Claude Code and Codex.

Choose OpenRouter when

  1. 01You want zero servers, databases or containers to operate.
  2. 02You prefer one consolidated invoice across dozens of small inference providers without creating separate accounts.
  3. 03You are prototyping solo and want instant pay-as-you-go access to new models in minutes.

Common questions.

01Can Kaeso replace OpenRouter without rewriting my app code?
Yes. Change base_url from https://openrouter.ai/api/v1 to https://kaeso.example.com/v1 and swap the API key to a Kaeso key (sk-kso-…). Kaeso also accepts provider/model names such as anthropic/claude-sonnet-5-5.
02Can I use OpenRouter behind Kaeso during migration?
Yes. OpenRouter is one of the 50 providers built into Kaeso 0.7.0, so you can route primary models directly to providers and fall back to OpenRouter under one unified key and budget.
03Does Kaeso support local models that OpenRouter cannot reach?
Yes. Add Ollama, vLLM, LM Studio or llama.cpp as custom providers in Kaeso with explicit private-network CIDR controls so local and cloud models share the same routes and limits.

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.