crs中转的codex在openclaw中如何配置

折腾了好久一直不行,openclaw配置如下

{
  "meta": {
    "lastTouchedVersion": "2026.2.1-zh.3",
    "lastTouchedAt": "2026-02-08T13:26:34.706Z"
  },
  "wizard": {
    "lastRunAt": "2026-02-08T03:46:19.172Z",
    "lastRunVersion": "2026.2.1-zh.3",
    "lastRunCommand": "onboard",
    "lastRunMode": "local"
  },
  "models": {
    "mode": "merge",
    "providers": {
      "crs": {
        "baseUrl": "https://域名省略/openai",
        "apiKey": "cr_xxxxxxx",
        "api": "openai-responses",
        "authHeader": true,
        "models": [
          {
            "id": "gpt-5.2",
            "name": "GPT-5.2 (CRS)",
            "api": "openai-responses",
            "reasoning": true,
            "input": [
              "text"
            ],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 200000,
            "maxTokens": 8192
          }
        ]
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "crs/gpt-5.2"
      },
      "models": {
        "crs/gpt-5.2": {}
      },
      "maxConcurrent": 4,
      "subagents": {
        "maxConcurrent": 8
      }
    }
  },
  "messages": {
    "ackReactionScope": "group-mentions"
  },
  "commands": {
    "native": "auto",
    "nativeSkills": "auto"
  },
  "hooks": {
    "internal": {
      "enabled": true,
      "entries": {
        "command-logger": {
          "enabled": true
        }
      }
    }
  },
  "gateway": {
    "port": 18789,
    "mode": "local",
    "bind": "loopback",
    "auth": {
      "mode": "token",
      "token": "f7e8c138deeabcb0b1352e33bb21301632f5d9aa666212bb"
    },
    "tailscale": {
      "mode": "off",
      "resetOnExit": false
    }
  }
}

crs 就不支持做这个事情。需要在转一层

CLIProxyAPI

佬,这个有教程吗

我用的crs2 你先用oai官方登录验证 登上去了让他自己改就行了

“models”: {
“mode”: “merge”,
“providers”: {
“sub2api”: {
“baseUrl”: “http://127.0.0.1:8888/v1”,
“apiKey”: “sk-e4ea46362ce866c84206fff87a8cb4f662a4ed540da16dcdeff6bc0b6062e591”,
“api”: “openai-responses”,
“models”: [
{
“id”: “gpt-5.2”,
“name”: “GPT-5.2”,
“reasoning”: false,
“input”: [
“text”
],
“cost”: {
“input”: 0,
“output”: 0,
“cacheRead”: 0,
“cacheWrite”: 0
},
“contextWindow”: 200000,
“maxTokens”: 8192
},
{
“id”: “gpt-5.2-codex”,
“name”: “GPT-5.2 Codex”,
“reasoning”: false,
“input”: [
“text”
],
“cost”: {
“input”: 0,
“output”: 0,
“cacheRead”: 0,
“cacheWrite”: 0
},
“contextWindow”: 200000,
“maxTokens”: 8192
}
]
}
}
},