Skip to content

Your AI gateway, self‑hosted.

Kaeso is open source and runs on your servers: single sign‑on for every team, a Rust gateway in the request path, and one API for every app.

The Kaeso console with sample data, showing an organization's overview.

The Kaeso console with sample data. On a wider screen you can click through it here, and demo.kaeso.app has the live demo.

What's new.

The latest releases of the gateway, the console and the docs, and the articles that explain them.

See every release

Read every article

Keys, routes, limits, logs.

Everything between your apps and your providers, in one place you control, and nothing new for your apps to learn.

  • 27 Built-in providersOpenAI, Anthropic, Google AI Studio, DeepSeek, Mistral and 22 more, with keys your organization holds.
  • 5 API formatsResponses, Chat Completions, Messages, Gemini API and ElevenLabs. Your apps call in any of them, and Kaeso calls each provider in its own.
  • 1 Rust binary in the request pathOne stateless binary that keeps nothing of its own, so you scale by adding instances behind your load balancer.
  • 0 Enterprise editions to buySingle sign-on, two-factor authentication and the audit log are in the MIT-licensed code.

01Routes

Fallbacks, conditions and splits

An alias holds a route. Fall back to another model when one fails, send long prompts somewhere else, and split callers between models, while your app keeps sending the same model name.

Read about alias routes

Startsupport
Condition100,000 input tokens or more
Model529 Provider overloadedClaude Sonnet 5.5anthropic/claude-sonnet-5-5
Model200 OKGPT-6 Solopenai/gpt-6-sol
SplitBy caller
ModelClaude Haiku 5.5anthropic/claude-haiku-5-5
ModelGPT-5.4 miniopenai/gpt-5.4-mini

Arrow keys move between steps, Enter selects one, plus and minus zoom, and 0 fits the view.

  • support to 100,000 input tokens or more
  • 100,000 input tokens or more to Claude Sonnet 5.5, Then
  • Claude Sonnet 5.5 to GPT-6 Sol, Fallback
  • 100,000 input tokens or more to By caller, Else
  • By caller to Claude Haiku 5.5, 80%
  • By caller to GPT-5.4 mini, 20%
Claude Sonnet 5.5 is overloaded, so its fallback, GPT-6 Sol, answers. The app sent one request.200OK
Claude Sonnet 5.5 is overloaded, so its fallback, GPT-6 Sol, answers. The app sent one request.

02Limits

Limits and budgets you set

Spend and token budgets per day, per month or in total, and request, token and tool call rates per minute, on a project, a member or a key. Hard budgets are never skipped.

Set limits and budgets (opens in a new tab)

Key checkout-webHard limit
$4.52 of $5.00 · TodayResets at midnight UTC
Project Checkout assistantHard limit
412 of 600 requests · Per minute
200, answered for $0.16200OKOK
{  "type": "message",  "role": "assistant",  "model": "claude-sonnet-5-5",  "content": [    { "type": "text", "text": "…" }  ],  "stop_reason": "end_turn",  "usage": {    "input_tokens": 35000,    "output_tokens": 9000  }}

03Sign-in

Single sign-on for every organization

Connect your OpenID Connect identity provider to an organization, verify your email domains, and require single sign-on or two-factor authentication. It's in the MIT-licensed code, with no enterprise edition to buy.

Set up single sign-on (opens in a new tab)

Northwind Labs
Single sign-on
Identity providerhttps://login.northwind.example
northwind.exampleVerifiedIts addresses sign in through the provider.
Requirements
Require single sign-onAccounts at its domains use only SSO; guests keep their own.
Require two-factor authenticationNeeds a code at sign-in; single sign-on counts as one.

04API

One API for every app

Keep the official OpenAI, Anthropic, Google Gen AI and ElevenLabs SDKs, Claude Code and Codex. Change the base URL, use a Kaeso key, and every request goes through your gateway.

Call your first model (opens in a new tab)

1from openai import OpenAI2 3client = OpenAI(4    base_url="https://kaeso.example.com/v1",5    api_key="sk-kso-…",6)7 8response = client.responses.create(9    model="claude-haiku-5-5",10    input="Write a haiku about gateways.",11)

05Formats

Every SDK reaches every model

Kaeso translates each request through KPP, its canonical format, so an OpenAI SDK can call Claude and an Anthropic or Gemini SDK can call GPT‑6 Sol. OpenAI's Images, Audio and Videos APIs reach every provider that makes images, speech or video. A field the target can't honor is refused with an error that names it, and the few settings Kaeso leaves out are named in the kaeso-left-out header.

How format translation works (opens in a new tab)

Your app sends
OpenAI Chat Completions
Kaeso sends
Anthropic Messages
Model
Claude Sonnet 5.5

06MCP

An MCP portal in every project

One MCP address per project offers your MCP servers' tools to clients such as claude.ai, ChatGPT and Cursor, which sign in with OAuth. Kaeso signs in to each server, by default holds changed tools until someone approves them, and checks, limits and logs every call.

Read about the MCP portal (opens in a new tab)

A tool call through the portal
  1. Sign-inAn API key with the Tools ability, or OAuth as the person who allowed the client, under the organization's two-factor and single sign-on rules
  2. Tool accessThe tool is on in the project, its definition is approved, and the caller's tool access includes it
  3. RateA tool call rate per minute for the project, the member or the key
  4. MCP serverKaeso signs in with the shared connection or the caller's own
  5. LogEvery call in the request logs, with its arguments and answer when the project keeps content

07Request path

Rust in the request path

One compiled binary sits between your apps and your providers, with no interpreter on the hot path. Keys come from memory, every limit is checked at once, and usage and logs are written after the reply has gone.

Follow a request through the gateway

On the request path
  1. KeyAnswered from memory, kept for 30 seconds
  2. LimitsEvery rate and budget checked at once in Valkey
  3. Provider keyDecrypted once and kept in memory for 30 seconds
  4. TranslationIn process, through KPP's Rust codecs
  5. Provider callPooled connections, shared over HTTP/2 where the provider offers it
  6. StreamPassed on to the app event by event
  7. Usage and logWritten after the reply has gone

Measure it on your own install: kaeso_gateway_overhead_seconds, kaeso_request_duration_seconds and kaeso_time_to_first_byte_seconds in the metrics on port 9100.

08Logs

Every request, logged and costed

Status, tokens, cost and timing for every request, and its content when your organization allows it. Images, audio and files are left out unless you turn on Keep media. Filter, inspect and export requests and tool calls as CSV or JSON Lines.

Read about request logs (opens in a new tab)

  • 200OKclaude-sonnet-5-5$0.002904 · 700 tokens
  • 200OKgpt-5.4-mini$0.000591 · 308 tokens
  • 200OKgpt-image-2$0.008210 · 282 tokens
  • 200OKtts-1$0.000390 · 26 characters
  • 200OKclaude-haiku-5-5$0.000047 · 212 tokens
  • 429Rate limitedgpt-6-sol$0 · 0 tokens
  • 200OKclaude-sonnet-5-5$0.007800 · 2,252 tokens
  • 200OKgpt-6-sol$0.003160 · 620 tokens

09Keys

Provider keys stay with you

Provider keys belong to the organization, are encrypted with AES‑256‑GCM under a master key ring you hold, and never reach application code. Apps only ever see their own Kaeso key.

Manage provider keys (opens in a new tab)

  • OpenAIProduction · 8 min ago
  • AnthropicProduction · 8 min ago
What your apps holdsk-kso-AbC1…wxyzInference

Every provider, one API.

OpenAI, Anthropic, Google AI Studio, DeepSeek, Mistral and 22 more today, with keys your organization holds. Apps in any format reach every chat model, and local servers such as vLLM, Ollama and LM Studio join as custom providers.

See what each provider supports

  • OpenAI
  • Anthropic
  • Google AI Studio
  • DeepSeek
  • Mistral
  • 22 more, from Baseten to Z.ai

Run it on your servers

Install with one command

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

One command installs Caddy, the gateway, the console, PostgreSQL, Valkey and ClickHouse with Docker Compose, with TLS on your own domain and the updater on. ClickHouse keeps the request logs: use your own, or turn logs off. Templates run the same release on Render, Railway, DigitalOcean, Fly.io, AWS, Azure and Google Cloud, or on Coolify, Dokploy and CapRover on your own server.

Read the installation guide (opens in a new tab)

1curl -fsSL https://kaeso.app/install.sh | sh -s -- --domain kaeso.example.com
Needs
2 vCPUs, 4 GB RAM, 20 GB disk
Runs on
Docker Compose 2.24 or later, or a managed platform
Images
linux/amd64 and linux/arm64
Scales
Stateless gateway instances

Kaeso or LiteLLM?

LiteLLM is a Python proxy that reaches far more providers than Kaeso's 27. Kaeso is for teams that want the whole company signing in to one gateway.

Built in the open.

MIT licensed. The gateway, the console, KPP and the UI library live in one repository under one version.

You run the software.

Install Kaeso on your own servers, point your apps at it, and keep every key and every log.