Technology Encyclopedia Home >Mastering OpenClaw | A Quick Guide to Integrating OpenClaw (Clawdbot) into Discord on the Cloud

Mastering OpenClaw | A Quick Guide to Integrating OpenClaw (Clawdbot) into Discord on the Cloud

Preliminary Preparations

Before you begin configuring Discord for OpenClaw (Clawdbot), please check the following to ensure they are complete:

Discord account (registration address, and creation/joining to the target server).

Whether OpenClaw has already been deployed and configured on a Lighthouse server instance (overseas regions recommended), and is version 2026.2.3 or higher. If not yet, it is recommended that:

If you wish to purchase a new Lighthouse server to install and run OpenClaw, you can purchase it from the Tencent Cloud Lighthouse product purchase page, or take advantage of the Tencent Cloud OpenClaw exclusive promotion for a discounted order. For detailed deployment and configuration procedures for OpenClaw, please refer to the OpenClaw (formerly Clawdbot) One-Click Instant Deployment Guide on the Cloud.

If you already have a previously deployed OpenClaw application template, but it is not the latest version, you can refer to the tutorial to update the version: How to Update the Server OpenClaw Application Version

Integrating with Discord

Creating a Discord Bot and Obtaining a Token (Developer Platform Operation)

This is the core credential for integration. The steps are as follows:

  1. Open the Discord developer platform: https://discord.com/developers/applications, click New Application, enter a Bot name (e.g., Moltbot-AI), agree to the terms, and then create the Bot.


  1. Enter the application page, click on the Bot on the left, and copy the Token (click Reset Token to generate it, keep it safe, as leakage will lead to the abuse of the Bot);

  1. Enable critical permissions (required, otherwise Moltbot will not be able to read messages/send replies): Scroll down to Privileged Gateway Intents, enable MESSAGE CONTENT INTENT (to read message content) and SERVER MEMBERS INTENT (optional, used for server member permission control), and then click Save Changes below;

  1. Configure Bot permissions: On the left, go to OAuth2 → URL Generator and select the following permissions (minimum principle): Scopes: bot + applications.commands;

a. Scroll down and continue selecting Bot Permissions: Send Messages, Read Message History, Embed Links, Use Slash Commands;

  1. Copy the generated Invite Link, open it in your browser, and invite the bot to your Discord server (server administrator privileges required). Click Continue to authorize, and then you can invite the bot to join:


The completed result is shown in the image below:

Configuring a Model for OpenClaw

Next, you need to configure a model for the already deployed OpenClaw instance.

Go to the Tencent Cloud console, select the corresponding Lighthouse server with deployed OpenClaw, and click the server card to enter the “Manage Instances” page.

Model Configuration

Configuring the model API Key for OpenClaw can be done through the application management page of the Lighthouse server. For details, please refer to the OpenClaw (formerly Clawdbot) One-Click Instant Deployment Guide — Configuring the Model API Key; it will not be repeated here.

OpenClaw Basic Configuration

After logging into the server for the first time, enter and press Enter to run the following command to begin configuration:

clawdbot onboard

After running clawdbot onboard, you need to complete the subsequent configuration actions using the keyboard. Key operations: use the arrow keys to control options, and press Enter to select and confirm.

Agree to the disclaimer

After running the above command, a question will appear: Are you aware of the risks? Select Yes.

Configuration Mode Selection: Quick Start

Next, we need to select the Onboarding mode; we choose QuickStart.

Configuration processing method

Select Use existing values

Model Configuration

The large model has already been configured in the Tencent Cloud console as described above, so you can skip this step (select as shown in the example below).

Configuring the model APIKey for OpenClaw can be done on the application management page of the Lighthouse server. For details, please refer to the OpenClaw (formerly Clawdbot) One-Click Instant Deployment Guide — Configuring Model APIKey; it will not be repeated here.

Skip for now

All providers

Keep current

Channel Configuration — Connecting to Discord

In the Select channel step, use the arrow keys to select Discord (Bot API) and press Enter:

Enter Discord bot token

This is the bot token generated earlier.

Configure access permissions. Select Yes.

Access Permission Mode

Select Open (allow all channels)

Configure Skills
Select: No
Reason: Skills can enable system-level automation capabilities, including:

  • File access, browser control, shell command execution

For initial deployments, restricting permissions can improve stability and security.

Enable Hooks (Skip this step if it doesn’t appear)
Select only: session-memory (Use the up and down arrow keys to move the cursor, the spacebar to select, and the Enter key to confirm and proceed to the next step)
Reason:

  • No system commands will be executed.
  • Lowest security risk.

Please do not select:

Run script automatically at startup (boot-md)

Command tracing and logging (command-logger)

Installation complete.

Select Restart.

Startup method:

Select “Do this later”

Install command completion feature

Select No

Note: Selecting Yes here may cause high CPU load on the server during OpenClaw execution, leading to problems with OpenClaw operation.

Chat with a bot in Discord

Click on the bot you just created

Select private chat and send the first message.

During the initial conversation, a pairing code will be sent. Run the command below to complete the pairing process.

openclaw pairing approve discord <code>

Note: Replace code with the pairing code you received in Discord, without adding <> when entering it.

Now you can chat with the OpenClaw bots that are already connected in Discord.

Welcome to join the discussion!

A Discord has been created, and everyone is welcome to join and explore advanced ways to use Moltbot (Clawdbot) together!