dsh-web-search-ddg
aooyoo
Zero-token DuckDuckGo search provider for the DeepSeek Harness (DSH) web seam — local headless browser, no API key, no m…
PROJECT TOPICS
PROJECT README
DSH Web GUI 的余额小部件,两处显示,每 30 秒自动刷新(也可手动刷新):
余额 ¥1.36)两处共享同一份轮询数据,任意一处挂载即开始刷新,切换页面后数据同步更新。
API Key 全程留在 host 进程内:插件通过 DSH 的凭据通道(ctx.credentials)解析 DEEPSEEK_API_KEY,在 host 侧请求官方余额接口(GET https://api.deepseek.com/user/balance),浏览器只拿到余额结果,永远接触不到 Key。
# 从 GitHub 安装(发布后)
dsh plugin --profile web add https://github.com/MatsMQ/dsh-deepseek-balance
# 或本地路径安装
dsh plugin --profile web add <本包路径>
依赖:host 侧需要 webServer 与 credentials 服务(web profile 自带),浏览器侧需要 react(shell 自带)。
$DSH_HOME/.credentials.yaml 或环境变量):DEEPSEEK_API_KEY: sk-...,与模型设置中使用的 Key 一致。| 字段 | 默认值 | 说明 |
|---|---|---|
credentialRef |
DEEPSEEK_API_KEY |
使用的凭据引用名 |
upstreamUrl |
https://api.deepseek.com/user/balance |
余额查询端点 |
timeoutMs |
10000 |
上游请求超时(毫秒) |
GET /dsh-balance(exact)— 余额 JSON,Cache-Control: no-store。Sec-Fetch-Site),防止 DNS-rebinding 类跨站读取;无该头部的本地工具(curl、node)不受影响。no-credential / unauthorized / upstream / network,以及成功时的 { ok: true, data, fetchedAt }。127.0.0.1;若把 webServer 绑到 0.0.0.0,该路由也会暴露到局域网(余额信息,非密钥)。CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。