YOYOYOAKE/dsh-token-plan-monitor

YOYOYOAKE★ 0TypeScript最后同步: 2026-08-17

在 GitHub 打开

README 摘要

dsh-token-plan-monitor DeepSeek Harness 插件,用于在侧边栏底部 API 余额或 Token Plan 用量。 目前支持: - DeepSeek Platform 余额 - OpenCode Go 安装 使用 DeepSeek Platform 自动读取 DeepSeek API Key 查询余额。 OpenCode Go 需要在 DeepSeek Harness 设置中额外配置用量查询参数: - WorkSpace ID :从 URL 中复制; - Cookie :从 DevTools 中获取。 开发 项目结构 添加新的提供商 1. 新建 src/providers/my-vendor.ts 2. 实现 UsageProvider : - id / name / description - configFields :设置页需要填写的特殊参数 - credentialRefs :候选凭据名 - usageConfigFields :哪些参数填好后才能发起查询 - matchesModel() :判断是否对应 DSH 中的某个 provider - fetchUsage() :调用供应商 API - renderLines() :把结果渲染成卡片行 3. 在 src/index.ts 的 PROVIDERS 数组中追加一行 4. 重新构建并安装: 常用开发命令 开发时修改源码后重新执行 npm run build ,刷新浏览器即可看到效果; cordis.patch.yml 会被 profile 的补丁监视器热重载。 License MIT.

在 GitHub 查看完整 README →
工具/开发dsh-plugin

分类