#how to edit this
1 messages Β· Page 1 of 1 (latest)
Use this one-liner; change 24000 to the value you want:
VALUE=24000; openclaw config get agents.defaults.compaction.reserveTokensFloor; openclaw config set agents.defaults.compaction.reserveTokensFloor "$VALUE"; openclaw config get agents.defaults.compaction.reserveTokensFloor
That prints the current value, sets it, then prints the new value to confirm.
Docs: https://docs.openclaw.ai/gateway/configuration and config reference: https://docs.openclaw.ai/gateway/configuration-reference#agentsdefaultscompaction
If config set errors, first check your version with openclaw --version.
make it 100k
VALUE=100000; openclaw config get agents.defaults.compaction.reserveTokensFloor; openclaw config set agents.defaults.compaction.reserveTokensFloor "$VALUE"; openclaw config get agents.defaults.compaction.reserveTokensFloor
That sets agents.defaults.compaction.reserveTokensFloor to 100000 and confirms it afterward.
do i need to restart
Usually no. agents.* config hot-reloads, so agents.defaults.compaction.reserveTokensFloor should apply automatically after openclaw config set.
If you changed gateway.reload.mode to off, then restart the gateway manually. Otherwise just verify it stuck:
openclaw config get agents.defaults.compaction.reserveTokensFloor
Docs: https://docs.openclaw.ai/gateway/configuration#config-hot-reload