i use llms locally with lmstudio. sometimes the client disconnects from lm server due to time out, because it takes too long to respond, whixh is normally for local llms running on consumer hardware. i need to extend the waiting time of the openclw client. i know that this can be done config. please help me how to instroduce the snippet into config. i have not edit config in the past, i dont know the correct syntax
#client time out
1 messages · Page 1 of 1 (latest)
This is controlled by agents.defaults.timeoutSeconds (default is 600s = 10 minutes). For slow local LM Studio models, bump it up.
Before anything: what version are you on? Please paste:
openclaw --version
Easiest way (no manual config editing)
Run:
openclaw config set agents.defaults.timeoutSeconds 1800 --json
(1800 = 30 minutes. If you need 1 hour, use 3600.)
Verify it stuck:
openclaw config get agents.defaults.timeoutSeconds
Then restart the Gateway (safest):
openclaw gateway restart
Manual config file edit (JSON5)
Config is JSON5 at ~/.openclaw/openclaw.json (unless OPENCLAW_CONFIG_PATH is set).
Add/adjust:
{
agents: {
defaults: {
timeoutSeconds: 1800,
},
},
}
Docs:
- Config format/location (JSON5): https://docs.openclaw.ai/help/faq#what-format-is-the-config-where-is-it
- Config reference (shows
timeoutSeconds): https://docs.openclaw.ai/gateway/configuration-reference
If you paste the exact timeout error text you see (and whether you’re using openai-completions or openai-responses for LM Studio), I can confirm it’s the right knob.
i am on version 2026.2.17 . shall i continue with the provided solution?
Yes — on 2026.2.17 you can go ahead with that solution.
Set the agent turn timeout higher:
openclaw config set agents.defaults.timeoutSeconds 1800 --json
Verify:
openclaw config get agents.defaults.timeoutSeconds
Then restart the Gateway:
openclaw gateway restart
If it still disconnects after increasing this, paste the exact error text you see in the logs/UI (the wording matters). At that point it may be LM Studio / upstream proxy timing out the HTTP connection rather than OpenClaw’s agent timeout.