save-load

Save and load OpenClaw conversation context with /save and /load slash commands

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "save-load" with this command: npx skills add jkyotnfjfbjnknh/save-load

Save/Load Context Plugin

An OpenClaw plugin that adds /save and /load slash commands for persisting and restoring conversation context across sessions.

Problem

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.

Commands

CommandDescription
/save [label]Save the current conversation context with an optional label. If no label is provided, the save is named "unnamed".
/loadList all previously saved conversation contexts with their labels, message counts, and save dates.
/load <name>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 <name>Permanently delete a saved context file.

How It Works

Saving

  1. When /save is invoked, the plugin reads the session transcript (JSONL format)
  2. It identifies the conversation boundary — messages since the last /new, /reset, or /load
  3. Only user and assistant messages are extracted (tool calls and results are excluded)
  4. The messages are written to ~/.openclaw/saves/<timestamp>_<label>.json
  5. An index file (index.json) is updated for fast listing

Loading

  1. /load <name> finds the save file by label or index
  2. The saved messages are written as a new session transcript
  3. A system event is injected via enqueueSystemEvent() containing the save file path and message count
  4. The agent receives this event and can use the read tool to load the full context from the save file

Save File Format

{
  "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": "..." }
  ]
}

Installation

Via OpenClaw Plugin Manager

openclaw plugins install save-load

Manual Installation

  1. Copy the plugin directory to ~/.openclaw/extensions/save-load/
  2. Ensure openclaw.plugin.json and package.json are present
  3. Add "save-load" to the plugins.enabled array in ~/.openclaw/openclaw.json
  4. Restart the OpenClaw gateway: openclaw gateway restart

Storage

Save files are stored in ~/.openclaw/saves/. There is no limit on the number or size of saves — only disk space applies.

Requirements

  • OpenClaw 2026.3.30 or later
  • Node.js (included with OpenClaw)

Source Code

https://github.com/jkyotnfjfbjnknh/openclaw-save-load

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

GigaChat (Sber AI) Proxy

Integrate GigaChat (Sber AI) with OpenClaw via gpt2giga proxy

Registry SourceRecently Updated
3600smvlx
General

TencentCloud Video Face Fusion

通过提取两张人脸核心特征并实现自然融合,支持多种风格适配,提升创意互动性和内容传播力,广泛应用于创意营销、娱乐互动和社交分享场景。

Registry SourceRecently Updated
General

TencentCloud Image Face Fusion

图片人脸融合(专业版)为同步接口,支持自定义美颜、人脸增强、牙齿增强、拉脸等参数,最高支持8K分辨率,有多个模型类型供选择。

Registry SourceRecently Updated
General

YoudaoNote News

有道云笔记资讯推送:基于收藏笔记分析关注话题,推送最新相关资讯。支持对话触发与每日定时推送(如早上9点)。触发词:资讯推送、设置资讯推送、生成资讯推送。

Registry SourceRecently Updated
1.5K1lephix