# clawdbot-feishu **Repository Path**: liangxp/clawdbot-feishu ## Basic Information - **Project Name**: clawdbot-feishu - **Description**: No description available - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-01-28 - **Last Updated**: 2026-01-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # clawd-feishu Feishu/Lark (飞书) channel plugin for [Clawdbot](https://github.com/clawdbot/clawdbot). ## Installation ```bash clawdbot plugins install @m1heng-clawd/feishu ``` Or install via npm: ```bash npm install @m1heng-clawd/feishu ``` ## Configuration 1. Create a self-built app on [Feishu Open Platform](https://open.feishu.cn) 2. Get your App ID and App Secret from the Credentials page 3. Enable required permissions (see below) 4. Configure the plugin: ### Required Permissions | Permission | Scope | Description | |------------|-------|-------------| | `contact:user.base:readonly` | User info | Get basic user information | | `im:message` | Messaging | Send and receive messages | | `im:message.p2p_msg:readonly` | DM | Read direct messages to bot | | `im:message.group_at_msg:readonly` | Group | Receive @mention messages in groups | | `im:message:send_as_bot` | Send | Send messages as the bot | | `im:resource` | Media | Upload and download images/files | ### Optional Permissions (for full functionality) | Permission | Scope | Description | |------------|-------|-------------| | `im:message.group_msg` | Group | Read all group messages (sensitive) | | `im:message:readonly` | Read | Get message history | | `im:message:update` | Edit | Update/edit sent messages | | `im:message:recall` | Recall | Recall sent messages | | `im:message.reactions:read` | Reactions | View message reactions | ```bash clawdbot config set channels.feishu.appId "cli_xxxxx" clawdbot config set channels.feishu.appSecret "your_app_secret" clawdbot config set channels.feishu.enabled true ``` ## Configuration Options ```yaml channels: feishu: enabled: true appId: "cli_xxxxx" appSecret: "secret" # Domain: "feishu" (China) or "lark" (International) domain: "feishu" # Connection mode: "websocket" (recommended) or "webhook" connectionMode: "websocket" # DM policy: "pairing" | "open" | "allowlist" dmPolicy: "pairing" # Group policy: "open" | "allowlist" | "disabled" groupPolicy: "allowlist" # Require @mention in groups requireMention: true ``` ## Features - WebSocket and Webhook connection modes - Direct messages and group chats - Message replies and quoted message context - Image and file uploads - Typing indicator (via emoji reactions) - Pairing flow for DM approval - User and group directory lookup ## License MIT