Monitor Token Spending and Costs Directly in the Terminal
Monitor and control your AI development costs in real-time.
Run the '/stats' command to view your real-time token usage and costs directly within the Qwen Code terminal.
The Scenario
You are using high-end models for a long coding session and want to ensure you aren't exceeding your daily development budget or hitting limits unexpectedly.
Before & after
Developers check various cloud provider dashboards or wait for monthly billing invoices to understand their AI costs. This review usually takes 15–20 minutes to cross-reference with work done.
Use the `/stats` command to instantly see your daily token expenditure and optimize which models or prompts you use. This takes less than 30 seconds.
The Prompt
/stats
The /stats command provides immediate feedback on costs, allowing for better budget management and identifying when a prompt might be unnecessarily consuming too much context.
Source
Qwen Code Blog: AI Coding Updates and Guides | Qwen Code Docs"/stats shows your daily token spend... Model fallback chains integrated."
