QClaw 其实就是多了软件UI的龙虾。本以为修改很难,但是看到了龙虾这熟悉的配置文件一切都Easy。
本配置以window10,其他操作系统类似只要找到对应配置文件即可。
配置完后因UI的原因模型是不能选择的,因此默认自己的模型设置为默认模型。
- 配置文件位置,不了解的最好是问一下qclaw
- 打开此文件,你会看到熟悉的龙虾配置
- 首先在agents这个属性增加默认模型和自定义模型,这里主要设置主模型(因UI无法切换模型因此这里要配置默认自己的模型),thinkingDefault 思考自定义我这里是最高xhigh
"agents": {
"defaults": {
"model": {
"primary": "free-gpt/gpt-5.4"
},
"models": {
"free-gpt/gpt-5.4": {
"alias": "gpt-5.4"
},
"free-gpt/gpt-5.3-codex": {
"alias": "gpt-5.3-codex"
},
"free-gpt/gpt-5.2": {
"alias": "gpt-5.2"
}
},
"thinkingDefault": "xhigh",
"workspace": "C:\\Users\\Administrator\\.qclaw\\workspace",
"maxConcurrent": 3,
"timeoutSeconds": 72000
}
},
- models 配置中转地址和模型,free-gpt自己随便起接口不过要与第3不对应起来,headers加了User-Agent替换了龙虾默认消息头,防止cf拦截。qclaw默认不用管。
"models": {
"mode": "merge",
"providers": {
"free-gpt": {
"baseUrl": "https://中转地址/v1",
"apiKey": "你的key",
"api": "openai-completions",
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
},
"models": [
{
"id": "gpt-5.4",
"name": "gpt-5.4",
"reasoning": true,
"input": [
"text",
"image"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 400000,
"maxTokens": 128000
},
{
"id": "gpt-5.3-codex",
"name": "gpt-5.3-codex",
"api": "openai-completions",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 200000,
"maxTokens": 8192
},
{
"id": "gpt-5.2",
"name": "gpt-5.2",
"api": "openai-completions",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 200000,
"maxTokens": 8192
}
]
},
"qclaw": {
"baseUrl": "${QCLAW_LLM_BASE_URL}",
"apiKey": "${QCLAW_LLM_API_KEY}",
"api": "openai-completions",
"models": [
{
"id": "modelroute",
"name": "modelroute"
}
]
}
}
},
保存即可,到此QClaw自定义完成。
对话试试,熟悉的龙虾对话开头就来了,最后问问使用什么模型。详细可以看图
唯一遗憾的是UI模型不能切换只能使用自己的默认模型



