Openclaw Context Capsule
/install context-capsule
Context Capsule
Compress agent session history 99.3% before it hits the LLM. Works with Claude, GPT, Ollama, Mistral, LM Studio — any model.
What it does
Keeps last 10 messages verbatim. Compresses the rest into a 60-token capsule. Agent still answers 30/30 memory questions correctly.
Savings
| Without | With | |
|---|---|---|
| Tokens per call | 7,583 | 53 |
| Cost (Claude Sonnet) | $0.023 | $0.00016 |
| Monthly (50 calls/day) | ~$34 | ~$0.24 |
Install
npm i @parad0x_labs/context-capsule
Benchmark
npm run bench:public
CI fails if savings drop below 95% or recovery below 90%.
Source
github.com/Parad0x-Labs/dna-x402/tree/main/packages/context-capsule
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install context-capsule - After installation, invoke the skill by name or use
/context-capsule - Provide required inputs per the skill's parameter spec and get structured output
What is Openclaw Context Capsule?
Compresses agent session history by over 99% before sending to LLM, retaining last 10 messages verbatim and summarizing the rest into a 60-token capsule. It is an AI Agent Skill for Claude Code / OpenClaw, with 68 downloads so far.
How do I install Openclaw Context Capsule?
Run "/install context-capsule" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Openclaw Context Capsule free?
Yes, Openclaw Context Capsule is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Openclaw Context Capsule support?
Openclaw Context Capsule is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Openclaw Context Capsule?
It is built and maintained by Parad0x Labs (@parad0x-labs); the current version is v1.0.0.