Chinese documentation is available in README.zh-CN.md.
Copilot Cost Guard shows the current GitHub Copilot Chat model cost multiplier in the VS Code status bar, helping you notice when Copilot is using a higher-cost model.
Features
Show the current Copilot Chat model cost multiplier in the status bar.
Update automatically when the selected Copilot Chat model changes.
Warn when Copilot switches to a premium model.
Use status bar colors to make higher-cost models easier to notice.
Multiplier
Icon
Status bar color
0x
Free
Default
< 1x
Green
Default
1x
Check
Default
<= 2x
Warning
Warning background
> 2x
Alert
Error background
How It Works
Copilot Cost Guard reads VS Code's local global state database and uses the Copilot Chat model cache to infer the selected model and its cost multiplier.
It watches the database for changes and also polls periodically as a fallback. This extension does not call a GitHub Copilot API and does not access the Copilot webview DOM.
Configuration
Setting
Type
Default
Description
copilotCostGuard.pollInterval
number
3000
Polling interval in milliseconds. Minimum: 1000.
copilotCostGuard.warnOnPremiumModel
boolean
true
Show a warning when switching to a premium model.
Limitations
Copilot does not provide an official API for reading the currently selected model.
The extension depends on VS Code and Copilot's internal persisted state, which may change across versions.
Some models, such as Auto, may not have a fixed multiplier.