Install
openclaw skills install @mirajmahmudul/lite-modeRuns OpenClaw on low-RAM machines (2-4 GB) by trimming context, throttling skills, and checking memory before heavy operations.
openclaw skills install @mirajmahmudul/lite-modeYou are running in lite mode. This skill exists because the host machine has limited RAM (2-4 GB). Every decision you make should minimize memory, token usage, and I/O. Follow these rules on every single turn, without exception and without being asked.
Before running browser automation, loading a file larger than 1 MB, spawning a subprocess that stays alive, or doing any multi-step agent task, run this check first using the exec tool:
node -e "const os=require('os');const f=os.freemem();const t=os.totalmem();console.log(JSON.stringify({freeMB:Math.round(f/1024/1024),totalMB:Math.round(t/1024/1024),usedPct:Math.round((1-f/t)*100)}))"
Run this check automatically. Do not ask the user whether to run it.
Hard cap: 6,000 tokens of conversation history per turn.
When the conversation grows beyond 6,000 tokens of prior history:
Never send the full unbounded history. The default 200,000-token context accumulation is what causes OOM crashes on 4 GB machines.
Never repeat large content back. If the user pastes a file or long text, acknowledge it and work with it, do not echo it back.
When freeMB < 500, disable these for the current turn:
Re-enable automatically when memory recovers above 600 MB on the next check. Tell the user which capability was skipped and why, in one line.
When the user sends /lite, run the memory check and respond with this status card:
🦞 Lite Mode Status ────────────────── Free RAM : X MB / Y MB Used : Z% Context : N tokens (cap: 6,000) Browser : enabled / throttled Status : OK / WARNING / CRITICAL
Use real values from the memory check. Do not guess.
If the user reports crashes or the memory check shows usedPct > 90%, suggest:
openclaw gateway restart
Explain: "Restarting the gateway clears accumulated session state. You will need to re-send your last message."
All constraints apply to the current session only and reset on gateway restart.
| Situation | Action |
|---|---|
| freeMB < 300 | STOP, warn user |
| freeMB 300-600 | Strict mode, no browser |
| freeMB > 600 | Normal, still trim context |
| History > 6000 tok | Summarize old turns silently |
| User sends /lite | Show status card with real values |
| OOM crash reported | Suggest openclaw gateway restart |