Yhx888/dsh-free-egg-credits ↗★ 0

dsh-free-egg-credits

Free Egg 积分:在 DSH 界面里显示各反代网关(WorkBuddy / Qoder)账号的可用积分、每日签到状态,以及每条对话消耗的积分。 适合使用WorkBuddy或Qoder网关,需要监控额度和自动签到的用户。

패키지
dsh-free-egg-credits
호환성
미검증
버전
1.0.0
라이선스
MIT
최근 업데이트
2026. 10. 18.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Yhx888/dsh-free-egg-credits

配置

写在目标 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 可选)。

字段默认说明
gatewayBaseUrlhttp://127.0.0.1:7863WorkBuddy 网关地址
gatewayConfigPath包目录上两级 config.json从网关配置读取 api_key。默认值只对「插件放在网关仓库内」的开发期布局有效;独立目录安装时必须显式指向网关 config.json,否则读不到密钥、网关判离线、侧边栏只剩标题没有账号行
apiKey空直接给密钥(优先于配置文件)
realms[cn]统计哪些域;国内账号即 cn
autoCheckintrue是否自动补签 / 探测签到状态
checkinAfterHour8几点后才自动探测(避免凌晨误触发)
checkinRetryMinutes10失败重试间隔
refreshSeconds30网关快照缓存
creditsPer1k{}单价覆盖(模型名 → 积分/千 token)
qoder无Qoder 网关子配置:baseUrl、panelPasswordFile(面板密码文件)、panelPassword(内联兜底)、enabled。不配置则不启用 Qoder 来源