elskly-cmyk/dsh-mobile-gateway ↗★ 0
dsh-mobile-gateway
LAN access plugin for the DeepSeek Harness (dsh) web host: binds all interfaces and serves a token-gated /m/api route family for the companion mobile app
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:elskly-cmyk/dsh-mobile-gateway说明文档
阅读完整 README ↗3. 配置 token(见下),然后启动——不用任何 flag
dsh web
配置
token 必填,其余有默认值。两种配置途径:
途径一:profile patch(~/.dsh/profiles/web/cordis.patch.yml):
- id: mobile-gateway
config:
token: 换成一个长随机串
allowSettings: true # 设置面(settings.*),默认 true
allowCredentials: true # 凭据面(credentials.*),默认 true
extraMethods: [] # 追加放行的方法名,如 ['subagent.history']
maxRequestBodyBytes: 750000000
途径二:Web GUI 设置卡(设置 → 插件配置 → mobile-gateway),改完热生效。
| 字段 | 默认 | 说明 |
|---|---|---|
token | (必填) | App 侧以 Authorization: Bearer 呈现;留空插件拒绝启动 |
allowSettings | true | 放行 settings.describe/update/replace/mutate |
allowCredentials | true | 放行 credentials.describe/set/unset |
extraMethods | [] | 白名单之外追加放行的方法 |
maxRequestBodyBytes | 750000000 | /m/api 单请求体上限(须与 connection 行同步调大) |