AI Newsletter Digest improvements: fixed QP soft line break decoding, URL extraction, and content cleaning
This commit is contained in:
19
skills/openclaw-self-healing/scripts/claude-usage-simple.sh
Normal file
19
skills/openclaw-self-healing/scripts/claude-usage-simple.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
# Claude 사용량 간단 확인 (stats-cache.json 기반)
|
||||
|
||||
CACHE=~/.claude/stats-cache.json
|
||||
|
||||
if [ ! -f "$CACHE" ]; then
|
||||
echo "❌ stats-cache.json not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "📊 Claude 사용량 (로컬 캐시 기반)"
|
||||
echo ""
|
||||
|
||||
# 최근 7일 토큰 합산
|
||||
jq -r '.dailyModelTokens[-7:] | map(.tokensByModel | to_entries | map(.value)) | flatten | add' "$CACHE" 2>/dev/null || echo "0"
|
||||
|
||||
echo ""
|
||||
echo "💡 정확한 한도는 웹에서 확인:"
|
||||
echo " https://claude.ai/settings/usage"
|
||||
Reference in New Issue
Block a user