Monitor Real-Time Token Costs Directly in Your Terminal
Use the /stats slash command to view instant daily spending.
Monitor your API budget directly in the terminal to avoid bill shock by using the new built-in token tracking feature.
The Scenario
You have been running complex agentic workflows for several hours and want to know if you are approaching your daily API budget or token limit.
Before & after
Developers must manually check cloud provider dashboards or estimate costs based on context length and model rates. (Time cost: 5–10 minutes)
Run the /stats command in the Qwen Code CLI to see an instant breakdown of daily token consumption. (Time cost: 10 seconds)
The Prompt
/stats
The v0.19.2 update introduces a built-in statistics tracker. This is essential for developers using expensive API tiers or large context windows to avoid unexpected billing cycles.
Source
Qwen Code Blog: AI Coding Updates and Guides | Qwen Code Docs"/stats shows your daily token spend... across five releases."
