wz-heng/dsh-feishu-bridge ↗★ 5
dsh-feishu-bridge
dsh-feishu-bridge 的插件外壳,用于在 DSH 主机中启动并监管飞书(Lark)通道桥接器的 Python 进程。
AI 分析
核心用途是将飞书通道桥接器集成到 DSH 插件体系中进行统一监管。适合需要将 DSH 对话接入飞书的用户。注意:需用户自行提前安装好 Python 依赖环境。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:wz-heng/dsh-feishu-bridge說明文件
閱讀完整 README ↗Configuration reference
Everything is an environment variable. An optional YAML file (path via DSH_FEISHU_BRIDGE_CONFIG, or --config) can supply the non-secret knobs (allowlists, model, provider) — see examples/config.example.yaml. Env vars always win when both are set, and credentials are never read from the YAML file on purpose.
| Env var | Default | Meaning |
|---|---|---|
DEEPSEEK_API_KEY | — | Required. Same var the SDK itself reads. |
DEEPSEEK_BASE_URL | — | Optional, for an OpenAI-compatible proxy. |
DSH_PROVIDER | deepseek-official | Provider route (see SDK docs). |
DSH_MODEL | deepseek-v4-flash | Model id. |
DSH_MAX_TOKENS | unset | Optional per-request output cap. |
DSH_CORDIS | unset | Path to a custom Cordis composition; omit to use the bundled default. Mutually exclusive with DSH_APPROVAL_MODE (that mode ships its own composition — see "Remote tool approval"). |
DSH_SESSION_ROOT | unset | Where the runtime writes its JSONL session logs. |
DSH_WORKSPACE | current dir | The workspace the agent's tools operate in. |
DSH_APPROVAL_MODE | 0 | 1/true/yes/on to require a Feishu Allow/Deny tap before every bash call — see "Remote tool approval". |
DSH_APPROVAL_TIMEOUT_SECONDS | 60 | How long a pending approval card waits before it's denied automatically (fail-closed). |
FEISHU_APP_ID / FEISHU_APP_SECRET | — | Both required together, or leave both unset. |
FEISHU_TRANSPORT | ws | ws (no public URL needed) or webhook. |
FEISHU_VERIFICATION_TOKEN | — | Required when FEISHU_TRANSPORT=webhook. |
FEISHU_ENCRYPT_KEY | unset | Required when FEISHU_TRANSPORT=webhook — enable "Encrypt Key" for this event subscription in the Feishu console and paste the same value here. Used to verify each request's X-Lark-Signature (see "Security posture"). |
FEISHU_DOMAIN | https://open.feishu.cn | Change for Lark international / a proxy. |
FEISHU_ALLOWED_OPEN_IDS | (empty) | Comma-separated. Required — empty means nobody is authorized. |
FEISHU_ALLOWED_CHAT_IDS | (empty = no restriction) | Comma-separated group allowlist. |
DSH_FEISHU_BRIDGE_HOST | 0.0.0.0 | HTTP server bind address (health check + webhook route). |
DSH_FEISHU_BRIDGE_PORT | 8788 | HTTP server port. |