Feishu (Lark) IM bridge for DeepSeek Harness (dsh) — a cordis plugin
在 DeepSeek Harness 终端运行:
dsh plugin --profile web add itr-del/dsh-feishuPluggable cordis plugin wiring a Feishu self-built bot into a running
DeepSeek Harness (dsh)web
profile — installable viadsh plugin add.
┌────────┐ WS ┌──────────────┐ cordis ┌──────────┐ LLM ┌──────────┐
│ Feishu │ ──────> │ this plugin │ ──────────> │ dsh agent │ ────────> │ DeepSeek │
│ IM │ <────── │ │ <────────── │ │ <──────── │ │
└────────┘ API └──────────────┘ events └──────────┘ stream └──────────┘

feishu:<open_id>).<|DSML|...> tool-call markers from outbound text.npm install -g @deepseek-ai/dsh
dsh web --help
dsh plugin add dsh-feishu
This installs the plugin into ~/.dsh/profiles/web/node_modules/dsh-feishu and
patches cordis.patch.yml automatically.
Create a Custom App at https://open.feishu.cn/app and copy appId + appSecret.
Under Event Subscriptions (事件与回调):
im.message.receive_v1.Under Permissions (权限), grant:
im:messageim:message.p2p_msg (required for DMs)Publish a version (发布版本) — without this the bot cannot receive events.
Wait ~2 minutes after publishing.
export DEEPSEEK_API_KEY="sk-..."
export FEISHU_APP_ID="cli_..."
export FEISHU_APP_SECRET="..."
dsh web
You should see in logs:
[feishu] WebSocket started (appId=cli_xxx)
[feishu] FeishuBridgeService initialized
DM the bot anything — the agent will reply in the same conversation.
| Variable | Required | Default | Notes |
|---|---|---|---|
DEEPSEEK_API_KEY |
yes (LLM) | — | https://platform.deepseek.com |
DEEPSEEK_BASE_URL |
no | https://api.deepseek.com |
For proxies |
FEISHU_APP_ID |
yes | — | cli_xxx from app console |
FEISHU_APP_SECRET |
yes | — | From app console — never commit |
im.message.receive_v1 → this plugin.feishu:<open_id>.agent.followup(userMessage).idle, plugin reads agent.session.events, stripslarkClient.im.message.create(...).MIT.
itr-del — 13918029394@163.com
Built while integrating dsh with a self-hosted Feishu bot on Ubuntu 22.04.
📖 Open-sourcing story: PUBLISHING.md — how this repo got published and listed.
中文文档见 README.zh.md。
登录后即可为该插件评分和评价。
还没有人评价这个插件,来抢个沙发吧!