DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Tlogs — DSH Plugin for DeepSeek Harness
← Plugins
T

dsh-tlogs

Tlogs

DSH embedded usage component (tlogs = token logs): persistently displays the DeepSeek Open Platform account’s token usage in the DeepSeek Harness sidebar footer (total/session/project/today/this week/this month), with a compact bar, inline expandable panel, and detailed data view.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:czk200518-hash/dsh-tlogs#7dcb60869e9d80cc07f50b46c2e62d7e6f1585ae
READMECompatibilityVersions

Compatibility and provenance

Tlogs is published as dsh-tlogs and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
10/9/2026

Versions

0.1.0
stable
10/9/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
GPL-3.0-only
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/13/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in models-usage.

Whale Widgetdsh-whale-widgetDeepSeek balance whale widget in the bottom-right corner of the DSH Web interface: balance/today’s usage/peak-off-peak pricing, customizable bubble click sequence (text/balance/today/peak-off-peak/image/random phrases and parallel weighted selection), per-line styles and fonts, floating quick editinClient Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilitiesPer-model capability declarations (image input and reasoning efforts) for custom pi-ai providers, edited in place on the Models settings cards; writes the official llm-pi-ai settings namespace, no DSH source changes.Cost Meterdsh-cost-meterDeepSeek Harness session cost statistics plugin: current session cost, today’s charges, historical records, and synchronization with official pricing; supports multi-provider, multi-model price calculation (built-in pricing catalog for 170+ model IDs with automatic matching); queries and displays suCodex Subscriptiondsh-codex-subscriptionUse ChatGPT and Codex subscriptions in DeepSeek Harness with OAuth, quota, safe resets, web search, images, and Fast mode

README

tlogs — DSH 侧边栏 Token 用量组件

English | 中文

tlogs 在 DSH 桌面端侧边栏页脚常驻显示 Token 用量,含紧凑条、展开面板与详细数据弹窗。

紧凑条常驻页脚:

在 DSH 窗口中的紧凑条

展开后是七张卡片:

在 DSH 窗口中的展开面板

形态

紧凑条与展开面板

形态内容
紧凑条总量、今日、请求数。↻ 刷新,▾ 展开
展开面板总消耗、当前项目、今日、当周、当月、近 7 天、近 30 天
详细数据弹窗日历、图表、模型、供应商、年、月、当月按天、设置

语言

插件的界面语言在详细数据弹窗的设置页签里切换:

选项含义
跟随系统(默认)DSH 界面语言 → 浏览器语言 → 中文
中文 / English固定该语言

选择存在本机浏览器,插件重启后保持;只影响本插件界面,不改 DSH 自身语言。

详细数据

弹窗按页签组织。图表页签的三张图共享同一套控制项(范围 × 数据源 × 指标 × 粒度),切换任意一项三张图一起变:

用量趋势(折线) 构成占比(饼状) 用量分布(柱状,三段堆叠 + 请求数虚线)

日历页签按月列出逐日用量与金额,点某一天看当天明细:

日历

数据来源

来源覆盖时效金额
平台账单账号全部设备,仅官方通道滞后 10~30 分钟有
本机会话日志仅本机,含所有供应商实时无

两路逐日合并:max(平台, 本机官方通道) + 本机第三方供应商。同一次调用会被两路各记一次,因此取大而不相加。

  • 只有窗口内含平台看不到的第三方用量时,卡片才标 第三方;其余口径细节见卡片 tooltip。
  • 历史月份与图表用平台口径。模型与供应商页签按通道判定,不按模型名:火山方舟上的 deepseek-v4-flash 属第三方。

安装

四种方式:绝对路径、tarball、npm 包名、github:<user>/dsh-tlogs。lib/ 是已构建产物,安装不会构建。

desktop profile 不能用 CLI 安装,改用 设置 → 插件 → 安装;其它 profile 用 dsh plugin --profile web add dsh-tlogs。

安装后重启 DSH。实测 DSH 0.2.0-rc.2(desktop、web)。

凭据

顺序来源
1环境变量 DEEPSEEK_PLATFORM_USER_TOKEN
2配置 platformUserToken(明文)
3DSH 凭据 TLOGS_USER_TOKEN(面板填写)
4复用 DSH 已登录账号
5内置登录窗口(桌面端不可用)

前 3 项优先于自动来源;退出登录只清除第 3 项。

配置

配置默认说明
exposeUsageToModelfalse注册对话内查询工具
useAccountSessiontrue复用 DSH 账号凭据
localUsage / localUsageScanDaystrue / 32读会话日志与回溯天数
enableProjectScopetrue当前项目卡片
persistHistorytrue历史落盘
autoRefreshSeconds300定时刷新间隔,0 关闭
cacheTTL.total / .current1800 / 300缓存秒数
startYear / startMonth2024 / 4历史起点
requestIntervalMs1000月度请求间隔
numberFormatshortfull 千分位 / short K·M·B
compactMetrics[total, today]紧凑条指标
cacheDir''空为 <DSH_HOME>/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。

安全

措施说明
凭据只暴露 getPlatformSession();会话凭据仅刷新期间持有;失效标记只存摘要
网络只连 platform.deepseek.com;不跟重定向;部署头白名单只放行 x-
模型隔离默认不注册工具;打开后项目 id 仍是不可逆哈希
会话日志只读、只取计数与 provider/model,落盘只存路径哈希
发布闸门npm run verify:secrets

最小权限配置:

exposeUsageToModel: false
useAccountSession: false
enableProjectScope: false
persistHistory: false
localUsage: false

隐患

架构

  1. 同一浏览器 realm 内,其它插件可调用本插件的 RPC。
  2. .credentials.yaml 同用户进程可读——本机凭据的主要暴露面,与插件无关。
  3. 会话凭据只能断开引用,无法物理擦除(JS 字符串不可变);DSH 内部是否缓存不在本插件边界内。

取舍

  1. 面板显示项目 label,本机数据源读取会话日志;可用配置关闭。
  2. 项目快照从插件启用当天开始,无法回溯。

使用习惯

  1. 在对话中粘贴用量数字或截图会进入模型上下文。

开发

pnpm run check       # 密钥闸门、文案外置校验、注释闸门、typecheck、build、测试
pnpm run verify:dsh  # 用本机 DSH 解析器校验插件声明
pnpm run golden      # 在线端到端对拍,需要 DEEPSEEK_PLATFORM_USER_TOKEN

test/golden.test.ts 缺外部 Python 参考脚本时跳过,用 TLOGS_REFERENCE_SCRIPT=<路径> 指定。

许可

GPL-3.0-only,全文见 LICENSE。