설치
npx -y @deepseek-ai/dsh plugin --profile web add github:305037991x-pixel/dsh-balance이 설치 명령은 GitHub 저장소 주소에서 생성된 확인되지 않은 시작점입니다.
README
유지 관리자가 작성한 문서 스냅샷입니다.
dsh-balance
DeepSeek 账户余额芯片 · DeepSeek account balance chip for DeepSeek Harness Web
会话头部常驻的 DeepSeek 余额芯片:显示账户可用余额,3 分钟自动刷新,悬停查看总余额/充值/赠送明细。
A persistent DeepSeek balance chip in the conversation header: shows the account balance, auto-refreshes every 3 minutes, with total / topped-up / granted breakdown on hover.
功能 / Features
- 会话头部芯片,显示当前可用余额(¥/$/按币种符号)
- 悬停气泡:总余额 · 充值 · 赠送
- 3 分钟自动刷新 + 手动刷新按钮
- 切换会话不重复拉取:余额数据与定时器为模块级共享缓存
- 密钥只存在于宿主侧,浏览器永不接触
安装 / Install
dsh plugin --profile web add github:305037991x-pixel/dsh-balance
重启 dsh web 并硬刷新页面(Ctrl+Shift+R)。
配置 / Configuration
在 $DSH_HOME/.credentials.yaml 中配置(或环境变量同名):
DEEPSEEK_API_KEY: sk-xxx
工作原理 / How it works
| 端 | 文件 | 职责 |
|---|---|---|
| Host | lib/index.js | 注册 GET /dsh-balance:解析 DEEPSEEK_API_KEY(凭证服务:环境变量 → $DSH_HOME/.credentials.yaml → .env),调用官方余额接口 https://api.deepseek.com/user/balance |
| Client | lib/client.js | 在 conversation.session.header.utilities 槽位注册芯片;模块级共享数据 + 3 分钟定时器 |
余额数据来源:DeepSeek API - Get User Balance。
License
MIT
저장소 정보
- 언어
- JavaScript
- 라이선스
- MIT
- 마지막 업데이트
- 2026. 8. 16. 오전 11:54
신중하게 설치하기
소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.