Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Token Usage & Cost Tracking

Monitor your AI usage in real-time.

Status Bar Display

The status bar shows:

  • Input tokens — Tokens sent to the model
  • Output tokens — Tokens received
  • Estimated cost — Based on model pricing

Configuration

# Enable/disable display
show_token_usage = true
show_cost = true

# Pricing (per million tokens)
claude_input_cost_per_million = 3.0
claude_output_cost_per_million = 15.0

Toggle Display

Press Alt+P to toggle the metrics display.

Model Pricing

ModelInputOutput
Claude Sonnet 4.5$3.00/1M$15.00/1M
Claude Opus 4.5$15.00/1M$75.00/1M

Context Window

The display also shows context usage relative to the model’s limit (e.g., 200K for Claude).