chenpengye/dsh-balance-local ↗★ 0
dsh-balance-local
Local-only DeepSeek API balance plugin for dsh: queries https://api.deepseek.com/user/balance on the Host side; the API key never leaves the server process.
AI 분석
核心用途是安全地在本地查询 DeepSeek 账户余额。适合注重 API 密钥隐私安全,希望在 DSH 后台直接获取官方账户余额信息的敏感用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:chenpengye/dsh-balance-localUsage / 使用
- The API key comes from the dsh credential store (
DEEPSEEK_API_KEY), the same one saved in Settings → Models. No extra configuration needed. - API key 复用 dsh 凭据库中的
DEEPSEEK_API_KEY(设置 → 模型 里保存的那个),无需额外配置。
Configuration / 配置项
Host-side config (defaults shown), overridable in the profile config:
| Key | Default | Description |
|---|---|---|
apiKeyRef | DEEPSEEK_API_KEY | credential reference resolved on the Host |
baseUrl | https://api.deepseek.com | upstream; HTTPS only (loopback HTTP allowed for tests) |
timeoutMs | 10000 | upstream request timeout |
cacheMs | 30000 | Host-side response cache |
allowRemote | false | when false, non-loopback requests are rejected with 403 |