dsh-client-ui-peak-valley
by liuyun847
DSH Web 客户端插件:模型选择按钮左侧显示 DeepSeek API 峰/谷价状态(绿=谷,橙=峰)
安装
dsh plugin --profile web add github:liuyun847/dsh-client-ui-peak-valleyGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
DSH(DeepSeek Harness)Web 客户端插件:在对话框模型选择按钮左侧显示当前 DeepSeek API 的峰/谷价状态。
- 🟢 绿色方块 + 「谷价」:空闲时段
- 🟠 橙色方块 + 「峰价」:高峰时段
判定规则(与官方定价一致):高峰时段为北京时间 09:00–12:00、14:00–18:00,其余为空闲(谷)时段。按 Asia/Shanghai 时区计算,不依赖浏览器本地时区;每 30 秒自动刷新,跨时段自动切换。
显示条件:仅当当前会话使用 DeepSeek 系列模型且来源为 官方 API 或 opencode-go 网关时才显示。判断依据:
- 模型 id 以
deepseek-开头(经session.models查询); - 来源为以下任一:
- 官方适配器
deepseek-official,且未将llm-deepseek配置的baseURL显式改为非官方地址(经settings.describe查询)——不查 baseURL 时视为官方; - 自定义网关 provider
opencode-go(视为官方 DeepSeek 中转,直接显示)。
- 官方适配器
使用其他第三方 provider(如 ww)或自定义 baseURL 时,除非模型为 deepseek-* 且来源满足上述条件,否则不显示。
安装
在 DSH profile 目录(例如 ~/.dsh/profiles/web/)下:
添加依赖:
// package.json { "dependencies": { "dsh-client-ui-peak-valley": "github:liuyun847/dsh-client-ui-peak-valley" } }然后
pnpm install(或npm install)。在
cordis.patch.yml中注册插件行:- insert: - id: peak-valley name: 'dsh-client-ui-peak-valley'重启
dsh web,刷新页面后生效。
也可以先
npm publish发布到 npm registry,再把依赖改为"dsh-client-ui-peak-valley": "^0.1.1"。
工作原理
- 通过
dsh.client声明(见package.json)注册为浏览器端插件。 - 在
conversation.input.right座位注册 UI——该座位恰好渲染在模型选择按钮(conversation.input.model)的左侧,不替换任何原生 UI。 - 颜色使用主题 token(
--dsw-alias-state-success-primary/--dsw-alias-state-warn-primary),自动适配浅色/深色主题。
开发
# 本地直接安装依赖后即可开发
pnpm install
# 修改 lib/client.js 后,按上述安装方式重新安装/重启生效
License
MIT
原始 README: https://github.com/liuyun847/dsh-client-ui-peak-valley/blob/main/README.md ↗
同类插件
查看全部 →
agent-vision-toolkit
为纯文本模型"看图“设计更好的视觉工具箱和技能,支持多图理解,图片问答,前端UI还原、GUI 自动化等,并可选无缝接入多个主流agent,直接识别粘贴图片| A vision toolkit and skill designed for text-only llms — image Q&A, long-screenshot OCR, frontend UI restoration, and GUI automation, with optional seamless integration for Codex, Claude Code, Pi, Oh My Pi, and OpenCode

api-relay-audit
从 DeepSeek Harness 对 AI API 中转站和 LLM 代理运行本地安全审计,生成 Markdown 报告,覆盖提示词注入、模型替换信号、工具调用改写、错误泄漏、流完整性和按 profile 启用的 Web3 风险。

OpenStory
✨ OpenStory 现已支持 DeepSeek Harness 插件! 现在可以通过 dsh-openstory 将 OpenStory 多智能体推演接入 DeepSeek Harness,让 agent 直接启动模拟、查看角色、下达指令并逐回合推进故事。查看 DSH 插件配置与使用指南。

phi
pi的编码代理 ∞ 提供者、子代理、hashline编辑和权限门

anysearch-dsh
DeepSeek Harness(DSH)的 AnySearch 网络搜索提供方与高级搜索工具。

codex-switch
Codex Switch 是一个 macOS 工具,一键配置 Codex 的自定义 API,同时保留官方 OpenAI 登录。保存后 Codex 的模型选择器里只会出现你选的那个 provider 的模型。也支持 Claude Code 的官方 / 自定义 API 切换。Codex Switch is a lightweight helper for configuring multiple coding-agent API routes. For Codex, it keeps Official OpenAI and a custom API provider configured in parallel, registers the custom model in Codex's mod