Cost
Cost
The /cost command shows you API token usage.
/cost
Total cost: $0.4216
Total duration (API): 3m 57s
Total duration (wall): 7m 29s
Total code changes: 411 lines added, 14 lines removed
Usage by model:
claude-sonnet-4-6: 16 input, 9.6k output, 378.0k cache read...
claude-haiku-4-5: 1.0k input, 4.5k output, 351.6k cache...
The platform.claude.com Cost dashboard (Analytics → Cost) shows total token cost, total web search cost, total code execution cost, and a daily token cost chart, filterable by model/API key/date range and exportable.
On average, Claude Code costs ~$100-200 USD/developer per month with Sonnet 4.
Related: Via API Key, ccusage, Usage