-
-
Notifications
You must be signed in to change notification settings - Fork 52.9k
Description
Summary
I have tried several ways to enable openrouter models with reasoning = true in openclaw.json. But none of them can turn reasoning on.
Steps to reproduce
openclaw.json
...
"auth": {
"profiles": {
"openrouter:default": {
"provider": "openrouter",
"mode": "api_key",
}
}
},
"models": {
"mode": "merge",
"providers": {
"openrouter/x-ai/grok-4.1-fast": {
"baseUrl": "https://openrouter.ai/api/v1",
"apiKey": "".
"api": "openai-completions",
"models": [
{
"id": "x-ai/grok-4.1-fast",
"name": "x-ai/grok-4.1-fast",
"reasoning": true,
"input": [
"text"
],
"contextWindow": 100000,
"maxTokens": 20000
}
]
},
......
"custom-openrouter-ai": {
"baseUrl": "https://openrouter.ai/api/v1",
"apiKey": "",
"api": "openai-completions",
"models": [
{
"id": "x-ai/grok-4.1-fast",
"name": "x-ai/grok-4.1-fast (Custom Provider)",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 100000,
"maxTokens": 20000
}
]
},
......
"agents": {
"defaults": {
"model": {
"primary": "openrouter/x-ai/grok-4.1-fast",
"fallbacks": [
......
run:
openclaw doctor <== Ok
openclaw gateway restart <== Ok
Ask openclaw:
Are you using reasoning model?
Reply:
No, reasoning is off (Think: off).
Expected behavior
Ask openclaw:
Are you using reasoning model?
Reply:
Yes, reasoning is on (Think: on).
Actual behavior
Ask openclaw:
Are you using reasoning model?
Reply:
No, reasoning is off (Think: off).
OpenClaw version
2026.2.19-2
Operating system
Linux 6.12.62
Install method
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response