← 返回 Skills 市场
Session Archive
作者
18940111404
· GitHub ↗
· v0.5.0
· MIT-0
162
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install zhujian-session-archive
功能描述
Automatically saves chat messages to a SQLite database with query and usage statistics support.
使用说明 (SKILL.md)
Session Archive Skill
描述
会话存档插件 - 自动将对话消息保存到 SQLite 数据库。
功能
- 实时保存对话消息
- 支持按会话、日期查询
- 统计模型使用情况
使用方法
此为底层插件,安装后自动生效,无需手动调用。
配置
- 数据库路径:
~/.openclaw/session-archive.db - 可在 openclaw.json 中自定义配置
安全使用建议
This skill appears to do exactly what it says: it will automatically save entire conversation contents (including roles, potentially message IDs, media paths, and estimated or real token-usage data) to a local SQLite file (default: ~/.openclaw/session-archive.db). Before installing, consider: 1) privacy — the DB contains raw conversation text and token/cost metadata and is stored unencrypted by default; change the dbPath in openclaw.json or secure/encrypt the file if needed; 2) exposure — other plugins can obtain the plugin's engine and write operation records into this DB; review any other plugins you install; 3) backup/retention — plan disk space and retention/cleanup; 4) provenance — the package source is unknown here; if you require trust guarantees, obtain the plugin from a verified author or audit the included source (dist/*.js and src/*.ts are present). If you do not want automatic archiving of all messages, do not install or disable the plugin after installation.
功能分析
Type: OpenClaw Skill
Name: zhujian-session-archive
Version: 0.5.0
The session-archive skill is a utility designed to log conversation history, token usage, and system operations to a local SQLite database (~/.openclaw/session-archive.db). The code uses standard OpenClaw hooks (agent_end and before_agent_start) to capture and store message metadata and content. There is no evidence of data exfiltration, remote code execution, or malicious prompt injection; all data handling is local and aligned with the stated purpose in README.md and SKILL.md.
能力评估
Purpose & Capability
Name/description (session archive) align with the shipped code: plugin registers hooks (before_agent_start and agent_end), writes messages, token usage, and operations metadata into a local SQLite DB. Required permissions/variables are minimal and appropriate for local storage.
Instruction Scope
SKILL.md and README state the plugin is a low-level/automatic plugin that 'activates after install' and uses a default DB path (~/.openclaw/session-archive.db). The runtime code indeed auto-registers hooks and will record all messages and assistant token usage. This is expected behavior for an archive plugin but is privacy-sensitive (it automatically records full conversation content unless user config changes or disables the plugin).
Install Mechanism
There is no remote download/install step in the manifest (no URL extracts). The bundle includes source and compiled JS that uses only local filesystem APIs and better-sqlite3. package.json lists only better-sqlite3 as a dependency. No network endpoints or obfuscated code were found.
Credentials
The skill requests no environment variables, credentials, or config paths beyond a configurable local DB path. Storing data in the user's home directory is coherent with the stated purpose. The plugin exposes a context engine API so other plugins can call recordOperation — this is reasonable for a logging/archival engine but means other plugins could write entries into this DB.
Persistence & Privilege
always:false and the plugin registers itself and hooks normally. It does not alter other plugins' configs or request elevated system privileges. Its persistence is limited to creating and writing a local SQLite file.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install zhujian-session-archive - 安装完成后,直接呼叫该 Skill 的名称或使用
/zhujian-session-archive触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.5.0
使用 Plugin Hooks 机制实现消息存档,解决与 lossless-claw 共存问题
元数据
常见问题
Session Archive 是什么?
Automatically saves chat messages to a SQLite database with query and usage statistics support. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 162 次。
如何安装 Session Archive?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install zhujian-session-archive」即可一键安装,无需额外配置。
Session Archive 是免费的吗?
是的,Session Archive 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Session Archive 支持哪些平台?
Session Archive 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Session Archive?
由 18940111404(@18940111404)开发并维护,当前版本 v0.5.0。
推荐 Skills