Claude Skill
MemTensor/MemOS-Cloud-OpenClaw-Plugin
OpenClaw 官方 MemOS 云插件。通过在执行前回忆上下文并在每次运行后保存对话,为 AI 智能体提供长期记忆功能。
概览
仓库信息
安装这个 Skill
git clone https://github.com/MemTensor/MemOS-Cloud-OpenClaw-Plugin.gitRegistry 信息
项目简介
MemOS-Cloud-OpenClaw-Plugin 是 OpenClaw 的官方 MemOS 云插件,通过在每次执行前回忆相关上下文并在运行后保存对话,为 AI 智能体提供长期记忆功能。
Official MemOS Cloud plugin for OpenClaw. Enables long-term memory for agents by recalling context before execution and saving conversations after each run.
要点
- AI 智能体的长期记忆
- 执行前上下文回忆
- 每次运行后保存对话
- 与 OpenClaw 无缝集成
- 由 MemOS 云驱动
使用场景
- 增强 AI 智能体在多轮任务中的连续性
- 为基于 OpenClaw 的助手构建持久记忆
- 改善 AI 工作流中的上下文感知决策
- 实现随时间推移的个性化智能体交互
README 摘要
# MemOS Cloud OpenClaw Plugin (Lifecycle) Official plugin maintained by MemTensor. A minimal OpenClaw lifecycle plugin that **recalls** memories from MemOS Cloud before each run and **adds** new messages to MemOS Cloud after each run. ## Features - **Recall**: `before_prompt_build` (`before_agent_start` on older OpenClaw hosts) → `/search/memory` - **Add**: `agent_end` → `/add/message` - **Config UI**: starting the gateway also starts a local plugin config page for editing `plugins.entries.memos-cloud-openclaw-plugin.config` - Uses **Token** auth (`Authorization: Token <MEMOS_API_KEY>`) ## Config UI - On gateway start, the plugin launches a local config page and prints the URL in the terminal (default: `http://127.0.0.1:38463`). - The page reads and writes the host config file directly: - OpenClaw: `~/.openclaw/openclaw.json` - Moltbot: `~/.moltbot/moltbot.json` - ClawDBot: `~/.clawdbot/clawdbot.json` - If the preferred UI port is already in use, the plugin automatically picks the next free port. - Saving changes writes `plugins.entries.memos-cloud-openclaw-plugin.config`. (Note: you may need to manually restart the gateway after saving for settings to take effect). ## Install ### Option A — NPM (Recommended) ```bash openclaw plugins install @memtensor/memos-cloud-openclaw-plugin@latest openclaw gateway restart ``` > **Note for Windows Users**: > If you encounter `Error: spawn EINVAL`, this is a known issue with OpenClaw's plugin installer on Windows. Please use **Option B** (Manual Install) below. Make sure it’s enabled in `~/.openclaw/openclaw.json`: ```json { "plugins": { "entries": { "memos-cloud-openclaw-plugin": { "enabled": true } } } } ``` ### Option B — Manual Install (Workaround for Windows) 1. Download the latest `.tgz` from [