dsh-tlogs
DSH 内嵌用量组件(tlogs = token logs):在 DeepSeek Harness 侧边栏页脚常驻显示 DeepSeek 开放平台账号的 Token 用量(总会话/项目/今日/当周/当月),含紧凑条、就地展开面板、详细数据视图。 适合需要实时监控和统计DeepSeek平台Token消耗情况的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:czk200518-hash/dsh-tlogsREADME
Read the full README ↗配置
| 配置 | 默认 | 说明 |
|---|---|---|
exposeUsageToModel | false | 注册对话内查询工具 |
useAccountSession | true | 复用 DSH 账号凭据 |
localUsage / localUsageScanDays | true / 32 | 读会话日志与回溯天数 |
enableProjectScope | true | 当前项目卡片 |
persistHistory | true | 历史落盘 |
autoRefreshSeconds | 300 | 定时刷新间隔,0 关闭 |
cacheTTL.total / .current | 1800 / 300 | 缓存秒数 |
startYear / startMonth | 2024 / 4 | 历史起点 |
requestIntervalMs | 1000 | 月度请求间隔 |
numberFormat | short | full 千分位 / short K·M·B |
compactMetrics | [total, today] | 紧凑条指标 |
cacheDir | '' | 空为 /tlogs |
compactMetrics 可选:total、today、week、month、last7、last30、cost_total、cost_today、cost_last7、cost_last30。
环境变量:DEEPSEEK_PLATFORM_USER_TOKEN、TLOGS_CACHE_DIR、DSH_HOME。