feishu-connection
25
总安装量
25
周安装量
#7994
全站排名
安装命令
npx skills add https://github.com/xiaomingx/moltbot-connector-feishu-dingtalk --skill feishu-connection
Agent 安装分布
openclaw
19
opencode
12
gemini-cli
12
cursor
10
antigravity
9
Skill 文档
Feishu Bridge
Bridge Feishu bot messages to Clawdbot Gateway over local WebSocket.
Architecture
Feishu user â Feishu cloud âWSâ bridge.py (local) âWSâ Clawdbot Gateway â AI agent
- Feishu SDK connects outbound (no inbound port / public IP needed)
- Bridge authenticates to Gateway using the existing gateway token
- Each Feishu chat maps to a Clawdbot session (
feishu:<chatId>)
Setup
1. Create Feishu bot
- Go to open.feishu.cn/app â Create self-built app â Add Bot capability
- Enable permissions:
im:message,im:message.group_at_msg,im:message.p2p_msg - Events: add
im.message.receive_v1, set delivery to WebSocket long-connection - Publish the app (create version â request approval)
- Note the App ID and App Secret
2. Store secret
mkdir -p ~/.clawdbot/secrets
echo "YOUR_APP_SECRET" > ~/.clawdbot/secrets/feishu_app_secret
chmod 600 ~/.clawdbot/secrets/feishu_app_secret
3. Install & run
cd <skill-dir>/feishu-connection
uv sync
FEISHU_APP_ID=cli_xxx uv run python bridge.py
4. Auto-start (macOS)
FEISHU_APP_ID=cli_xxx uv run python setup_service.py
launchctl load ~/Library/LaunchAgents/com.clawdbot.feishu-bridge.plist
Diagnostics
# Check service
launchctl list | grep feishu
# Logs
tail -f ~/.clawdbot/logs/feishu-bridge.err.log
# Stop
launchctl unload ~/Library/LaunchAgents/com.clawdbot.feishu-bridge.plist
Group chat behavior
Bridge replies only when: user @-mentions the bot, message ends with ?/ï¼, contains request verbs (帮/请/åæ/æ»ç»â¦), or calls the bot by name. Customize the name list in bridge.py â should_respond_in_group().
Environment variables
| Variable | Required | Default |
|---|---|---|
FEISHU_APP_ID |
â | â |
FEISHU_APP_SECRET_PATH |
â | ~/.clawdbot/secrets/feishu_app_secret |
CLAWDBOT_CONFIG_PATH |
â | ~/.clawdbot/clawdbot.json |
CLAWDBOT_AGENT_ID |
â | main |
FEISHU_THINKING_THRESHOLD_MS |
â | 2500 |