main
md 17 lines 862 Bytes
Rendered Raw
1 # Context Window
2
3 The bundled Context Window plugin adds a compact usage ring beside the chat's
4 model and agent selectors. Its popover shows token counts and full-window
5 percentages for Messages, System tools, Skills, MCP tools, System prompt,
6 Extras, and Free space.
7
8 Older chats gain the detailed breakdown after their next model turn. Mobile and
9 desktop visibility can be changed under **Settings > Interface**.
10
11 When a model provider reports usage, the popover shows price, cache-hit rate,
12 and input/output tokens. Unreported price and cache data are omitted. The
13 context breakdown does not guess model-specific image token costs.
14
15 For streamed OpenRouter chat calls, the plugin requests and drains LiteLLM's
16 terminal usage event after Agent Zero has accepted the response. Price remains
17 hidden when LiteLLM does not report a cost or map the selected model.