Skip to content

OpenClaw Integration

1. Prerequisites

  • Registered and obtained a platform API Key.
  • Node.js environment installed.

2. Installation & Configuration

bash
# MacOS/Linux install OpenClaw
curl -fsSL https://openclaw.ai/install.sh | bash
# Windows install OpenClaw
iwr -useb https://openclaw.ai/install.ps1 | iex

3. Modify Configuration

bash
# Open the file ~/.openclaw/openclaw.json
# Add the following configuration to the corresponding fields
{
  "models": {
    "providers": {
      "aiwith.chat": {
        "baseUrl": "http://aiwith.chat/",
        "apiKey": "YOUR_API_KEY",
        "api": "openai-completions",
        "models": [
          {
            "id": "claude-opus-4-6",
            "name": "claude-opus-4-6",
            "reasoning": true,
            "input": [
              "text",
              "image"
            ]
          }
        ]
      }
    }
  },
    "agents": {
    "defaults": {
      "model": {
        "primary": "claude-opus-4-6",
        "fallbacks": [
          "claude-opus-4-6"
        ]
      },
      "models": {
        "aiwith.chat/claude-opus-4-6": {}
      }
    }
  }
}

4. Restart

bash
openclaw gateway restart