openclaw龙虾怎么使用中转站的api,求教程!!!!

今天搭建openclaw,结果发现好像没办法使用中转站的api,其他的都好贵 :sweat_smile:,有没有佬友指导指导的 :sweat_smile:

8 个赞

https://linux.do/t/topic/1702053 看看这个

4 个赞

谢谢大佬,我去看看呢 :+1:

1 个赞

models.providers下新增

      "name": {
        "baseUrl": "https://xxx/v1",
        "apiKey": "sk-xxx",
        "api": "openai-completions",
        "authHeader": true,
        "models": [
          {
            "id": "claude-sonnet-4-5-20250929",
            "name": "claude-sonnet-4-5-20250929 (Custom Provider)",
            "reasoning": false,
            "input": [
              "text"
            ],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 200000,
            "maxTokens": 8192
          }
        ]
      }

然后agents.defaults.中配置

      "model": {
        "primary": "name/claude-sonnet-4-5-20250929",
        "fallbacks": ["name/xxx"]
      }

同样agents.defaults.中可以配置多个别名模型

      "models": {
        "name/xxxx": {
          "alias": "opus"
        },
        "name/xxxx": {
          "alias": "sonnet"
        },
        "name/xxxx": {
          "alias": "haiku"
        }
      },
2 个赞

最无脑就是直接执行
Openclaw config
然后跟着步骤走就好了

你直接发给他

正解,有一些特殊的接口,不太一样。

1 个赞

可以用的 你甚至能教他自己配好文件你去填写key跟url就好

1 个赞

叫龙虾自己改

1 个赞

新增??意思是可以设置多个么? :see_no_evil_monkey:

1 个赞

啊,可以吗,哈哈哈 :rofl:

当然可以

不建议,他会给自己改崩

1 个赞

我用opencode 改 openclaw;
把公益站 API-key和Baseurl 贴过去 :rofl:

2 个赞

昨天确实把自己改崩了,我抢救了半天

来个教程 :face_holding_back_tears:

正确的,就应该用另一个Agent修改它而不是和Openclaw说

1 个赞

GitHub - farion1231/cc-switch: A cross-platform desktop All-in-One assistant tool for Claude Code, Codex, OpenCode, openclaw & Gemini CLI. · GitHub 用这个比较方便!

我一般都同时开一个claude code 然后吧中专站的接口和key扔给他叫他帮我弄啊,但是好像有些中专站是claudecode专用,openai格式的请求会检测到不让用

你跟另一个 Agent进行自然语言的对话就行了,这个不用教啦。