DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Feishu Auth — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
F

dsh-feishu-auth

Feishu Auth

Feishu (Lark) OAuth login gate for the DeepSeek Harness web GUI.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:jianghuifr/dsh-feishu-auth#3f147f6366786c4ffc4773fd82924fe873b5605a
READMECompatibilityVersions

Compatibility and provenance

Feishu Auth is published as dsh-feishu-auth and currently resolves to version 0.2.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
9/14/2026

Versions

0.2.1stable
9/14/2026
0.2.0stable
9/14/2026
0.1.2stable
9/13/2026
Show 2 more versionsCollapse versions
0.1.1stable
9/13/2026
0.1.0stable
9/13/2026

Related plugins

Loading related plugins…

Latest
0.2.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
9/16/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in security-access.

Doctor@linxin666/dsh-doctorTransactional rescue mode for DSH profiles with a supervised launcher, isolated recovery capsule, deterministic repairs, health monitoring, and a local Web recovery consolePocketdsh-pocketPut DeepSeek Harness in your pocket: one package, one settings page, and scan a QR code on your phone to access DSH on your computer in sync (LAN + public network, real-time screen mirroring).DSCODE@toddzheng024/dscode-bundleA complete DeepSeek coding agent with persistent shell, Ultra collaboration and automatic permission review.Auto Reviewdsh-auto-reviewSecond-model AI auto-review for DeepSeek Harness approval requests: a read-only reviewer subagent decides allow/deny on the approval answerer chain, with fail-closed fallback and full session-log audit.

README

dsh-feishu-auth

给 DeepSeek Harness(dsh)的 Web 界面加一道飞书登录:没通过飞书登录,首页、静态资源、/api 全拿不到。

为什么需要它

DSH 本身没有服务器级认证。把 Web 界面通过局域网、端口转发、反代或隧道暴露出去的那一刻,任何能连上这个地址的人都能操作你的 agent——读写工作区文件、执行命令、消耗你的 API key。

这个插件把「能不能进来」变成「在飞书里能不能登录」:

  • 保护你实际访问的那个地址(LAN IP / 隧道域名 / localhost,任意端口),不用为每个地址单独配置;
  • 登录源就是飞书应用的可用范围——谁能用这个应用谁就能进,撤权在飞书后台一次搞定;
  • 拿不到凭证时拒绝一切访问(故障关闭),不会悄悄退化成「没保护」。
flowchart LR
    A["浏览器<br/>任意地址"] -->|"未登录"| B["302 飞书授权页<br/>/api 返回 401 JSON"]
    A -->|"已登录"| F["DSH Web UI"]
    B --> C["飞书确认身份"]
    C --> D["签发会话 Cookie"]
    D --> E["交给 DSH 换它自己的 Cookie"]
    E --> F

三步上手

1. 飞书后台登记回调地址 — 开发者后台 → 你的应用 → 安全设置 → 重定向 URL,添加一条:

<你访问用的地址>/feishu-auth/callback

例如 https://xxx.trycloudflare.com/feishu-auth/callback、http://192.168.1.23:3080/feishu-auth/callback。不支持通配符,最多 300 条;访问地址变了要补一条(临时隧道重启换域名就是这种情况)。

2. 放凭证 — 写进 ~/.dsh/.env(chmod 600):

FEISHU_APP_ID=cli_xxxxxxxxxxxxxxxx
FEISHU_APP_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

3. 激活并启动 — 从 npm 安装(推荐):

dsh plugin --profile web add dsh-feishu-auth
dsh web --no-open --host 0.0.0.0 --port 3080 --trusted-host <你的隧道域名>

装完后 profile 的 dsh.profile.bundles 会多一行,启动日志出现 飞书登录已挂载 和 网关自检通过 就绪。

想跑本地源码(要改代码、或离线环境)?手工放一份仓库到 ~/.dsh/plugins/dsh-feishu-auth/,再照 AGENTS.md 的安装与激活 在 profile 里插一行。tarball 离线安装用 dsh plugin ... add ./dsh-feishu-auth-0.1.0.tgz。

权限(scope)不用申请,open_id、union_id、tenant_key、姓名直接可读。

配置

写在插件行的 config: 下,共 4 项:

配置默认说明
appId / appSecret环境变量缺省读 FEISHU_APP_ID / FEISHU_APP_SECRET;两者都拿不到时拒绝一切访问
allowedUsers[]留空 = 放行「能使用本应用的任意飞书成员」;填了就只放行列出的 open_id / union_id / user_id
sessionMaxAgeDays14会话有效期(天)

allowedUsers 该填什么:被拒的人会在页面上看到他自己的 open_id,抄进去保存即可——配置项热生效,不用重启。

退出登录

设置面板右上角有一个「退出登录」(关闭 按钮左边)。它调 /feishu-auth/logout,会清掉本插件的会话 Cookie 和 harness 自己的 dsh-auth-*——后者是关键,只清前者的话 harness 会立刻把人放回去。

标签页停在旧的 harness 报错页上时,按一次刷新即可恢复:网关会自己把浏览器接回来(同站重进 → 必要时换一份新凭据),不需要重新登录。

常见问题

现象处理
所有请求 503「未就绪」进程环境里没有凭证。确认 ~/.dsh/.env,然后重启
飞书报 redirect_uri unmatch回调地址没登记,或与当前访问地址不一致(隧道换域名了?)
飞书报 20010该账号不在应用可用范围内,或应用版本未发布
换了地址要重新登录正常:Cookie 按来源隔离,https 隧道与 http://127.0.0.1 各算一处
被自己关在门外 / 想彻底回退用 disable.patch.yml 启动一次(见下),或给那行加 disabled: true 后重启

临时停用(凭证写错、飞书挂了、改错配置把自己锁在外面)—— --patch 收的是路径,所以指向你实际装的那一份:

# 从 npm 安装的(推荐):包在 profile 的 node_modules 里
dsh --profile web --patch ~/.dsh/profiles/web/node_modules/dsh-feishu-auth/disable.patch.yml \
    --no-open --host 0.0.0.0 --port 3080

# 本地源码跑的
dsh --profile web --patch ~/.dsh/plugins/dsh-feishu-auth/disable.patch.yml \
    --no-open --host 0.0.0.0 --port 3080

overlay 里只有 - id: feishu-auth + disabled: true,按 id 覆盖组合包自带的那一行,所以与代码从哪加载无关;需要路径的只有 --patch 自己。

文档

  • AGENTS.md — 面向 agent 与维护者:安装激活、运维速查、开发约束、改动流程
  • docs/architecture.md — 内部设计:拦截层、两段式交接、Cookie 与会话、失败模式
  • docs/release.md — 分发形态、CI 与发版流程

MIT