AI
best practice
Track AI Token Costs Instantly with the /stats Command
Monitor your daily AI token spend directly from your CLI.
Run the /stats command within the Qwen Code terminal to instantly see your daily token usage and monitor costs across different AI models.
Qwen
The Scenario
You are using high-performance models for a large-scale project and need to monitor your daily token spend to avoid unexpected bills.
Before & after
The old way
Logging into multiple provider dashboards and squinting at usage graphs to estimate daily costs takes 10–15 minutes of manual calculation.
With AI
Checking /stats takes 5 seconds, giving you an immediate summary of your AI consumption and budget.
The Prompt
/stats
The /stats command provides an at-a-glance view of your daily token consumption, helping you stay within your API budget while using various models.
Source
Qwen Code Blog: AI Coding Updates and Guides | Qwen Code Docs"/stats shows your daily token spend... Token Costs at a Glance"
