Loading...
Loading...
Fix, configure, tune, or troubleshoot OpenClaw. Use for config changes, security fixes, performance tuning, doctor --fix, or when openclaw-doctor flags issues that need remediation.
npx skill4agent add anthemflynn/ccmp openclaw-adminopenclaw config setopenclaw-doctoropenclaw security auditopenclaw doctor --fixopenclaw status --all # health snapshot
openclaw gateway status # service running?
openclaw channels status --probe # channel healthopenclaw doctoropenclaw channels status --probeopenclaw sessions --active 120openclaw memory status --deepopenclaw logs --follow| Error | Likely Cause | Fix |
|---|---|---|
| Full Disk Access (macOS) | System Settings → Privacy |
| Missing dependency | |
| Port conflict | |
| Missing credentials | |
1. openclaw config get <path> # verify current value
2. openclaw config set <path> <value> # apply change
3. openclaw config get <path> # verify it applied
4. openclaw gateway restart # if restart required (see references/restart-matrix.md)
5. openclaw status --all # test it worksGroup 1 — Memory system (interdependent):
memoryFlush, reserveTokensFloor, memorySearch
→ Apply all → Verify all → Restart → Test
Group 2 — Context optimization (interdependent):
pruning mode, TTL, keepLastAssistants
→ Apply all → Verify all → Test (no restart needed)
Group 3 — Performance (independent):
heartbeat, concurrency, logging
→ Apply all → Verify all → Restart → Testopenclaw config set agents.defaults.compaction.memoryFlush.enabled true
openclaw config set agents.defaults.compaction.memoryFlush.softThresholdTokens 6000
openclaw config set agents.defaults.compaction.reserveTokensFloor 24000
openclaw config get agents.defaults.compaction
# Optional: local vector search
openclaw config set agents.defaults.memorySearch.provider "local"
openclaw config set agents.defaults.memorySearch.local.modelPath "hf:ggml-org/embeddinggemma-300M-GGUF/embeddinggemma-300M-Q8_0.gguf"openclaw config set agents.defaults.contextPruning.mode "adaptive"
openclaw config set agents.defaults.contextPruning.keepLastAssistants 5
openclaw config get agents.defaults.contextPruningopenclaw security audit --deep # find issues
openclaw security audit --fix # auto-fix what it can
chmod 600 ~/.openclaw/openclaw.json # if flagged
chmod 600 ~/.openclaw/auth-profiles.json
chmod 700 ~/.openclaw/credentials/ 2>/dev/null
chmod 700 ~/.openclaw/state/ 2>/dev/nullopenclaw doctor # diagnose + suggest
openclaw doctor --fix # apply safe auto-fixes| Goal | Setting | Value |
|---|---|---|
| Reduce API costs | | |
| | |
| Keep cache warm | | Less than pruning TTL |
| Preserve context | | |
| | |
| Faster responses | | |
| |
references/config-paths.mdreferences/restart-matrix.mdopenclaw-doctoropenclaw-maintainopenclaw-extend