Atlarix is the private AI coding agent for any model, by Norah Labs, and that includes models behind your own endpoint: a vLLM server, a company gateway, or any OpenAI-compatible address. A user told us that every model from their provider ran at 128K tokens of context, whatever the model really holds. They were right. Here is why that happens in coding agents, and how Atlarix finds the real size since 15.24.
A coding agent sends your conversation, your files and its tool results to the model on every step. It has to know how much fits. Too high, and the provider refuses the request when a long task gets near the end of the window. Too low, and the agent compacts (summarises older steps) long before it needs to, so the model forgets things it could have kept.
For well-known providers, the size is in a public catalog. For a model behind your own address, there is often nothing to look up, so the agent has to guess.
128K tokens is a common size for current models, and a safe middle when nothing else is known. The trouble was that Atlarix fell back to it too often. Many OpenAI-compatible servers don't say how large a model is in their /models list, and custom ids like 02 - Qwen3.8-Flash-Next-NVFP4 don't match any catalog entry as written. So a model that holds a million tokens ran at 128K, and one that holds 32K was sent more than it could take.
Since 15.24, for a provider you added, Atlarix takes the first answer it finds, in this order:
/model context <size> in the CLI. It always wins./models list reports a size (max_model_len on vLLM, or context_length, context_window or max_context_length), Atlarix uses it.
Local models in Ollama and LM Studio already report their real window, and they still do.
| The model list shows | Where the size came from |
|---|---|
| 200K · yours | you set it |
| 32K · server | your server's /models list |
| 977K · catalog | an exact match in the model catalog |
| 128K · default | nothing else answered |
If you know the model's size, set it: /model context 262k in the CLI (or 1m, or a number of tokens), or the Context size field in the app. If you run the server, have /models report the size; vLLM does this with max_model_len. Then the right number reaches everyone who uses that endpoint, with no setting to copy around.
Update Atlarix from the app, or download it at atlarix.dev. The other changes in this release are in the Atlarix 15.24 post.
Why did my custom model run at 128K in Atlarix?
Your server didn't report the model's size and its id didn't match a catalog entry, so Atlarix used its 128K default. Since 15.24 it reads your setting, your server's size, then an exact catalog match first.
How do I set a model's context size in the Atlarix CLI?
Run /model context , for example /model context 262k or /model context 1m. /model context auto goes back to automatic.
Which /models fields does Atlarix read for the size?
max_model_len (vLLM), context_length, context_window and max_context_length.
Does Atlarix guess from a similar model name?
No. It only uses a catalog entry for exactly the same model, because models with similar names can have very different sizes.
Originally published at atlarix.dev.