
概述:
curl -fsSL https://rpm.nodesource.com/setup_22.x | bash
yum install -y nodejs
openclaw setup
[root@openclaw openclaw]# openclaw setup
🦞 OpenClaw 2026.4.11 (769908e) — The only crab in your contacts you actually want to hear from. 🦞
Wrote ~/.openclaw/openclaw.json
Workspace OK: ~/.openclaw/workspace
Sessions OK: ~/.openclaw/agents/main/sessions
npm install -g openclaw
openclaw onboard
向导步骤
API Key:获取(可以前往厂商注册创建)
https://api.siliconflow.cn/v1sk-xxxxdeepseek-ai/DeepSeek-V3.2docker exec -it openclaw openclaw dashboard
ssh -L 18789:127.0.0.1:18789 用户名@192.168.50.2
weburl:localhost:port
npx -y @tencent-weixin/openclaw-weixin-cli@latest install
微信扫码
修复插件依赖
cd /root/.openclaw/extensions/openclaw-weixin
npm install zod
npm install
微信登录(重新扫码)
openclaw channels login --channel openclaw-weixin
简单代理
export http_proxy=http://127.0.0.1:20171
export https_proxy=http://127.0.0.1:20171
模型上下文窗口限制
路径:models.providers.custom-api-siliconflow-cn.models[]
"contextWindow": 128000
上下文压缩预留空间
路径:agents.defaults
"compaction": {
"reserveTokensFloor": 50000
}
"maxTokens": 8192