Extend OpenClaw into Feishu by enabling the plugin, creating an app, importing permissions, and configuring event subscriptions.
Once the local installation is working, the most direct way to extend the same OpenClaw setup into mobile and group-chat scenarios is to connect it to a Feishu bot. This post walks through the full path: enabling the local plugin, creating the app on the Feishu Open Platform, importing permissions, subscribing to events, and publishing the app.
The goal here is not to explore advanced Feishu features. The goal is to complete the most basic, reproducible integration path and get the bot running reliably.
First, enable the Feishu plugin in the terminal:
openclaw plugins enable feishu
Then verify the plugin status:
openclaw plugins list
If the feishu entry shows loaded, the plugin is ready to use.
Open open.feishu.cn, go to the Feishu Open Platform, and click Create Internal App from the internal-app page.
Next, fill in the application name and description, then create the app.
After the app is created, open Credentials & Basic Information and record both the App ID and the App Secret. You will need these values immediately in the terminal.
Go back to the terminal and start the Feishu channel setup:
openclaw channels add
At the prompt Configure chat channels now?, choose Yes.
Then enter the App Secret and App ID you recorded earlier, and continue through the connection settings. Here, Figure 6, Figure 7, and Figure 8 each contain multiple annotated steps within a single screen, so follow the numbered order shown in the screenshots.
App Secret and then the App ID WebSocket, choose the mainland-China domain option, and select the group-chat policyChannels updated. appearsRecommended values for the connection settings:
| Option | Recommended value | Note |
|---|---|---|
| Connection mode | WebSocket | Matches the setup in this post |
| Domain | feishu/feishu-China | Intended for mainland China |
| Group chat policy | open | Allows the bot to respond when used in group chats |
Back on the Feishu Open Platform, first enable the bot capability for the app, then import the required permissions.
Next, open Permission Management and select Batch Import/Export Permissions.
Paste the following JSON into the import dialog, or download the file directly and import it there: openclaw-feishu-permissions.json
{
"scopes": {
"tenant": [
"aily:file:read",
"aily:file:write",
"application:application.app_message_stats.overview:readonly",
"application:application:self_manage",
"application:bot.menu:write",
"cardkit:card:read",
"cardkit:card:write",
"contact:user.employee_id:readonly",
"corehr:file:download",
"event:ip_list",
"im:chat.access_event.bot_p2p_chat:read",
"im:chat.members:bot_access",
"im:message",
"im:message.group_at_msg:readonly",
"im:message.p2p_msg:readonly",
"im:message:readonly",
"im:message:send_as_bot",
"im:resource"
],
"user": [
"aily:file:read",
"aily:file:write",
"im:chat.access_event.bot_p2p_chat:read"
]
}
}
After the permission import is complete, open Events and Callbacks, choose Receive events via long connection (WebSocket), save the setting, and add the following four event subscriptions:
im.message.receive_v1im.message.message_read_v1im.chat.member.bot.added_v1im.chat.member.bot.deleted_v1
Finally, open Version Management & Release, fill in the version number, default capability, and release notes, and publish the app.
At this stage, OpenClaw is no longer limited to the local terminal. The same model setup has been extended into the Feishu environment.
You can now add the bot to a Feishu group or use it in the supported scenarios directly. The same ECNU AI endpoint can now serve both the terminal workflow and the Feishu bot workflow.
Here are some more articles you might like to read next: