Install
openclaw skills install prompt-token-saverSaves 20-40% of LLM tokens by teaching the agent to write compressed responses, compressed memory logs, and compressed pre-compaction summaries. Works via SOUL.md instructions — no hooks, no extra process, no dependencies. Also provides explicit compression when the user asks to compress a prompt. Use when the user asks about reducing token costs, optimizing API spend, compressing prompts, or making the agent more efficient.
openclaw skills install prompt-token-saverSaves tokens on turns 2+ by making all agent output compressed from the start.
This is NOT a hook (hooks require newer OpenClaw versions). Instead, it works by adding instructions to SOUL.md that make the agent:
The savings compound: compressed responses → compressed history → compressed compaction summaries → fewer tokens on every subsequent turn.
Append the contents of soul-snippet.md to the user's SOUL.md:
cat {baseDir}/soul-snippet.md >> ~/.openclaw/SOUL.md
Or if using a workspace SOUL.md:
cat {baseDir}/soul-snippet.md >> <workspace>/SOUL.md
Then start a new session (/new) so the updated SOUL.md loads.
Apply these rules manually to their text:
/new after installation so the new SOUL.md loads