Help OpenClaw run smoothly on machines with limited resources.
Check current resources:
bash <skill-dir>/scripts/check_resources.sh
Parse output with jq:
bash <skill-dir>/scripts/check_resources.sh | jq '.alert, .ram.pct, .cpu.pct'
Before spawning subagents, opening browser, or running intensive tasks:
bash <skill-dir>/scripts/check_resources.sh
Decision matrix based on alert field:
# Dry run first
bash <skill-dir>/scripts/cleanup_sessions.sh --dry-run
# Execute cleanup
bash <skill-dir>/scripts/cleanup_sessions.sh
# Aggressive (includes npm/pip/journal)
bash <skill-dir>/scripts/cleanup_sessions.sh --aggressive
For machines with ≤4GB RAM, suggest OpenClaw config changes.
See references/config-guide.md for full details.
Key recommendations:
"off" unless neededweb_fetch over browser automationmode: "run" for subagents (auto-cleanup)During heartbeats on low-spec machines:
bash <skill-dir>/scripts/check_resources.sh | jq -r '.alert'
If alert is WARNING or CRITICAL, notify the user with specifics:
web_fetch > browser, mode: "run" > mode: "session"共 1 个版本