| name | awesome-openclaw-tutorial |
| description | OpenClaw AI工作助手完整中文教程 - 安装配置、Skills扩展、自动化工作流和实战案例 |
| triggers | ["how do I install and configure OpenClaw","show me OpenClaw skills and automation examples","help me set up OpenClaw with custom models","how to use OpenClaw for file management and knowledge base","OpenClaw integration with Feishu Slack or WeChat","troubleshoot OpenClaw gateway or API connection issues","OpenClaw Task Flow and webhooks configuration","create OpenClaw workflows for productivity automation"] |
awesome-openclaw-tutorial
Skill by ara.so — Hermes Skills collection.
Complete Chinese tutorial for OpenClaw - an AI-powered work assistant. Covers installation, configuration, Skills ecosystem, automation workflows, API integration, and practical use cases for solo entrepreneurs and teams.
What is OpenClaw?
OpenClaw is an AI assistant framework that runs locally or in cloud, providing:
- File management, knowledge base, and scheduling automation
- 1800+ Skills for extending capabilities
- Multi-platform integration (Feishu, Slack, WeChat, DingTalk, QQ)
- Task automation with cron, Task Flow, and webhooks
- Media generation (images, video, audio, TTS) via
openclaw infer
- Active Memory and Memory Wiki for context retention
Current stable version: v2026.4.14
Recommended runtime: Node 24 (minimum Node 22.16+)
Quick Installation
Method 1: One-Click Deployment (Recommended for Beginners)
Feishu Miaoda (Free, 1M tokens/day):
Baota Panel (Free plugin, visual management):
Method 2: Standard Installation
npm install -g openclaw
yarn global add openclaw
openclaw onboard
openclaw gateway start
Method 3: Docker
docker pull openclaw/openclaw:latest
docker run -d \
-e OPENCLAW_TZ=Asia/Shanghai \
-e OPENCLAW_API_KEY=$OPENCLAW_API_KEY \
-p 3000:3000 \
-v ~/.openclaw:/root/.openclaw \
openclaw/openclaw:latest
docker ps
Configuration
Model Authentication (2026.4+ Standard)
openclaw models auth login --provider anthropic
openclaw models auth login --provider openai
openclaw models auth login --provider gemini
openclaw models auth list
openclaw config set model.default "claude-3-5-sonnet-20241022"
Gateway Authentication (Required since v2026.3.7)
openclaw config set gateway.auth.mode token
openclaw config set gateway.auth.token "${OPENCLAW_GATEWAY_TOKEN}"
openclaw gateway restart
Tools Profile (Fix "AI can't do anything" issue)
openclaw config set tools.profile full
openclaw gateway restart
Active Memory and Memory Wiki (2026.4+ Mainline)
openclaw config set memory.active.enabled true
openclaw config set memory.dreaming.enabled true
openclaw config set memory.wiki.enabled true
openclaw config set memory.retention.days 90
Key Commands
Core CLI
openclaw --version
openclaw config list
openclaw config set <key> <value>
openclaw gateway start
openclaw gateway stop
openclaw gateway restart
openclaw gateway status
openclaw infer text "Explain quantum computing"
openclaw infer image "A red panda in space" --model dall-e-3
openclaw infer video "Ocean waves" --provider runway
openclaw infer audio "Calm piano music" --provider suno
openclaw infer tts "Hello world" --voice nova
openclaw infer web "https://example.com"
openclaw infer embedding "Document text to embed"
Task Automation
openclaw tasks create \
--name "daily-summary" \
--schedule "0 18 * * *" \
--command "Generate daily summary and send to Feishu"
openclaw tasks flow create \
--name "content-pipeline" \
--trigger webhook \
--steps "research,write,review,publish"
openclaw tasks list
openclaw webhooks create \
--name "github-pr-review" \
--url "/webhooks/github" \
--action "Review PR and comment"
openclaw webhooks list
Real Code Examples
Example 1: File Management Automation (Shell)
#!/bin/bash
openclaw tasks flow create \
--name "organize-downloads" \
--schedule "0 2 * * *" \
--steps "scan_downloads,categorize_files,move_files,cleanup_old"
Example 2: Knowledge Base Integration (JavaScript/Node)
const { OpenClawClient } = require('openclaw-sdk');
const client = new OpenClawClient({
apiKey: process.env.OPENCLAW_API_KEY,
baseUrl: 'http://localhost:3000'
});
async function addToKnowledgeBase(filePath, metadata) {
try {
const result = await client.knowledge.add({
file: filePath,
metadata: {
tags: metadata.tags,
source: metadata.source,
category: metadata.category
},
activeMemory: true,
memoryWiki: true
});
console.log('Document added:', result.id);
return result;
} catch (error) {
console.error('Failed to add document:', error.message);
throw error;
}
}
async () {
results = client..({
: query,
: ,
: ,
:
});
results;
}
(, {
: [, ],
: ,
:
});
().( {
.(, results., );
});
Example 3: Feishu Bot Integration (JavaScript)
const express = require('express');
const app = express();
app.post('/feishu/webhook', async (req, res) => {
const event = req.body;
if (event.type === 'message') {
const userMessage = event.message.content;
const response = await fetch('http://localhost:3000/api/chat', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${process.env.OPENCLAW_API_KEY}`
},
body: JSON.stringify({
message: userMessage,
sessionId: event.message.chat_id,
platform: 'feishu',
useActiveMemory: true
})
});
const result = await response.json();
await sendFeishuMessage(event.., result.);
}
res.({ : });
});
app.();
Example 4: Media Generation Workflow (Shell)
#!/bin/bash
ARTICLE=$(openclaw infer text "Write a 500-word article about sustainable energy" \
--model gpt-4-turbo)
openclaw infer image "Sustainable energy concept art, vibrant, professional" \
--model dall-e-3 \
--size 1792x1024 \
--output cover.png
openclaw infer video "Solar panels in a green field, golden hour" \
--provider runway \
--duration 5 \
--output promo.mp4
openclaw infer audio "Uplifting corporate background music" \
--provider suno \
--duration 30 \
--output bgm.mp3
echo "Content pipeline complete!"
ls -lh cover.png promo.mp4 bgm.mp3
Example 5: Task Flow with Webhooks (YAML)
name: content-approval-flow
trigger:
type: webhook
path: /webhooks/content-submit
steps:
- name: review-content
action: infer
input: "Review the submitted content for quality and compliance"
model: claude-3-5-sonnet-20241022
- name: check-approval
action: conditional
condition: "review.score > 8"
- name: publish
action: webhook
url: https://cms.example.com/publish
method: POST
headers:
Authorization: "Bearer ${CMS_API_KEY}"
body:
content: "{{ steps.review.content }}"
status: approved
- name: notify
action: send-message
platform: feishu
channel: "${FEISHU_CHANNEL_ID}"
message:
Load flow:
openclaw tasks flow load ~/.openclaw/flows/content-approval.yaml
openclaw tasks flow start content-approval-flow
Common Patterns
Pattern 1: Daily Automation Routine
openclaw tasks create \
--name "morning-briefing" \
--schedule "0 8 * * *" \
--command "Generate morning briefing: check emails, calendar, news, weather. Send to Feishu."
openclaw tasks create \
--name "evening-summary" \
--schedule "0 18 * * *" \
--command "Summarize today's work: meetings attended, tasks completed, files created. Archive to knowledge base."
Pattern 2: Multi-Platform Sync
async function syncMessage(message, platforms) {
const results = await Promise.all(
platforms.map(platform =>
client.messaging.send({
platform: platform,
channelId: process.env[`${platform.toUpperCase()}_CHANNEL_ID`],
message: message,
useActiveMemory: true
})
)
);
return results;
}
syncMessage('Deployment complete for v2.0', ['feishu', 'slack', 'wechat']);
Pattern 3: Knowledge Base -> Memory Wiki Pipeline
openclaw knowledge add ./research-paper.pdf \
--tags "AI,research" \
--auto-extract-claims
openclaw infer text "What are the latest findings on transformer models?" \
--use-active-memory \
--use-memory-wiki
Troubleshooting
Gateway Won't Start (2026.3.7+)
Symptom: Error: gateway.auth.mode must be set
Fix:
openclaw config set gateway.auth.mode token
openclaw config set gateway.auth.token "$(openssl rand -hex 32)"
openclaw gateway restart
AI Only Chats, Can't Execute Commands (2026.3.2+)
Symptom: OpenClaw responds to questions but won't manage files or run commands
Fix:
openclaw config get tools.profile
openclaw config set tools.profile full
openclaw gateway restart
Model Authentication Errors
Symptom: Model provider not authenticated
Fix:
openclaw models auth login --provider openai
openclaw models auth login --provider anthropic
openclaw models auth list
openclaw config set model.default "claude-3-5-sonnet-20241022"
High API Costs
Solutions:
openclaw config set model.fast_mode true
openclaw models auth login --provider ollama
openclaw config set model.default "llama3:70b"
openclaw config set model.max_tokens 4000
openclaw models auth login --provider deepseek
openclaw config set model.default "deepseek-chat"
Active Memory Not Working
Symptom: AI doesn't recall previous context
Fix:
openclaw config set memory.active.enabled true
openclaw config set memory.dreaming.enabled true
openclaw memory rebuild
openclaw memory stats
openclaw gateway restart
Task Flow Execution Failures
Symptom: Workflows stuck or fail silently
Debug:
openclaw tasks logs <task-name>
openclaw tasks flow validate ~/.openclaw/flows/my-flow.yaml
openclaw tasks flow test my-flow --step review-content
openclaw config set debug.tasks true
openclaw gateway restart
ComfyUI Integration Issues
Symptom: infer image fails with ComfyUI backend
Fix:
curl http://localhost:8188/system_stats
openclaw config set comfyui.endpoint "http://localhost:8188"
openclaw infer image "test" --provider comfyui
Windows Specific Issues
Symptom: Black console window pops up on gateway restart
Fix: Upgrade to v2026.3.13+ which fixes this issue
# Update OpenClaw
npm update -g openclaw
# Verify version
openclaw --version # Should be >= v2026.3.13
Configuration Reference
Key config paths in ~/.openclaw/config.json:
{
"model": {
"default": "claude-3-5-sonnet-20241022",
"fast_mode": true,
"max_tokens": 4000
},
"gateway": {
"auth": {
"mode": "token",
"token": "${OPENCLAW_GATEWAY_TOKEN}"
},
"port": 3000
},
"tools": {
"profile": "full"
},
"memory": {
"active": {
"enabled": true
},
Resources
Important: This tutorial tracks v2026.4.14 stable. Some legacy content (old skill names, deprecated commands) remains for reference. Always verify against current openclaw --version and official docs.