侧边栏壁纸
  • 累计撰写 54 篇文章
  • 累计创建 4 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

OpenClaw小龙虾安装教程

官网地址:openclaw.ai

前置条件

确认已安装 node

确认已安装 npm

开始安装
  1. 执行安装命令
npm i -g openclaw

如果碰到网络超时,可以尝试修改 npm 国内镜像(非必须)

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

安装完成后执行命令测试是否安装成功

openclaw -v
  1. 执行初始化向导
openclaw onboard
配置项 配置内容
I understand this is powerful and inherently risky. Continue? 选择 ”Yes”
Onboarding mode 选择 “QuickStart”
Model/auth provider 选择 “Skip for now”,后续可以配置
Filter models by provider 选择 “All providers”
Default model 使用默认配置
Select channel (QuickStart) 选择 “Skip for now”,后续可以配置
Configure skills now? (recommended) 选择 “No”,后续可以配置。
Enable hooks? 按空格键选中,选择“Skip for now”,按回车键进入下一步。
How do you want to hatch your bot? 选择 “Hatch in TUI”。

这时候因为 API KEY 还没有配置,需要先去配置文件配置,执行命令:

open ~/.openclaw/openclaw.json

修改文件:

{
  "models": {
    "mode": "merge",
    "providers": {
      "bailian": {
        "baseUrl": "https://coding.dashscope.aliyuncs.com/v1",
        "apiKey": "YOUR_API_KEY",
        "api": "openai-completions",
        "models": [
          {
            "id": "qwen3.5-plus",
            "name": "qwen3.5-plus",
            "reasoning": false,
            "input": ["text", "image"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 1000000,
            "maxTokens": 65536
          },
          {
            "id": "qwen3-max-2026-01-23",
            "name": "qwen3-max-2026-01-23",
            "reasoning": false,
            "input": ["text"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 262144,
            "maxTokens": 65536
          },
          {
            "id": "qwen3-coder-next",
            "name": "qwen3-coder-next",
            "reasoning": false,
            "input": ["text"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 262144,
            "maxTokens": 65536
          },
          {
            "id": "qwen3-coder-plus",
            "name": "qwen3-coder-plus",
            "reasoning": false,
            "input": ["text"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 1000000,
            "maxTokens": 65536
          },
          {
            "id": "MiniMax-M2.5",
            "name": "MiniMax-M2.5",
            "reasoning": false,
            "input": ["text"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 196608,
            "maxTokens": 32768
          },
          {
            "id": "glm-5",
            "name": "glm-5",
            "reasoning": false,
            "input": ["text"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 202752,
            "maxTokens": 16384
          },
          {
            "id": "glm-4.7",
            "name": "glm-4.7",
            "reasoning": false,
            "input": ["text"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 202752,
            "maxTokens": 16384
          },
          {
            "id": "kimi-k2.5",
            "name": "kimi-k2.5",
            "reasoning": false,
            "input": ["text", "image"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 262144,
            "maxTokens": 32768
          }
        ]
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "bailian/qwen3.5-plus"
      },
      "models": {
        "bailian/qwen3.5-plus": {},
        "bailian/qwen3-max-2026-01-23": {},
        "bailian/qwen3-coder-next": {},
        "bailian/qwen3-coder-plus": {},
        "bailian/MiniMax-M2.5": {},
        "bailian/glm-5": {},
        "bailian/glm-4.7": {},
        "bailian/kimi-k2.5": {}
      }
    }
  },
  "gateway": {
    "mode": "local"
  }
}

YOUR_API_KEY 改成自己的,然后保存(可以在 https://bailian.console.aliyun.com 获取)

启动网关

执行命令

openclaw gateway
访问控制界面
openclaw dashboard

浏览器中访问:http://127.0.0.1:18789/

在聊天界面测试发送你好,如果收到回复,代表安装成功啦。

未来还有接入飞书的教程,以及多 Agent 的协同教程,敬请期待。

0

评论区