To check context usage in Gemini CLI, look at the footer below the prompt, which shows the model name and context usage by default; you can also turn on a context window percentage in /settings.
As of December 4, 2026, Google’s Gemini CLI documentation describes these options:
- Footer: the setting
ui.footer.hideModelInfodefaults to false, so the footer displays the model name and context usage. Setui.footer.hideContextPercentageto false (its default is true) to show the context window usage percentage. - /stats model: shows model-specific usage statistics, including token counts and quota information. Plain
/statsshows session duration, tool calls and performance. - /compress: replaces the entire chat context with a summary to save tokens. Gemini CLI also compresses automatically when context usage reaches
model.compressionThreshold, which defaults to 0.5. - /clear: clears the conversation context and starts a new session.
Related: What is the Gemini CLI context window?, How to change the model in Gemini CLI? and How to check context usage in Codex?
Source: Gemini CLI command reference; Gemini CLI configuration reference
Image: Google Gemini logo by Google LLC, public domain (trademarked), via Wikimedia Commons. Placed on a white background and resized. Gemini and Google are trademarks of Google LLC. FreeAnswers is not affiliated with or endorsed by Google.