토큰 추적
LLM 호출의 토큰 사용량 및 비용을 추적합니다.
개요
토큰 추적 시스템은 LLM별 토큰 사용량을 추적하고 비용을 추정합니다. 세션/일일/월별 임계치를 설정하여 비 용을 관리할 수 있습니다.
설정
.claude/config/default.json:
{
"multi_llm": {
"token_tracking": {
"enabled": true,
"use_json_output": true,
"fallback_to_estimation": true,
"estimation_method": "char_ratio"
},
"cost_alerts": {
"enabled": true,
"thresholds": {
"session_usd": 0.50,
"daily_usd": 5.00,
"monthly_usd": 50.00
},
"actions": {
"log": true,
"notify_user": true
}
}
}
}