bihangchi9-creator/lark-agent-bridge ↗★ 33

@bihangchi9/lark-agent-bridge

连接本地编码智能体与飞书/Lark的网关 适合需要将本地DSH或CLI智能体接入飞书群聊进行协作的团队。

套件
@bihangchi9/lark-agent-bridge
相容性
待驗證
Cordis 依賴範圍
*
版本
0.0.3
授權
NOASSERTION
最近更新
2026年9月18日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:bihangchi9-creator/lark-agent-bridge

Configuration

Every field can come from the plugin config: block or an environment variable (env is the friendlier default).

ConfigEnv varDefaultMeaning
appIdLARK_APP_ID—Feishu app id (cli_...)
appSecretLARK_APP_SECRET—Feishu app secret
tenantLARK_TENANTfeishufeishu (feishu.cn) or lark (larksuite.com)
providerDSH_LARK_PROVIDERdsh defaultLLM provider route
modelDSH_LARK_MODELdsh defaultModel for created agents
workspaceRootDSH_LARK_WORKSPACE_ROOT~/dsh-lark-workspacesRoot for per-chat folders
allowDmDSH_LARK_ALLOW_DMtrueRespond in direct messages
requireMentionDSH_LARK_REQUIRE_MENTIONtrueIn groups, require an @-mention
turnTimeoutMsDSH_LARK_TURN_TIMEOUT_MS600000Hard deadline for one agent turn; timeout disposes the stuck session
allowedChatsDSH_LARK_ALLOWED_CHATS[]Chat ids allowed to use the bot (comma-separated). Empty = no group allowed (fail-closed)
allowedUsersDSH_LARK_ALLOWED_USERS[]User open_ids allowed to DM the bot (comma-separated). Empty = only the owner may DM
accessModeDSH_LARK_ACCESS_MODEworkspaceDefault access tier: read-only, workspace, or full
extraPresetsDSH_LARK_EXTRA_PRESETS{}Extra id:preset-name pairs
ssoGatedPresetsDSH_LARK_SSO_GATED_PRESETS[]Preset ids that must pass host SSO on switch and on every turn
ssoCheckCmdDSH_LARK_SSO_CHECK_CMD—SSO status command, parsed as argv without a shell
ssoOkMarkerDSH_LARK_SSO_OK_MARKERAuthenticatedRequired text in successful SSO output
presetModelsDSH_LARK_PRESET_MODELS{}presetId:provider:model routes

Credentials are read in this order: inline config → environment variables → the file written by the registration wizard.