Kaeso 0.7.3: Claude Code on DeepSeek, Kimi and Qwen without translation
Kaeso 0.7.3 is out. Anthropic apps such as Claude Code now reach twelve providers' own Messages APIs as they are, ChatGPT plan replies stop at the app's output limit, and spent plans, busy limits and observed requests are handled with more care. Here is what changed and how to update.
- Published
- Reading time
- 5 min
- Author
- Kaeso Team

Kaeso is the open-source AI gateway you run yourself: one address for your apps' model requests, with one set of keys, limits, logs and costs. Kaeso 0.7.3 is about the apps that speak Anthropic's Messages API, Claude Code first among them. Many providers now serve that API themselves, and Kaeso sends those apps' requests there as they are, instead of translating them into Chat Completions and back.
It also stops ChatGPT plan replies at the app's output limit, gives spent plans and busy limits clearer behaviour, and counts the requests sources report more carefully. One default changes; it's described below.
Claude Code on a provider's own Messages API01
Until 0.7.2, an Anthropic app that asked Kaeso for a DeepSeek, Kimi or Qwen model got its request translated into Chat Completions, sent, and the reply translated back. Each translation is a chance to lose something the app relies on: thinking and its signatures, cache counts, the exact shape of tool calls.
In 0.7.3, when a provider serves the Messages API for a model, an Anthropic app's request goes there in its own format. This covers twelve providers:
- DeepSeek
- Moonshot, for its K3 models
- QwenCloud, for its Qwen models
- Baidu Qianfan
- DeepInfra
- OpenRouter
- Hugging Face
- Ollama Cloud
- Tencent TokenHub
- Fireworks AI
- SambaNova
- Vercel
Kaeso still reads every request and applies each provider's own rules on the way, such as refusing the fields DeepSeek would silently ignore. Apps that speak Chat Completions are unchanged.
On a live install, Claude Code ran tool loops through deepseek-v4-pro, deepseek-v4-flash and kimi-k3.1-pro this way: thinking was replayed from turn to turn, the providers reported cache reads, and Kaeso priced them. Kaeso's own overhead on those requests was 0.3 to 1.6 ms.
[!IMPORTANT]
This is the one default that changes: an Anthropic app's requests to these providers now use their Messages API. If you want a model to keep the translation, set its Sends as to Chat Completions, in KPMR's data or in your organization's model settings; Sends as always wins. The supported providers page (opens in a new tab) lists each provider's formats.
Two related fixes come with it: DeepSeek's timeout frame now reaches the app as DeepSeek's error with its message, instead of a stream that ended before message_stop, and QwenCloud's Messages API errors reach apps with QwenCloud's own message and kind, so a spent free quota reads as a billing refusal.
ChatGPT plans stop at the output limit02
A ChatGPT plan's Responses route refuses max_output_tokens, so until now a reply through a plan could run past the limit the app had asked for. Kaeso now remembers the app's limit and ends the reply itself, with the stop reason of the app's format: max_tokens for Anthropic apps, length for Chat Completions and incomplete for Responses. Usage for such a reply is logged as an estimate.
Tool call arguments from another format now also stream to Anthropic apps as they arrive, instead of arriving as one piece when the block ends.
Spent plans and busy limits03
- A plan at its usage limit is held longer. Before, an account whose plan had run out was tried again every 5 minutes. Now each limit in a row holds it longer: 5, 15 and 45 minutes, then 2 hours at most. When the provider states how long to wait, Kaeso holds the account that long, up to a week (it was capped at an hour). Any answer from the account starts over at 5 minutes. Provider key pools explains how accounts share the load.
- Kaeso's own trouble is no longer a provider's error. When Kaeso can't check a project's hard budgets, or can't load its limits, it refuses the request before calling any provider, as Kaeso being busy: 503 for OpenAI formats and Gemini, 529 for Anthropic apps, with
Retry-After: 5. The request log showsoverloaded, notprovider_erroragainst a provider that was never called. Budgets, limits and usage covers hard budgets.
Observed requests, counted once04
Sources let clients such as Claude Code, Codex, Gemini CLI, Antigravity or LiteLLM report requests Kaeso never sees. Some clients send a request through the gateway and also report it to a source. Kaeso matched those copies per project; it now matches them across all of an organization's projects, so each request counts once. A provider a client only derives from its own setup is now priced like the source kind's usual provider first, and the model's maker when that provider doesn't sell the model.
Models named with an effort level, such as Antigravity's gemini-…-high and -low, now log as one model, and the request log keeps each request's reasoning effort in a column of its own, for gateway and observed requests alike.
A faster first request after a pause05
A request that arrived after its project had been quiet could wait while the project's settings loaded one after another. They now load in parallel, and they stay warm for an hour after their last use instead of 15 minutes, so an agent session that pauses for a while doesn't find its keys, catalogue and limits gone. The time Kaeso reports as stream processing now counts only its own decoding, translating and encoding, not the time spent waiting.
Requests that arrive while everything is warm didn't change measurably. A benchmark of 0.7.3 against 0.7.2 on one machine follows on kaeso.app/benchmarks.
Updating from 0.7.206
Most installs update with one click from Instance › Updates: the updater verifies the signed release, checks your settings with the new gateway before it stops the old one, and runs the new database migration, which adds the reasoning effort column to the request log in ClickHouse. 0.7.3 refuses no setting that 0.7.2 accepts. With the installer, run sh install.sh --update; on Kubernetes, helm upgrade with --version 0.7.3. How Kaeso updates itself and checks your settings explains the updater.
If a model on one of the twelve providers should keep the translation, set its Sends as to Chat Completions before you update. Coming from 0.7.1 or earlier? Kaeso 0.7.2 has the security fixes of that release. The full changelog lists every change in 0.7.3.
Product names in this article belong to their owners and are used only to name the software and services involved. Kaeso is not affiliated with or endorsed by them.
By Kaeso Team


