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
安装
$
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)。