Models and the context window
Choosing a model in aimo, what the model list tells you, how every request is sized to the model's window, and the settings for unusual models.
For aimo 1.4.8 · checked against that release on 22 November 2026
Choosing a model
Leave aimo.model empty and aimo uses the model the platform recommends for you — your model
profile’s default, which your administrator sets. AIMO: Select Model (or /model, or the
model button in a chat or in Home) lists every model you may use, with what each is confirmed to
do and the size of its context window.
- Each chat keeps its own model. A model you pick with a chat’s model button or
/modelapplies to that chat’s next turn, and no other open chat changes. The model is told which model it is, and a chat whose next turn runs on another model than its last says so in the conversation. - New chats start on the model you picked last. That pick is kept in
aimo.model. The model button in Home, and Select Model from the Command Palette, set only the model for new chats, and changingaimo.modelin the settings moves no open chat either. - A chat you reopen comes back on its own model, from the history or after a reload.
- What you may use is decided by the platform. A model your profile does not allow is not listed, and a request for it is refused.
- In direct mode you always pick the model yourself — see Your own API key.
If a model is listed but cannot answer just now, the chat says that no upstream can serve it at the moment; pick another model.
What the list tells you
Each model shows the capabilities the gateway confirms for it — vision for models that read
images, for example — and its context window in tokens. A missing mark means “not confirmed”,
not “cannot”: aimo sends an image to such a model with a one-time notice, and if the model refuses
it, the image is attached again for you to send to another.
The context window
A model can read only so much at once: its context window. A chat carries aimo’s own instructions, your project’s instructions if you accepted them, the tools it may call, and the conversation so far, and all of it must fit.
- Every request is measured before it is sent, against the window the gateway reports for the model. The gauge under the message box shows how full it is.
- When the conversation outgrows it, older tool output and images in earlier turns are shortened first, then whole older turns are dropped. A notice tells you when that happened.
/compactor AIMO: Compact the Conversation does that now, to free room before a long task.- If the model still answers that the prompt is too long, aimo takes the limit it named, trims harder, sends the request once more, and remembers that limit for the model.
- When aimo’s instructions and the tool definitions alone do not fit, it says so before sending anything, and names the fix: unpin a tool server, or pick a model with a larger window.
Tool servers cost almost nothing here, because their tools are looked up on demand rather than sent with every request — see Tool servers.
Settings for unusual models
These are rarely needed. All are in Settings.
| Setting | When to use it |
|---|---|
aimo.contextTokens |
The platform does not report the model’s window. 0, the default, takes it from the gateway |
aimo.maxOutputTokens |
You want to cap how long one answer may be. A reasoning model spends this on thinking first, so a small value can give an empty answer. 0 lets the gateway decide |
aimo.streamIdleTimeoutSeconds |
A model thinks for a long time before its first token, and the gateway gives up waiting. 0 uses the gateway’s own limit |
aimo.systemPrompt |
You want extra instructions in every chat, after aimo’s own |
In direct mode the first, second and fourth are read from your own user settings only, since every token is paid from your key.
How your requests are labelled
On the platform every request carries a session id — one per chat, kept when a chat is reopened —
and the labels vscode and aimo, plus any you add in aimo.requestTags, such as a project name.
The platform’s activity page groups a chat’s requests as one session, and its usage page can split
your spend by label. Direct mode sends none of these.