fthuu/Tokan-dsh-token-analytics0

tokan-dsh-token-analytics

DSH plugin for token usage analytics, cost tracking, and optimization signals

AI 분석

核心用途是监控和分析会话的 Token 消耗与成本。适合需要实时掌握 Token 构成(新输入、缓存、输出)及费用明细的用户。需要 Node.js >= 22.19 或 >= 24。

패키지
tokan-dsh-token-analytics
버전
0.37.1
라이선스
NOASSERTION
최근 업데이트
2026. 8. 31.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fthuu/Tokan-dsh-token-analytics

Token Usage Dashboard

Real-time metrics for the selected session:

  • Total Tokens: input + output
  • Input (New): tokens not served from cache
  • Input (Cache): tokens served from cache hits
  • Output: generated tokens
  • Cache Hit Rate: percentage of input from cache
  • Cost: total cost (when pricing is available for the provider/model)

Token 使用仪表板

所选会话的实时指标:

  • 总 Token 数:输入 + 输出
  • 输入(新):非缓存命中的 Token
  • 输入(缓存):缓存命中的 Token
  • 输出:生成的 Token
  • 缓存命中率:输入中来自缓存的百分比
  • 成本:总成本(当提供商/模型定价可用时)