← 返回首页

OpenClaw 配置指南

OpenClaw 是一款开源的个人 AI 助手平台,支持自动化任务和本地化操作。

相关资源
安装
1
macOS / Linux
环境要求:macOS 10.15+ 或主流 Linux 发行版(Ubuntu 18.04+、Debian 10+、CentOS 7+)。
curl -fsSL https://openclaw.ai/install.sh | bash
配置文件位置:~/.openclaw/openclaw.json
2
Windows
环境要求:Windows 10/11,PowerShell 5.1+。
iwr -useb https://openclaw.ai/install.ps1 | iex
配置文件位置:C:\Users\[用户名]\.openclaw\openclaw.json
API 配置(两个平台通用)
编辑上述配置文件,替换其中的 models 部分,并填入你的 API Key。接入地址为 https://niuflu.com/v1,API 类型为 openai-responses,模型 gpt-5.4 支持文本与图片输入。
openclaw.json
{
  "models": {
    "providers": {
      "niuflu-gpt": {
        "baseUrl": "https://niuflu.com/v1",
        "apiKey": "你的 API Key",
        "api": "openai-responses",
        "models": [
          { "id": "gpt-5.4", "name": "gpt-5.4", "reasoning": true, "input": ["text", "image"] }
        ]
      }
    }
  }
}
保存前将 apiKey 替换为你的个人凭证,修改后重启 OpenClaw 使新配置生效。