AI
best practice
Track Your Daily Token Spend with Real-Time Statistics
Monitor your AI token usage and costs directly in the terminal.
Type '/stats' during your coding session to monitor your daily token consumption and keep API costs under control.
Qwen
The Scenario
You are using high-context models for a large-scale refactor and want to make sure you aren't burning through your API budget too quickly.
Before & after
The old way
You would have to log into a web dashboard, navigate to billing, and export usage logs to see what your daily spend was. This takes 10–15 minutes.
With AI
Use the '/stats' command to get a visual summary of your usage. This allows you to audit costs in about 1 minute.
The Prompt
/stats
Qwen Code now includes a built-in statistics command that works locally in the CLI to show you exactly how many tokens you are consuming.
Source
Qwen Code Blog: AI Coding Updates and Guides | Qwen Code Docs"/stats shows your daily token spend... at a glance."
