All guides

How to Create a Feishu Bot for OpenClaw

You need a Feishu App ID and App Secret to deploy an OpenClaw assistant on Feishu. This guide walks you through creating a custom app on the Feishu Open Platform. It takes about 5 minutes.

If you want a full Feishu bot hosting overview first, start here: OpenClaw Feishu Bot Hosting.

What you need before starting

  • A Feishu account (or Lark for international tenants)
  • Admin access to your Feishu workspace, or permission to create apps

Step 1: Open the Feishu Open Platform

Go to the Feishu Open Platform Developer Console (or open.larksuite.com/app for Lark). Sign in with your Feishu account.

Step 2: Create an enterprise app

Click Create enterprise app. Fill in the required fields:

  1. App Name — Choose a display name for your bot, such as "AI Assistant" or "Team Helper".
  2. App Description — A short description of what the bot does.
  3. App Icon — Upload a profile image (optional but recommended).

Click Create to finish.

Create enterprise app on Feishu Open Platform

Step 3: Copy the App ID and App Secret

After creating the app, you land on the app's Credentials & Basic Info page. You'll see two values:

  • App ID — starts with cli_, e.g. cli_a1b2c3d4e5f6g7h8
  • App Secret — a long alphanumeric string

Copy both values. You'll paste them into the ClawCloud deploy wizard.

Feishu Credentials & Basic Info page with App ID and App Secret

Step 4: Configure permissions

Go to Permissions & Scopes in the sidebar. Click Batch import and paste the full permissions JSON (available in the OpenClaw Feishu docs). This grants the bot the scopes it needs to send and receive messages, handle files, and manage app resources.

Request approval from your workspace admin if required.

Feishu Permissions & Scopes page with batch import

Step 5: Enable the bot capability

In the left sidebar, go to App CapabilityBot. Enable the bot capability and set the bot name.

Without this, your app can't receive or send messages in Feishu chats.

Feishu App Capability page with bot capability enabled

Step 6: Configure event subscriptions

Go to Event Subscriptions in the sidebar and configure:

  1. Choose Use long connection to receive events (WebSocket)
  2. Add the event: im.message.receive_v1

OpenClaw uses a WebSocket long connection — no public URL or webhook server is required.

Feishu Event Subscriptions page with long connection and im.message.receive_v1

Step 7: Publish the app

Go to Version Management & Release and click Create Version. Set a version number (e.g. 1.0.0), write a brief changelog, and submit for review.

For development/testing purposes, your workspace admin can approve the app immediately. For organization-wide rollout, the standard review process applies.

Step 8: Deploy on ClawCloud

Go to the ClawCloud deploy wizard — Feishu will be preselected. Paste your App ID and App Secret into the two input fields. Pick your AI model and click Deploy. Your bot will be live in under a minute.

OpenClaw connects to Feishu via WebSocket (long connection), so there is no public URL or webhook server to configure. The connection is established automatically from your dedicated server.

Lark (International) users

If you use Lark instead of Feishu, the setup is identical. Create your app at open.larksuite.com/app and use the same App ID and App Secret. OpenClaw detects the Lark domain automatically when configured with domain: "lark" in advanced settings.

Troubleshooting

"Bot not responding" after deploy — Make sure you enabled the Bot capability (Step 5) and published the app version (Step 7). Unpublished apps cannot receive messages from users outside the developer console.

"Permission denied" errors — Check that you added the required scopes in Step 4 and that your workspace admin approved them. Without im:message and im:message:send_as_bot, the bot can't send or receive messages.

App ID format — The App ID always starts with cli_. If your pasted value doesn't start with cli_, you may have copied the wrong field.

For more details on Feishu channel configuration, see the OpenClaw Feishu documentation.

Deploy Your Feishu Bot

Ready to deploy?

Skip the setup — your OpenClaw assistant runs on a dedicated server in under a minute.

Deploy Your OpenClaw