doremifaso12345/dsh-token-ledger ↗★ 0

dsh-token-ledger

Token 账本:按本地日期监控 DSH 的每日 token 消耗(未缓存输入/缓存读取/输出),带设置页卡片、输入框徽标、/tokens 命令与 token_usage 模型工具。 适合需要详细统计每日Token用量、分析缓存命中率的用户。

Package
dsh-token-ledger
Compatibility
Unverified
Version
1.0.5
License
MIT
Last updated
Sep 20, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:doremifaso12345/dsh-token-ledger

配置

cordis.patch.yml 里可调:

- insert:
    - id: dsh-token-ledger
      name: 'dsh-token-ledger'
      config:
        enabled: true       # 总开关
        cacheTtlMs: 5000    # 结果 TTL(毫秒)
        root: null          # 显式指定 harness home,默认跟随 DSH_HOME

未知配置键会抛错而非静默忽略,避免拼写错误被默认值掩盖。