Loading...
Loading...
OpenClaw Chinese localized AI assistant platform with CLI, dashboard, multi-platform chat integration (WhatsApp/Telegram/Discord), and LLM provider support
npx skill4agent add aradotso/hermes-skills openclaw-chinese-ai-assistantSkill by ara.so — Hermes Skills collection.
node -vnpm install -g @qingchencloud/openclaw-zh@latestopenclaw --versionopenclaw onboard --install-daemonopenclaw config~/.openclaw/config.ymlllm:
provider: openai
api_key: ${OPENAI_API_KEY}
model: gpt-4
base_url: https://api.openai.com/v1 # For compatible providers
gateway:
port: 3000
host: 0.0.0.0
channels:
- type: telegram
token: ${TELEGRAM_BOT_TOKEN}
- type: discord
token: ${DISCORD_BOT_TOKEN}openclaw config set llm.provider openai-compatible
openclaw config set llm.base_url https://gpt.qt.cool/v1
openclaw config set llm.api_key ${YOUR_API_KEY}
openclaw config set llm.model gpt-4openclaw config set llm.provider anthropic
openclaw config set llm.api_key ${ANTHROPIC_API_KEY}
openclaw config set llm.model claude-3-5-sonnet-20241022# Start gateway (foreground, for debugging)
openclaw gateway run
# Start as daemon (background, recommended)
openclaw gateway start
# Stop daemon
openclaw gateway stop
# Restart gateway
openclaw gateway restart
# Check status
openclaw gateway status
# Install as system service (auto-start on boot)
openclaw gateway install
# Uninstall system service
openclaw gateway uninstall# Open web dashboard (auto-opens browser)
openclaw dashboard
# Open on specific port
openclaw dashboard --port 8080
# Access remotely with token
openclaw dashboard --host 0.0.0.0 --token ${DASHBOARD_TOKEN}# List available skills
openclaw skills list
# Install a skill
openclaw skills install 1password
# Remove a skill
openclaw skills remove 1password
# Update all skills
openclaw skills update# Update OpenClaw CLI
openclaw update
# Diagnose issues (auto-fix)
openclaw doctor
# View logs
openclaw logs
# Clear cache
openclaw cache clear#!/bin/bash
# Set environment variables
export OPENAI_API_KEY="sk-your-key-here"
export TELEGRAM_BOT_TOKEN="123456:ABC-DEF-your-token"
# Install
npm install -g @qingchencloud/openclaw-zh@latest
# Configure programmatically
openclaw config set llm.provider openai-compatible
openclaw config set llm.base_url https://gpt.qt.cool/v1
openclaw config set llm.api_key "${OPENAI_API_KEY}"
openclaw config set llm.model gpt-4
# Add Telegram channel
openclaw config set channels.0.type telegram
openclaw config set channels.0.token "${TELEGRAM_BOT_TOKEN}"
# Start daemon
openclaw gateway start
# Verify running
openclaw gateway statusdocker-compose.ymlversion: '3.8'
services:
openclaw:
image: ghcr.io/1186258278/openclaw-chinese:latest
container_name: openclaw-zh
restart: unless-stopped
ports:
- "3000:3000"
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
- DASHBOARD_TOKEN=${DASHBOARD_TOKEN}
volumes:
- ./data:/root/.openclaw
- ./logs:/var/log/openclawdocker-compose up -dserver {
listen 443 ssl;
server_name openclaw.example.com;
ssl_certificate /path/to/cert.pem;
ssl_certificate_key /path/to/key.pem;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
# WebSocket support
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}// Create custom agent configuration
const fs = require('fs');
const path = require('path');
const yaml = require('js-yaml');
const configPath = path.join(process.env.HOME, '.openclaw', 'config.yml');
const config = yaml.load(fs.readFileSync(configPath, 'utf8'));
// Add new agent
config.agents = config.agents || [];
config.agents.push({
name: 'research-assistant',
model: 'gpt-4',
system_prompt: '你是一个专业的研究助手,帮助用户查找和总结信息。',
skills: ['web-search', 'summarize', 'markdown'],
max_tokens: 4000,
temperature: 0.7
});
// Save config
fs.writeFileSync(configPath, yaml.dump(config), 'utf8');
console.log('Agent created successfully');#!/bin/bash
# Check if gateway is running
if openclaw gateway status | grep -q "running"; then
echo "Gateway is healthy"
exit 0
else
echo "Gateway is down, restarting..."
openclaw gateway restart
sleep 5
if openclaw gateway status | grep -q "running"; then
echo "Gateway restarted successfully"
exit 0
else
echo "Failed to restart gateway"
exit 1
fi
fiagents:
- name: fast-assistant
model: gpt-3.5-turbo
use_case: quick_questions
- name: deep-thinker
model: claude-3-opus-20240229
use_case: complex_reasoning
- name: code-helper
model: gpt-4
skills: ['code-interpreter', 'github']# .env file
OPENAI_API_KEY=sk-proj-...
ANTHROPIC_API_KEY=sk-ant-...
TELEGRAM_BOT_TOKEN=123456:ABC...
WHATSAPP_PHONE_NUMBER=+1234567890
DASHBOARD_TOKEN=secure-random-token-here
# Load in config.yml
llm:
api_key: ${OPENAI_API_KEY}
channels:
- type: telegram
token: ${TELEGRAM_BOT_TOKEN}
- type: whatsapp
phone: ${WHATSAPP_PHONE_NUMBER}// Example: Research and summarize workflow
const workflow = {
steps: [
{ skill: 'web-search', query: '${user_query}' },
{ skill: 'summarize', input: '${search_results}' },
{ skill: 'markdown', format: 'report', input: '${summary}' }
]
};# Check if port 3000 is already in use
lsof -i :3000 # macOS/Linux
netstat -ano | findstr :3000 # Windows
# Run diagnostics
openclaw doctor
# Check logs
openclaw logs --tail 100
# Try alternative port
openclaw gateway run --port 3001# Start with external access
openclaw dashboard --host 0.0.0.0 --token your-secure-token
# Or edit config
openclaw config set gateway.host 0.0.0.0
openclaw config set gateway.dashboard_token your-secure-token
openclaw gateway restart# config.yml
gateway:
cors:
enabled: true
origins:
- https://yourdomain.com
- http://localhost:*# Test API connection
curl https://gpt.qt.cool/v1/models \
-H "Authorization: Bearer ${OPENAI_API_KEY}"
# Verify config
openclaw config get llm
# Switch provider
openclaw config set llm.provider openai-compatible
openclaw config set llm.base_url https://api.openai.com/v1gateway install# Use daemon start instead (doesn't require schtasks)
openclaw gateway start
# Or use Docker
docker run -d -p 3000:3000 \
-v ~/.openclaw:/root/.openclaw \
ghcr.io/1186258278/openclaw-chinese:latest# Check resource usage
openclaw gateway status --verbose
# Limit memory (Node.js)
export NODE_OPTIONS="--max-old-space-size=4096"
openclaw gateway restart
# Clear cache
openclaw cache clear# Force reinstall
npm uninstall -g @qingchencloud/openclaw-zh
npm install -g @qingchencloud/openclaw-zh@latest
# Clear npm cache if needed
npm cache clean --force# Stop services
openclaw gateway stop
openclaw gateway uninstall # If installed as service
# Uninstall package
npm uninstall -g @qingchencloud/openclaw-zh
# Remove config (optional)
rm -rf ~/.openclaw