DeepSeek Harness plugin

dsh-session-cost-glangzh

dsh 插件:会话头部按钮,弹窗显示当前会话 DeepSeek 花费与账户余额(独立插件,不依赖桌面客户端)

Jump to install

Source facts

Repository
glangzh/dsh-session-cost
Latest update
Aug 16, 2026
Category
Memory
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/glangzh/dsh-session-cost
Plugin: dsh-session-cost-glangzh
Author: glangzh

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer2 files
README.mdSource · read only

dsh-session-cost

为 dsh(DeepSeek Harness)网页端提供会话花费 + 账户余额查询。会话头部右上角(Session log 旁)一个图标按钮,点击弹窗显示当前会话的 DeepSeek 花费明细与账户余额。

功能

  • 会话花费:展示输入(未缓存+缓存写)/ 输入(缓存命中)/ 输出 + 合计
  • 仅统计 DeepSeek 模型,按每次调用实际模型计价
  • 账户余额:DeepSeek 开放平台余额查询

安装

通过 dsh plugin 安装到任意 profile:

# git 安装(推荐,纯 JS 无构建,可直接用;建议锁定 commit)
dsh plugin --profile web add github:glangzh/dsh-session-cost

# 本地目录(开发调试)
dsh plugin --profile web add ./dsh-session-cost

重启 dsh web(或所在应用)生效;更新用 dsh plugin --profile web update dsh-session-cost,卸载用 dsh plugin --profile web remove dsh-session-cost

> 注:若插件含 TypeScript 构建步骤,git 安装需要 prepare 脚本,并在 profile 的 pnpm-workspace.yaml 中对该包授权构建。

配置

  • DeepSeek API Key:环境变量 DEEPSEEK_API_KEY,或 ~/.dsh/.credentials.yaml 中的 DEEPSEEK_API_KEY 条目
  • 价目表覆盖:DSH_PRICES_FILE 指向自定义 JSON
  • 价格缓存:~/.dsh/session-cost/prices.json

免责

花费为近似口径(token 桶 × 表价),精确账单以 DeepSeek 官方为准;峰谷时段与价格以官方公告为准。