Save/Load Context

v1.1.0

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

0· 119·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for jkyotnfjfbjnknh/save-load.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Save/Load Context" (jkyotnfjfbjnknh/save-load) from ClawHub.
Skill page: https://clawhub.ai/jkyotnfjfbjnknh/save-load
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required binaries: openclaw
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install save-load

ClawHub CLI

Package manager switcher

npx clawhub@latest install save-load
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the implementation: the plugin reads OpenClaw session transcripts, extracts user/assistant messages, writes save files to ~/.openclaw/saves, maintains an index, and can rebuild session transcripts. Required binary (openclaw) and files accessed are coherent with a save/load plugin.
Instruction Scope
SKILL.md and the code are aligned: they instruct reading session JSONL transcripts, filtering messages, writing save files, updating an index, and injecting a system event on load. These instructions explicitly read and overwrite local OpenClaw session files (including archiving/resetting transcripts) — which is expected for this feature but is invasive relative to ordinary plugins.
Install Mechanism
No external install or network download is specified (installation is via plugin manager or manual copy). The skill is provided as source files (index.ts) and does not fetch code from arbitrary URLs — low install risk.
Credentials
The skill requests no environment variables or external credentials. It only accesses OpenClaw-related files under the user's home directory, which is proportionate to its purpose.
Persistence & Privilege
The plugin writes persistent files to ~/.openclaw/saves, updates a boundary-state file, and can archive/replace session transcripts in ~/.openclaw/agents/…; always:false. This persistence is reasonable for its function but means it can modify/overwrite local session data and store unencrypted chat contents on disk.
Assessment
This plugin appears to do exactly what it says: save and restore conversation transcripts to files under ~/.openclaw. Before installing, be aware it will: (1) write unencrypted saved conversations to ~/.openclaw/saves (sensitive chat content will be stored in plaintext); (2) archive/replace session transcript files when loading a save (your current transcript may be moved/renamed); and (3) impose no size/number limits (disk usage could grow). Only install if you trust the source; consider auditing the bundled index.ts yourself, verify file permissions on ~/.openclaw/saves, and back up any existing session files you care about. If you need encryption or access controls, add them outside the plugin or avoid storing highly sensitive content with this tool.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

Binsopenclaw
latestvk9744f6keb8w75daq2a6fe1a4d83xh5g
119downloads
0stars
2versions
Updated 4w ago
v1.1.0
MIT-0

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

Comments

Loading comments...