AI
best practice
Track Your Daily AI Token Spend with /stats
Monitor your AI API spending directly from the terminal.
Use the /stats command within the Qwen Code environment to track your daily and per-session token expenditure without leaving your IDE.
Qwen
The Scenario
You are working on a large-scale project and need to ensure your intensive AI coding sessions stay within your monthly API budget.
Before & after
The old way
Checking your AI spending usually requires logging into a web dashboard, navigating to billing, and interpreting usage graphs, taking 5+ minutes.
With AI
Type /stats to see an instant summary of your daily and session-based token costs, allowing you to manage your budget in seconds.
The Prompt
/stats
This is particularly useful for developers using high-end models like Qwen 2.5 or 3 where token costs can accumulate during long debugging sessions.
Source
Qwen Code Blog: AI Coding Updates and Guides | Qwen Code Docs"/stats shows your daily token spend... Qwen 2.5 and Qwen 3 has exploded in popularity for one simple reason: unbeatable price-to-performance."
