跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.ruoli.dev/llms.txt

Use this file to discover all available pages before exploring further.

OpenClaw 是一个开源个人 AI 助手,支持 WhatsApp、Telegram、Slack、Discord 等 24+ 消息平台。

安装

npm install -g openclaw@latest

使用 CC Switch 配置(推荐)

打开 CC Switch,选择顶部 OpenClaw 标签,点击 + 添加配置:
CC Switch 配置
字段填写内容
供应商名称自定义,如 ruoli_openclaw
API Key你的 Key
请求地址https://ruoli.dev/v1

手动配置

在 OpenClaw 配置中添加 RuoLi:
{
  models: {
    providers: {
      ruoli: {
        baseUrl: "https://ruoli.dev/v1",
        apiKey: "sk-你的KEY",
        api: "openai",
        models: [
          { id: "claude-sonnet-4-20250514", contextWindow: 200000 },
          { id: "gpt-4o", contextWindow: 128000 }
        ]
      }
    }
  },
  agents: {
    defaults: {
      model: { primary: "ruoli/claude-sonnet-4-20250514" }
    }
  }
}

切换模型

修改配置中的 model.primary 字段,或在 CC Switch 中切换。
官方文档docs.openclaw.ai