Clear Session Cache in OpenClaw

From the OpenClaw cheat sheet ยท Session Cache ยท verified Jul 2026

Clear Session Cache

Clear cached sessions after model changes or when conversations get stuck.

bash
# Clear cached sessions (required after model changes)
openclaw gateway stop
rm -rf ~/.openclaw/agents/main/sessions/*
openclaw gateway start
๐Ÿ’ก Model changes in config have no effect until you clear the session cache
โšก This is the fix for "I changed the model but it's still using the old one"
๐Ÿ“Œ Clearing sessions resets all conversation history โ€” there is no selective clear
๐ŸŸข Also fixes stuck conversation loops where the bot keeps repeating itself
sessionscachemodel
Back to the full OpenClaw cheat sheet