Feishu Bridge for Openclaw

A secure WebSocket bridge connecting Feishu (Lark) bots to local AI agents without requiring public servers or domain configurations.

alexanys
v1.0.0
Jan 27, 2026
8
11.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install feishu-bridge

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install feishu-bridge using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Feishu Bridge?

The Feishu Bridge is a specialized connector designed to link Feishu (Lark) messaging bots with the Clawdbot Gateway. By leveraging WebSocket long-connections, this skill allows developers to deploy AI-driven bots within their organization's communication platform without the need for complex networking setups like ngrok, public IPs, or SSL certificates. This makes it an essential tool for teams looking to leverage Openclaw Skills within a secure, private environment.

The bridge ensures that every Feishu chat is mapped directly to a unique Clawdbot session using the feishu:chatId format. This maintains conversation context and allows the AI agent to interact seamlessly with users across direct messages and group chats, providing a robust interface for localized AI services.

Feishu Bridge Use Cases

  • Deploying internal corporate AI assistants on Feishu/Lark without exposing local infrastructure to the public internet.
  • Automating team workflows through group chat AI interactions powered by Openclaw Skills.
  • Troubleshooting and managing the bridge service via local logs and macOS launchd.
  • Testing AI agent behavior in a real-world messaging environment before production deployment.

How Feishu Bridge Works

  1. The Feishu SDK establishes an outbound WebSocket long-connection to the Feishu cloud, eliminating the need for inbound port forwarding.
  2. The bridge service authenticates with the Clawdbot Gateway using a pre-configured gateway token.
  3. When a user sends a message, Feishu pushes the event through the WebSocket to the local bridge script.
  4. The bridge processes the message, determines if a response is required based on group chat logic (mentions or keywords), and routes it to the AI agent.
  5. The agent's response is sent back through the bridge and delivered to the user via the Feishu platform.

Feishu Bridge Setup

First, create a self-built app on the Feishu Open Platform and enable Bot capabilities with message permissions (im:message, im:message.group_at_msg, im:message.p2p_msg). Ensure event delivery is set to WebSocket long-connection.

Next, store your app secret securely on your local machine:

mkdir -p ~/.clawdbot/secrets
echo "YOUR_APP_SECRET" > ~/.clawdbot/secrets/feishu_app_secret
chmod 600 ~/.clawdbot/secrets/feishu_app_secret

Install dependencies and start the bridge locally:

cd feishu-bridge
npm install
FEISHU_APP_ID=cli_xxx node bridge.mjs

For persistent operation on macOS, use the provided setup script to configure a launchd service for your Openclaw Skills integration:

FEISHU_APP_ID=cli_xxx node setup-service.mjs
launchctl load ~/Library/LaunchAgents/com.clawdbot.feishu-bridge.plist

Feishu Bridge Data Schema & Taxonomy

The skill organizes its configuration and session data within the standard Clawdbot directory structure for consistent management across Openclaw Skills.

Component Path / Format Description
App Secret ~/.clawdbot/secrets/feishu_app_secret Securely stored Feishu credentials used for authentication.
Config File ~/.clawdbot/clawdbot.json General bridge and agent configuration settings.
Session ID feishu:<chatId> Mapping of Feishu chats to specific AI agent sessions.
Error Logs ~/.clawdbot/logs/feishu-bridge.err.log Diagnostic output for monitoring the bridge service status.

Feishu Bridge Advanced Features

  • Intelligent group chat filtering that triggers responses only on @-mentions, specific punctuation like "?", or customizable request verbs.
  • Automatic service recovery on macOS using launchd to ensure your Openclaw Skills bridge remains active after system restarts.
  • Adjustable thinking thresholds via environment variables to manage bot "typing" status indicators during long AI processing tasks.
  • Support for multiple agents by specifying the CLAWDBOT_AGENT_ID to route messages to different specialized models.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*