DEV Community· awesome fred·· 3 小時前AI 評分42
我的 Claude Code token 用量記錄:10 月 19 日當週
My Claude Code token log, week of Oct 19
AI 導讀
作者根據自己的 Claude Code 本機工作階段記錄,整理 10 月 12 日至 18 日的 token 用量及成本分佈。每日平均有 2,772 次呼叫、315M 快取讀取 token 及 2.4M 輸出 token;固定上下文佔成本 43.3%,是最大部分。作者指出,縮短工作階段比削減工具輸出更有幫助。
正文
Numbers only, measured from my own local Claude Code session logs (2026-10-12 to 2026-10-18, 7-day daily average).
- Calls per day: 2,772
- Cache-read tokens per day: 315M
- Output tokens per day: 2.4M
Share of cost by slice:
| Slice | Share of cost |
|---|---|
| Base (system prompt + tool list) | 43.3% |
| Model replies | 25.5% |
| User input + attachments | 21.6% |
| Shell command output | 6.1% |
| Subagents | 2.1% |
| File reads | 1.2% |
| Search (grep/glob) | 0.1% |
| MCP + other tools | 0.1% |
| Web fetch | 0.0% |
Cost weights: input 1, cache write 1.25, cache read 0.1, output 5 (input token = 1).
Takeaway: the biggest slice is the fixed context that gets re-read on every call, so shorter sessions help more than trimming tool output.
來源:DEV Community · dev.to