← 返回列表
未验证
DeepSeek + OpenRouter 双账户余额芯片 · Dual account balance chip…
尚未跑自动兼容性验证,可查看页面内的依赖与入口分析。 · 最近上游提交 2026/9/5 · 已提供中文文档
DeepSeek Harness Web 的 DeepSeek 账户余额小组件:3 分钟自动刷新,并显示总额/充值/赠送明细
综合分
29.4
GitHub 分
29.4
用户评分
—
★ Stars
1
周下载量
—
安装插件(需先安装 dsh CLI 引擎:npm install -g @deepseek-ai/dsh)
dsh plugin --profile web add 305037991x-pixel/dsh-account-balance该插件未发布到 npm,走 GitHub 源安装(pnpm 若拦截 prepare 脚本,按其提示在 pnpm-workspace.yaml 的 allowBuilds 中放行后重跑)
数据截至 2026/9/18(元数据每日更新 · 实装验证按队列轮转,单条结论的验证时间见上方)
依赖的 DSH / Cordis 模块
@deepseek-ai/dsh-client-connection@deepseek-ai/dsh-client-locale@deepseek-ai/dsh-client-runtime@deepseek-ai/dsh-client-ui-conversation@deepseek-ai/dsh-client-ui-primitives@deepseek-ai/dsh-client-ui-slots@deepseek-ai/dsh-credentials@deepseek-ai/dsh-launch-environment用户评分
还没有人投票,来当第一个
订阅周报,不错过优质插件更新
每周一封 · 高评分插件 + 新用户活动
README
dsh-account-balance DeepSeek + OpenRouter 双账户余额芯片 · Dual account balance chip for DeepSeek Harness Web 会话头部常驻的 双账户余额芯片:同时显示 DeepSeek 与 OpenRouter 的可用余额,3 分钟自动刷新,悬停查看两家明细。 A persistent dual-account balance chip in the conversation header: shows both DeepSeek and OpenRouter balances, auto-refreshes every 3 minutes, with per-account breakdowns on hover. 功能 / Features - 一枚芯片同时显示两家余额:¥xx.xx · $xx.xx(OpenRouter 可用余额 = 充值 − 已用) - 悬停气泡分两段明细: - DeepSeek:总余额 · 充值 · 赠送 - OpenRouter:可用 · 充值 · 已用 - 一家失败不影响另一家:任一来源出错只在芯片上显示该来源的错误标记 - 3 分钟自动刷新 + 手动刷新按钮(两家同时刷) - 切换会话不重复拉取:余额数据与定时器为模块级共享缓存 - 密钥只存在于宿主侧,浏览器永不接触 安装 / Install dsh plugin --profile web add github:305037991x-pixel/dsh-account-balance 重启 dsh web 并硬刷新页面(Ctrl+Shift+R)。 本机开发可用 install-into-dsh.ps1(包内自带)以 link: 方式注册本地源码目录,改源码后重启即生效。 配置 / Configuration 在 $DSH_HOME/.credentials.yaml 中配置(或环境变量同名,缺哪个来源就只显示另一个): DEEPSEEK_API_KEY: sk-xxx OPENROUTER1_API_KEY: sk-or-v1-xxx 工作原理 / How it works | 端 | 文件 | 职责 | |---|---|---| | Host | lib/index.js | 注册 GET /dsh-account-balance(DeepSeek)与 GET /dsh-account-balance/openrouter(OpenRouter):各自从凭证服务(环境变量 → $DSH_HOME/.credentials.yaml → .env)解析密钥后调上游接口,响应原样透传 | | Client | lib/client.js | 在 conversation.session.header.utilities 槽位注册芯片;模块级共享两家数据 + 3 分钟定时器 | 余额数据来源: - DeepSeek API - Get User Balance - OpenRouter API - Get Credits(total_credits − total_usage = 可用) License MIT
扫码进群