OpenClaw deployment¶
Copyright © Quectel Wireless Solutions Co., Ltd. 2026. All rights reserved.
OpenClaw is a lightweight, highly extensible open-source AI agent runtime and management platform built for accessible, low-code agent use cases. Without writing complex code, users can rapidly build custom AI agents and deploy them across diverse hardware and software environments, including edge development boards, AI boxes, and cloud servers.
Key features:
Lightweight deployment: Streamlined setup with no complex dependency management, featuring a minimal resource footprint tailored for low-spec hardware.
Highly extensible architecture: Built on a modular plugin system that supports seamless integration with mainstream messaging channels like Lark (Feishu), while enabling flexible capability expansion via custom Skills and toolchains.
Cross-platform deployment: Runs seamlessly across edge development boards, AI boxes, and cloud servers to fit diverse deployment scenarios.
Low barrier to entry: Requires no specialized development expertise; users can build, configure, and debug AI agents using guided setup wizards and simple CLI commands.
Environment setup and OpenClaw installation¶
Update package index and install prerequisites¶
Run the following commands to update your system package index and install essential utilities (curl, git, etc.) along with build dependencies required for the installation:
sudo apt update
sudo apt install -y curl git ca-certificates build-essential jq
Install Node.js 24¶
The latest version of OpenClaw has specific Node.js version requirements. For the current version, Node.js must be >=24.16.0 <25 or >=26.1.0. Node.js 22 is not supported. Installing Node.js 24 is recommended.
curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash -
sudo apt install -y nodejs
After installation, verify that the Node.js version currently in use by the terminal is v24.16.0 or later within the 24.x release series:
node -v #The output should be v24.x.x, with a version of at least v24.16.0.
npm -v
Install OpenClaw core package¶
Install the latest version of OpenClaw globally via npm and verify the installation:
sudo npm install -g openclaw@latest
openclaw --version
Note: Tips |
|---|
Installation typically takes 5 to 10 minutes, depending on your network connection speed. |
Initialize OpenClaw¶
After completing the initial installation, you must run the onboarding wizard before OpenClaw can operate properly. Run the following command to launch the configuration wizard and install the gateway daemon:
openclaw onboard --install-daemon
The gateway daemon (which uses a launchd or systemd user service depending on your OS) keeps OpenClaw running continuously in the background.
Onboarding wizard step-by-step screenshots (for reference only):
At the Security Warning prompt, review the security notice, use the arrow keys to select Yes, and press Enter to continue.
Under Onboarding mode, select QuickStart and press Enter to continue.
In the Model/auth provider option, select the desired model provider,and press Enter to continue.
For example, select Qwen (https://docs.openclaw.ai/providers/qwen) as the provider.
Complete the Qwen account OAuth authentication by following these steps:
1. Copy the unique authorization URL printed in your terminal (formatted like https://chat.qwen.ai/authorize?...) , open it in your browser, and sign in to your Qwen (Tongyi Qianwen) account.
2. Verify that the dynamic verification code (user_code) on the web page matches the one displayed in your terminal, then click to confirm authorization.
3. Once authorized, the terminal will automatically output "Qwen OAuth complete" and indicate that the default model has been set to qwen-portal/coder-model.
Note: Both the authorization URL and verification code generated in the terminal are single-use and dynamically generated. Always use the actual URL and code displayed in your terminal session.
1. Use GitHub Copilot (<https://docs.openclaw.ai/providers/github-copilot>) to view the latest supported models.
Once configured, restart the gateway to apply the changes:
openclaw gateway restart
If prompted that the Gateway service has not been installed, follow the instructions in the terminal and run the corresponding command to complete the installation.
Try a test message:
Integrate with different apps¶
With WhatsApp:¶
Refer to the OpenClaw documentation for the latest instructions: https://docs.openclaw.ai/channels/whatsapp
With Lark (Feishu)¶
After initializing the core OpenClaw environment, you can install the community Lark (Feishu) channel plugin to connect the AI agent on your development board to Lark (Feishu), enabling real-time chat and task interaction via a Lark (Feishu) bot.
Install Lark (Feishu) plugin¶
Run the following command to install the Lark (Feishu) plug-in:
openclaw plugins install @openclaw/feishu
Once installed, run the following command to list installed plugins and verify that the Lark (Feishu) plugin is running properly:
openclaw plugins list
If the plug-in is already installed, run the following command to upgrade it to the latest version:
openclaw plugins update feishu
Create a Lark (Feishu) app¶
Sign in to the Lark (Feishu) Open Platform Developer Console: https://open.larksuite.com/app
Click the Create Custom App button on the page.
In the pop-up modal, enter the app name and description, and select an app icon.
Click Create at the bottom of the modal to finish creating the app.
In the left navigation sidebar, go to Add Features, click Add Features, and enable the Bot capability.
Navigate to Credentials & Basic Info, and copy and securely store the app's appId and appSecret for configuring the plugin in the next steps.
Configure plugin¶
Run the following commands sequentially in your terminal, replacing cli_xxxxx and your_app_secret with the actual appId and appSecret obtained in the previous steps to complete the basic configuration for the Lark (Feishu) plugin:
openclaw config set channels.feishu.appId "cli_xxxxx"
openclaw config set channels.feishu.appSecret "your_app_secret"
openclaw config set channels.feishu.enabled true --json
Configure permissions¶
In the Lark Open Platform Console, go to the Permissions page and configure the following permissions for the application, including required and optional permissions:
Required permissions
Permission name |
Scope identifier |
Description |
|---|---|---|
Messages |
im:message |
Send and receive messages. |
Direct messages |
im:message.p2p_msg:readonly |
Read direct messages sent to the bot. |
Group messages |
im:message.group_at_msg:readonly |
Receive messages that @mention the bot in groups. |
Message sending |
im:message:send_as_bot |
Send messages as the bot. |
Media resources |
im:resource |
Upload and download images or files. |
Optional permissions
Permission Name |
Scope Identifier |
Description |
|---|---|---|
User information |
contact:user.base:readonly |
Obtain basic user information to resolve sender names and prevent different users in group or direct chats from being identified as the same speaker. |
Group messages |
im:message.group_msg |
Read all group messages. This is sensitive permission; configure it when requireMention:false must apply to group messages that do not @mention the bot. |
Message history |
im:message:readonly |
Retrieve message history. |
Message editing |
im:message:update |
Update or edit sent messages. |
Message recall |
im:message:recall |
Recall sent messages. |
Emoji reactions |
im:message.reactions:read |
View emoji reactions to messages. |
Configure events and callbacks¶
In the Lark Open Platform Console, go to Events & Callbacks and complete the following configuration:
Event configuration method
Use a long connection to receive events: Set connectionMode: "websocket". This method is recommended and does not require a publicly accessible URL.
Use a request URL to receive events: Set connectionMode: "webhook". This method requires a publicly accessible URL.Click Add Event Subscription and subscribe to the following required events.
Event |
Description |
|---|---|
im.message.receive_v1 |
Receive messages (required event). |
im.message.message_read_v1 |
Message read receipts. |
im.chat.member.bot.added_v1 |
Bot joins a group chat. |
im.chat.member.bot.deleted_v1 |
Bot is removed from a group chat. |
Release and test¶
Navigate to the Version Management & Release page in the Lark (Feishu) Open Platform Developer Console.
Click Create a Version. While creating the new version, make sure to configure the Availability Scope (specifying which departments or users have access to the bot); otherwise, the app may not be searchable in Lark (Feishu) after release.
Fill in the version details and submit the release for review.
Once the release is approved, you can search for the app in the Lark (Feishu) client and run basic tests().
Initial chat and terminal pairing¶
When a Lark (Feishu) user messages the bot for the first time, the system triggers a security trust verification and displays a Pairing code (typically a 6-digit code) in the chat window. Run the following command in the terminal of the device hosting OpenClaw to approve the pairing. Once paired, the user can chat with the bot normally:
openclaw pairing approve feishu "Pairing code shown in the prompt"
OpenClaw feature demonstration¶
Run openclaw dashboard in the terminal to view the access address of OpenClaw's web management page.
Open-source project deployment¶
Once OpenClaw is deployed, refer to the Open-source projects on the official website to deploy and configure the corresponding demo environment.
Run the demo application to verify that the core demo features—configured and controlled with OpenClaw's assistance—are functioning properly.
Result screenshots:
Control peripherals¶
Send a control command through the OpenClaw web control page. After the command is executed, view the USB camera's live preview on the connected display.