Managing token limits and monitoring context windows is crucial when building projects with Claude Code. Fortunately, you don’t need to install unverified third-party GitHub repositories, browser extensions, or risky plugins to track your usage.
Claude Code includes built-in native commands that display your real-time session limits, model breakdowns, and context window consumption—entirely safely and natively.
Here is how to monitor your usage and stats step-by-step.
Step 1: Check Context Window Usage
To see a color-graded breakdown of your current conversation’s token consumption:
- Launch a Claude Code terminal session.
- Type
/contextand hit Enter.
Bash
/context
What You’ll See:
A visual breakdown of your active context window, including:
- System Prompts & Tools
- Custom Agents & Loaded Skills
- Active Messages
- Remaining Free Space
Step 2: View Session Usage & Reset Times
To view your current token bar and upcoming rate-limit reset times:
- In your active session, type
/usage. - Press Enter.
Bash
/usage
What You’ll See:
- Current Session Usage: Real-time token consumption for your active task.
- Weekly Session Limits: Overall consumption across all models.
- Reset Timers: Exact time remaining until your limits refresh.
- Active Promotions: Any ongoing usage discounts or promotional rate increases.
Step 3: Inspect All-Time Stats & Model Breakdown
Inside the /usage view, you can use your cursor or arrow keys to navigate across three main tabs:
1. Overview Tab
Shows high-level metrics including total active days, total tokens consumed across all sessions, longest session duration, and your usage streaks.
2. Stats Tab
Provides granular data on API activity, breaking down:
- Input Tokens vs. Output Tokens
- Cache Reads vs. Cache Writes
3. Models Tab
Double-click or switch to the Models tab to see a complete breakdown of consumption by specific AI model (e.g., comparing Claude Sonnet usage against Claude Opus).
Why You Should Stick to Native Commands
Many developers install external scripts or third-party extensions to track token usage. However:
- Security: Third-party tools can expose API keys or access tokens.
- Accuracy: Native commands pull data directly from Anthropic’s backend.
- Convenience: Zero installation or configuration required—works out of the box in any fresh Claude Code session.