An OpenClaw plugin that adds /save and /load slash commands for persisting and restoring conversation context across sessions.
OpenClaw conversations are ephemeral — when you start a new session or reset, all context is lost. This plugin lets you save any conversation to disk and reload it later, preserving full context continuity.
| Command | Description |
|---|---|
| --------- | ------------- |
/save [label] | Save the current conversation context with an optional label. If no label is provided, the save is named "unnamed". |
/load | List all previously saved conversation contexts with their labels, message counts, and save dates. |
/load | Load a saved context by label or index number. This replaces the current session transcript with the saved conversation. After loading, the agent receives a system event with the save file path so it can restore full context. |
/load --delete | Permanently delete a saved context file. |
/save is invoked, the plugin reads the session transcript (JSONL format)/new, /reset, or /loaduser and assistant messages are extracted (tool calls and results are excluded)~/.openclaw/saves/_ index.json) is updated for fast listing/load finds the save file by label or indexenqueueSystemEvent() containing the save file path and message countread tool to load the full context from the save file{
"version": 1,
"label": "project-discussion",
"savedAt": "2026-03-30T15:38:00+08:00",
"messageCount": 42,
"sourceSession": "telegram:2074807638",
"messages": [
{ "role": "user", "content": "..." },
{ "role": "assistant", "content": "..." }
]
}
openclaw plugins install save-load
~/.openclaw/extensions/save-load/openclaw.plugin.json and package.json are present"save-load" to the plugins.enabled array in ~/.openclaw/openclaw.jsonopenclaw gateway restartSave files are stored in ~/.openclaw/saves/. There is no limit on the number or size of saves — only disk space applies.
https://github.com/jkyotnfjfbjnknh/openclaw-save-load
共 1 个版本