Назад к инструментам

Openclaw

Мультипровайдер gateway

1

Откройте конфиг Openclaw

Файл: /root/.openclaw/openclaw.json

2

Добавьте провайдер и модели

В секции "models" добавьте провайдер с нужными моделями:

JSON
{
  "models": {
    "mode": "merge",
    "providers": {
      "custom-api-claudecodeapi-cloud": {
        "baseUrl": "https://api.claudecodeapi.cloud/v1",
        "api": "openai-completions",
        "apiKey": "YOUR_API_KEY",
        "models": [
          {
            "id": "claude-sonnet-4.6",
            "name": "claude-sonnet-4.6",
            "contextWindow": 200000,
            "maxTokens": 16000,
            "input": ["text", "image"],
            "cost": {
              "input": 0.003,
              "output": 0.003,
              "cacheRead": 0.003,
              "cacheWrite": 0.003
            },
            "reasoning": false
          },
          {
            "id": "claude-sonnet-4.5",
            "name": "claude-sonnet-4.5",
            "contextWindow": 200000,
            "maxTokens": 16000,
            "input": ["text", "image"],
            "cost": {
              "input": 0.003,
              "output": 0.003,
              "cacheRead": 0.003,
              "cacheWrite": 0.003
            },
            "reasoning": false
          },
          {
            "id": "claude-opus-4.6",
            "name": "claude-opus-4.6",
            "contextWindow": 200000,
            "maxTokens": 16000,
            "input": ["text", "image"],
            "cost": {
              "input": 0.005,
              "output": 0.005,
              "cacheRead": 0.005,
              "cacheWrite": 0.005
            },
            "reasoning": false
          },
          {
            "id": "claude-haiku-4.5",
            "name": "claude-haiku-4.5",
            "contextWindow": 200000,
            "maxTokens": 16000,
            "input": ["text", "image"],
            "cost": {
              "input": 0.003,
              "output": 0.003,
              "cacheRead": 0.003,
              "cacheWrite": 0.003
            },
            "reasoning": false
          }
        ]
      }
    }
  }
}
3

Перезапустите Openclaw

После изменения конфига перезапустите gateway для применения настроек.