An open plugin platform for long-running AI agents.
Build capabilities once and run them across OpenClaw, Codex, Claude Code, and future agent hosts.
Featured plugin: TokenPilot — a cache-aware context runtime that reduces long-session token usage and cost.
LightMem2 separates agent capabilities into reusable plugins that run across multiple hosts, so you only build each feature once.
Each plugin provides a distinct capability. Install what you need, skip what you don't.
| Plugin | Capability | Status | Hosts |
|---|---|---|---|
| TokenPilot | Cache-aware context management | Stable | OpenClawCodexClaude Code |
| Memory Plugin | Long-term memory | Experimental | TBD |
TokenPilot is the first official LightMem2 plugin. It reduces token usage and cost in long-running agent sessions through stable-prefix rewriting, context reduction, and lifecycle-aware eviction.
Rewrites developer-level context into a cache-stable form, dramatically improving cache hit rates across turns.
Trims oversized tool output before it pollutes later turns, keeping the context window lean without losing signal.
Limits how much old context is carried forward as sessions grow, preventing unbounded context bloat.
Built-in inspector shows token savings, cache efficiency, and session metrics in real time.
Install LightMem2 and TokenPilot in under 5 minutes.
Get Started →