OpenClaw

Updated on with 0 views and 0 comments

OpenClaw

image.png

概述:

linux 部署

安装OpenClaw

1. 安装 Node.js(必须 v22 版本)

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

2. 安装 OpenClaw

npm install -g openclaw

3. 初始化

openclaw onboard

向导步骤

API Key:获取(可以前往厂商注册创建)

  • Onboarding mode:QuickStart
  • Model provider:Custom (OpenAI-compatible)(填硅基流动 / 其他)
  • Base URL:https://api.siliconflow.cn/v1
  • API Key:sk-xxxx
  • Model ID:deepseek-ai/DeepSeek-V3.2
  • Gateway:默认端口 18789、Auth: token
  • Channels:Skip for now
  • Install daemon:y

4. 获取网关令牌登录

docker exec -it openclaw openclaw dashboard

5. 创建隧道访问

ssh -L 18789:127.0.0.1:18789 用户名@192.168.50.2
weburl:localhost:port

接入微信

1. 安装微信插件

npx -y @tencent-weixin/openclaw-weixin-cli@latest install

2. 扫码登陆

微信扫码

其他相关操作

修复插件依赖

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

标题:OpenClaw
作者:zhongts
地址:http://zhongts.cc:8080/articles/2026/04/11/1775894303710.html