Yhx888/dsh-free-egg-credits ↗★ 0
dsh-free-egg-credits
显示反代网关可用积分、签到状态及对话消耗 适合使用WorkBuddy或Qoder网关,需要监控额度和自动签到的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Yhx888/dsh-free-egg-credits說明文件
閱讀完整 README ↗配置
写在目标 profile 的 cordis.patch.yml(插件 id:free-egg-credits):
- id: free-egg-credits
config:
gatewayBaseUrl: 'http://127.0.0.1:7863'
gatewayConfigPath: 'C:/path/to/workbuddy2api/config.json'
realms: [cn]
autoCheckin: true
checkinAfterHour: 8
checkinRetryMinutes: 10
refreshSeconds: 30
creditsPer1k: {}
qoder:
baseUrl: 'http://127.0.0.1:8790'
panelPasswordFile: 'C:/path/to/qoder2api/.panel-password'
这一层的
config是整体替换 bundle 层配置,不是深合并:一旦写了qoder,qoder下的字段要一起写全(baseUrl必填,panelPasswordFile/panelPassword/enabled可选)。
| 字段 | 默认 | 说明 |
|---|---|---|
gatewayBaseUrl | http://127.0.0.1:7863 | WorkBuddy 网关地址 |
gatewayConfigPath | 包目录上两级 config.json | 从网关配置读取 api_key。默认值只对「插件放在网关仓库内」的开发期布局有效;独立目录安装时必须显式指向网关 config.json,否则读不到密钥、网关判离线、侧边栏只剩标题没有账号行 |
apiKey | 空 | 直接给密钥(优先于配置文件) |
realms | [cn] | 统计哪些域;国内账号即 cn |
autoCheckin | true | 是否自动补签 / 探测签到状态 |
checkinAfterHour | 8 | 几点后才自动探测(避免凌晨误触发) |
checkinRetryMinutes | 10 | 失败重试间隔 |
refreshSeconds | 30 | 网关快照缓存 |
creditsPer1k | {} | 单价覆盖(模型名 → 积分/千 token) |
qoder | 无 | Qoder 网关子配置:baseUrl、panelPasswordFile(面板密码文件)、panelPassword(内联兜底)、enabled。不配置则不启用 Qoder 来源 |