927 字
5 分钟

Deploy OpenClaw: Open-Source AI Personal Assistant from Installation to QQ Bot Integration

OpenClaw is an open-source AI personal assistant that runs on your local machine and interacts with you through various chat applications. It supports multiple AI model providers and features a rich plugin and skill system, making it easy to build your own AI assistant.

openclaw
/
openclaw
Waiting for api.github.com...
00K
0K
0K
Waiting...

What is OpenClaw?#

OpenClaw is a local-first open-source AI personal assistant framework. Key features include:

  • Multi-platform chat integration: Supports QQ, Telegram, Discord, WeChat, and other popular chat platforms
  • Model agnostic: Works with Anthropic, OpenAI, DeepSeek, Moonshot, and many other AI models
  • Plugin/skill system: Extend functionality through plugins with support for custom skills
  • Local-first: Data stored locally to protect your privacy
  • Visual dashboard: Built-in management dashboard

Supported chat channels:

  • QQ (via QQ Open Platform)
  • Telegram
  • Discord
  • WeChat (Enterprise WeChat)
  • Slack
  • Command Line (CLI)

Supported AI model providers:

ProviderRecommended ModelNotes
AnthropicClaude 4 SonnetStrong overall capabilities
OpenAIGPT-4oGreat multimodal support
OpenRouterVarious modelsAggregation platform, choose as needed
DeepSeekDeepSeek-V3Cost-effective
Moonshot (Kimi)Kimi 2.5Optimized for Chinese, long context
Local modelsOllama / LM StudioFully offline operation

Prerequisites#

OpenClaw runs on Node.js and requires Node.js 22+.

It’s recommended to use nvm to manage your Node.js version:

Terminal window
# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
# Install Node.js 22
nvm install 22
nvm use 22
# Verify version
node --version # Should show v22.x.x
NOTE

For users in China experiencing slow npm downloads, you can use the npmmirror registry:

Terminal window
npm config set registry https://registry.npmmirror.com

Step 1: Install OpenClaw#

Install OpenClaw globally via npm:

Terminal window
npm install -g openclaw

Verify the installation:

Terminal window
openclaw --version

image-20260308210730699

Step 2: Run the Onboarding Wizard#

After installation, run the onboarding wizard to configure OpenClaw:

Terminal window
openclaw onboard

The wizard will guide you through the following steps.

Security Notice#

On first run, a security notice will appear informing you that OpenClaw will start a Gateway service locally. Confirm and select Yes to continue.

image-20260308210855911

Choose Onboarding Mode#

The wizard offers two modes:

  • QuickStart (Recommended): Quick setup, suitable for most users
  • Advanced: Advanced configuration with more customization options

It’s recommended to choose QuickStart mode to get started quickly.

image-20260308211017473

Configure AI Model#

Select your AI model provider and enter the corresponding API Key.

ProviderAPI Key URLNotes
Anthropichttps://console.anthropic.comClaude series models
OpenAIhttps://platform.openai.comGPT series models
OpenRouterhttps://openrouter.aiAggregates multiple models
DeepSeekhttps://platform.deepseek.comCost-effective Chinese provider
Moonshothttps://platform.moonshot.cnKimi series models
Local modelsOllama / LM StudioNo API Key needed

Here we use Kimi 2.5 as an example — just get your API Key from the Moonshot platform and enter it. The configuration process is similar for other providers.

image-20260308211053756

image-20260308211308708

TIP

For detailed configuration instructions for each provider, refer to the OpenClaw official documentation: https://docs.openclaw.ai/models

Select Chat Channels#

Choose the chat platforms you want to integrate. You can select multiple channels and add more later from the Dashboard.

image-20260308211208196

NOTE

The QQ channel requires additional configuration steps (registering on QQ Open Platform, creating a bot, etc.), which will be covered in detail in the next section. You can skip QQ during initialization and set it up later.

Configure Skills#

Choose skills based on your needs. If you’re on Linux/macOS, it’s recommended to install brew.

image-20260308211416956

image-20260308211455555

NOTE

These API Keys are all optional and used for specific skills. If you don’t have them, just select No for all and skip — you can add them later via openclaw configure at any time.

Confirm UI#

This is the final step.

OptionDescription
Hatch in TUI (recommended)Enter the interactive TUI interface directly in the terminal to chat with the Bot and set up its persona. Recommended.
Open the Web UIOpen the browser-based Web dashboard to complete the initial configuration.
Do this laterSkip the initialization process and set it up later.

image-20260308211607580

After selecting Hatch in TUI, you’ll enter the terminal chat interface:

Terminal window
openclaw tui - ws://127.0.0.1:18789 - agent main - session main

image-20260308211818888 The Bot will send “Wake up, my friend!” as its first message. You can start chatting with it, telling it your needs and preferences — the more detailed your description, the better the subsequent experience.

To exit TUI: Press Ctrl+C. The Bot’s Gateway service will continue running in the background.

Complete Installation#

After the wizard finishes, OpenClaw will automatically start the Gateway service.

Verify the running status:

Terminal window
openclaw status

Open the visual management dashboard:

Terminal window
openclaw dashboard

The default dashboard address is http://localhost:3210, where you can view and manage your AI assistant.

Step 3: QQ Bot Integration#

To integrate OpenClaw with a QQ bot, follow these steps.

Register on QQ Open Platform#

  1. Visit QQ Open Platform
  2. Scan the QR code with your mobile QQ to log in or register a developer account
  3. Complete developer verification

image-20260308212007378

Create a QQ Bot#

  1. After logging in, go to the QQ Bot Management Page
  2. Click Create Bot
  3. Fill in the bot’s basic information (name, avatar, description, etc.)
  4. After creation, obtain the AppID and AppSecret from the bot’s detail page

image-20260308211927499

IMPORTANT

The AppID and AppSecret are the bot’s core credentials. Keep them safe and never expose them in public repositories or share them with others.

Install the QQ Bot Plugin and Configure#

Install the OpenClaw QQ Bot plugin:

Terminal window
openclaw plugins install @sliverp/qqbot@latest
openclaw channels add --channel qqbot --token ""
openclaw gateway restart

Usage#

image-20260308212208310

Security Considerations#

WARNING

The OpenClaw Gateway service listens on a local port by default. Please pay attention to the following security recommendations:

  • Do not expose the Gateway port directly to the public internet to prevent unauthorized access
  • For remote access, use a reverse proxy (such as Nginx or Caddy) with HTTPS encryption
  • Regularly update OpenClaw to the latest version to get security fixes
  • Do not commit API Keys or other sensitive information to version control systems

Common Commands#

CommandDescription
openclaw initRun the initialization wizard
openclaw statusCheck running status
openclaw dashboardOpen the management dashboard
openclaw gateway startStart the Gateway
openclaw gateway stopStop the Gateway
openclaw gateway restartRestart the Gateway
openclaw plugins install <name>Install a plugin
openclaw plugins listList installed plugins
openclaw skills listList available skills
openclaw config editEdit the configuration file
openclaw updateUpdate to the latest version

Summary#

In this guide, we completed the following steps:

  1. Install OpenClaw: Global installation via npm
  2. Initial configuration: Run the wizard to configure AI models and chat channels
  3. QQ Bot integration: Register on QQ Open Platform, create a bot, install the plugin, and configure

OpenClaw’s plugin and skill system is very flexible. We recommend further exploration:

  • Install more plugins to extend functionality
  • Try different AI models to compare performance
  • Create custom skills to meet your specific needs

Related Links:

Deploy OpenClaw: Open-Source AI Personal Assistant from Installation to QQ Bot Integration
https://catcat.blog/en/2026/03/deploy-openclaw-ai-assistant-en
作者
猫猫博客
发布于
2026-03-08
许可协议
CC BY-NC-SA 4.0