GitHub Copilot CLI supports a persistent live status line that displays token usage, context percentage, current model, cost estimates, and session duration without interrupting your workflow. Two setup options exist: tweaking the built-in /statusline command to enable context window and quota info, or creating a fully custom status line by configuring a command in settings.json. The custom approach uses a .cmd wrapper to invoke a PowerShell 7+ script, with tips on using -NoProfile and pwsh for speed. A sanity check with a simple Hello World script verifies the wiring before building the real thing, and Copilot CLI pipes a JSON payload via stdin after each model response for use as a data source.
Table of contents
Option 1 – Tweak the default status line in Copilot CLIOption 2: Create a custom status lineStart with a sanity checkInspect what Copilot actually sendsConclusionSort: