AI Today

🛡️ Kaeso: self-hosted open-source gateway for many AI providers with budgets and fallbacks

· 2 min

In brief


🛡️ According to its maker, Kaeso is an open-source AI gateway that you run yourself. Applications call a single API; Kaeso picks the model from an alias and falls back to another if a provider fails. The provider keys stay with the operator, encrypted under their own master key. Rate limits and budgets can be set per project, member, service account and key, and every request lands in a log with model, tokens, time and cost. Per the directory listing, the software is MIT licensed and routes to about 50 cloud providers plus Ollama, vLLM, LM Studio and llama.cpp.


🔀 Routing. The home page shows an example: the call names the model "fast-smart", which is an alias. The alias sets the model and its fallbacks, with conditions on headers, formats and tokens and weighted splits. If a provider fails, the route moves to the next target; in the example from Claude Sonnet 5.5 to GPT-6 Sol. Requests are read in the app's own format, written in the provider's format, and the reply is encoded back, event by event for a stream. Anything Kaeso would never send on is refused at the door.

🔑 Keys and budgets. An application's access key decides the project and who it acts for; Kaeso stores it only as a hash. The provider keys are encrypted with AES-256-GCM under a master key the operator holds. Rates and budgets apply per project, member, service account and key and are checked together. A hard budget refuses a request before the provider is called; a soft one only sends an alert. The log keeps model, tokens, time and cost at the prices in force. In the sample response Kaeso also returns headers with request ID, provider and model.

🏢 Team features. Sign-in is per organisation through its own OpenID Connect provider, with two-factor and roles, the page says. Each project gets one MCP portal; a tool whose definition changes waits for an admin. According to the EveryAI listing, local servers such as Ollama, vLLM, LM Studio and llama.cpp are supported as targets.

⚙️ Context. The part of the home page we could read gives no install steps, prices or source repository address; anyone interested has to look them up there. Other self-hosted gateways such as LiteLLM pursue similar goals, but the page offers no comparison. A gateway like this makes sense for teams that want to keep keys in one place, cap costs and switch providers without rebuilding every application.

Sources

Open in the interactive reader →

This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources. Imprint, privacy policy and terms of service