Back to Eliza

Feishu Plugin

packages/docs/plugin-registry/platform/feishu.md

2.0.11.9 KB
Original Source

The Feishu plugin connects Eliza agents to Feishu (known as Lark outside China), enabling bot interactions in direct messages and group chats.

Package: @elizaos/plugin-feishu

Installation

bash
eliza plugins install @elizaos/plugin-feishu

Setup

1. Create a Feishu/Lark App

Go to the Feishu Open Platform (or Lark Developer for global) and create a Custom App.

2. Enable Bot Capability

Under your app settings, enable the Bot capability and configure event subscriptions.

3. Configure Eliza

json
{
  "env": {
    "FEISHU_APP_ID": "cli_your_app_id",
    "FEISHU_APP_SECRET": "your_app_secret"
  },
  "connectors": {
    "feishu": {
      "enabled": true
    }
  }
}

Configuration

VariableRequiredDefaultDescription
FEISHU_APP_IDYesApplication ID (cli_xxx format)
FEISHU_APP_SECRETYesApplication secret
FEISHU_DOMAINNofeishuDomain: feishu for China, lark for global
FEISHU_ALLOWED_CHATSNoJSON array of authorized chat IDs
FEISHU_TEST_CHAT_IDNoChat ID for test suite validation

Features

  • Direct bot messaging
  • Group chat participation
  • Chat allowlist for access control
  • China (feishu.cn) and global (larksuite.com) support
  • Event subscription for real-time messages

Auto-Enable

The plugin auto-enables when the connectors.feishu block contains token, botToken, or apiKey. Environment variables alone (FEISHU_APP_ID / FEISHU_APP_SECRET) do not trigger auto-enable. Set "apiKey": "your_app_secret" in the connector config to trigger auto-enable, or add the plugin to plugins.allow explicitly.