SparkWeiyang/dsh-lan0

dsh-lan

DSH bundle: expose the Web GUI on the LAN (bind 0.0.0.0) and add a deepseek/balance RPC that queries the official DeepSeek balance with the PC-side credential

AI 分析

核心用途是实现 DSH 的局域网共享访问以及便捷查询官方余额。适合有多设备局域网协同需求,或需要频繁监控 DeepSeek 账户余额的用户。

パッケージ
dsh-lan
バージョン
1.0.0
ライセンス
MIT
最終更新
2026/08/16

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:SparkWeiyang/dsh-lan

ドキュメント

README 全文を読む ↗

使用

dsh web              # 绑定 0.0.0.0:3080,局域网可访问
dsh web --port 8080  # 换端口

启动后 web-runtime 会打印局域网 URL(如 (LAN: http://192.168.x.x:3080))。

余额查询 RPC

客户端向 harness 发送标准 RPC 信封(Typert 端点约定 payload.args):

{
  "type": "client-request",
  "rpcId": "uuid",
  "method": "deepseek/balance",
  "payload": { "args": {} }
}

响应 result.value 即 DeepSeek 官方余额:

{
  "is_available": true,
  "balance_infos": [
    { "currency": "CNY", "total_balance": "8.27", "granted_balance": "0.00", "topped_up_balance": "8.27" }
  ]
}

PC 端凭证未配置时返回 internal 错误(DEEPSEEK_API_KEY credential is not configured)。