360 Secure SkillHub
360 安全技能中心

Lark Openclaw Bridge

该 Skill 是 Lark(飞书)与 OpenClaw 之间的双向消息桥:接收群聊/单聊消息并自动回复,支持主动推送文本与图片、按消息或话题回复、查询会话与群成员信息、自动下载消息中的文件/图片,并做群消息批量处理、去重与线程上下文保持。以 Node 脚本与本地 HTTP 接口提供服务,默认以 macOS LaunchAgent 常驻运行。

分类:协作
tristanchenxm
tristanchenxm
热度 1.70
最近更新 2026-03-16 18:16:49

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add tristanchenxm/lark-openclaw-bridge
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
lark-bridge
description
Lark ↔ OpenClaw bridge for message sending. Please always use this skill for message sending. This bridge can also be used to query Session Info details (members, etc.) for Lark groups/chats.

Lark Bridge Skill

Overview

Lark Bridge is a two-way communication bridge between Lark (Feishu) and OpenClaw:

  1. Lark messages → OpenClaw processing → auto-reply back to Lark
  2. OpenClaw/skills proactively push messages/images to Lark groups or direct chats
  3. High-concurrency group message batch processing optimization (reduces API calls and noise)
  4. Automatically downloads files/images from Lark messages to a local temp directory
  5. Thread context continuity, mention detection, message deduplication, etc.

Deployment Info

  • Entry point: scripts/server.mjs
  • Port: configured in .env (default: 18780)
  • Runtime: macOS LaunchAgent background daemon
  • Logs: /tmp/lark-bridge.log / /tmp/lark-bridge.error.log
  • Temp file directory: ~/clawd/tmp/lark-files/ (all received files/images saved here automatically)

Common Operations

Service Management

# Restart service
launchctl kickstart -k gui/$(id -u)/com.openclaw.lark-bridge

# Check service status
launchctl list | grep lark-bridge

# Tail live logs
tail -f /tmp/lark-bridge.log

# Health check
curl http://localhost:<port>/health

Proactive Messaging

# Send proactive message
curl -X POST http://localhost:<port>/proactive \
  -H "Content-Type: application/json" \
  -d '{"chatId":"oc_xxx","text":"message content"}'

# Send image
curl -X POST http://localhost:<port>/proactive \
  -d '{"chatId":"oc_xxx","imagePath":"/path/to/img.png","text":"image caption"}'

# Direct reply to a specific message (highest priority)
curl -X POST http://localhost:<port>/proactive \
  -d '{"chatId":"oc_xxx","text":"reply content","parentId":"om_xxx"}'

# Reply within the same thread
curl -X POST http://localhost:<port>/proactive \
  -d '{"chatId":"oc_xxx","text":"reply content","rootId":"om_xxx","threadId":"omt_xxx"}'

Query Session Info

# Get group/chat details (including member list)
curl "http://localhost:<port>/session-info?sessionKey=agent:main:lark:oc_xxx"

# Get basic chat info
curl "http://localhost:<port>/chat-info?sessionKey=agent:main:lark:oc_xxx"