← 返回 Skills 市场
hellofsf

local_memory

作者 hellofsf · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
127
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install local-memory-for-openclaw
功能描述
Manage AI conversation memory locally with automatic extraction, retrieval, and manual commands, ensuring privacy without external APIs or fees.
使用说明 (SKILL.md)

Local Memory 本地记忆技能\r

功能说明\r

纯本地运行的AI记忆管理技能,完全免费、数据本地存储,解决AI对话健忘、上下文不足的问题:\r

  • 自动从对话中提取关键事实、用户偏好、项目进展、待办事项等记忆点\r
  • 每轮对话前自动检索相关记忆注入上下文,让AI永远记得你的信息\r
  • 支持手动管理记忆的命令\r
  • 自动处理记忆更新、冲突和过期,不需要人工维护\r
  • 纯本地运行,不需要任何外部API或付费服务,隐私安全\r

触发规则\r

自动全局触发,所有对话自动启用记忆功能,无需手动调用\r

使用命令\r

| 命令 | 说明 | 示例 |\r | --- | --- | --- |\r | /remember \x3C内容> | 手动保存信息到记忆库 | /remember 我喜欢用TypeScript写代码 |\r | /recall \x3C关键词> | 查询相关记忆 | /recall 部署相关的命令 |\r | /forget \x3C关键词> | 删除相关记忆 | /forget 旧的服务器密码 |\r | /memory-list | 查看所有记忆列表 | /memory-list |\r

配置\r

所有配置在config.json中修改:\r

{\r
  "auto_extract": true, // 自动提取记忆\r
  "auto_inject": true, // 自动注入上下文\r
  "max_memory_results": 5, // 每次最多注入的记忆数量\r
  "embedding_model": "bge-small-zh", // 本地embedding模型\r
  "expire_days": 90 // 记忆默认过期时间(天)\r
}\r
```\r
## 存储路径\r
- 数据库:`db/memory.db`\r
- 向量模型:`lib/models/`\r
安全使用建议
This skill appears to do exactly what it says (local memory extraction and retrieval). Before installing, consider the following: (1) it will automatically save anything users write into db/memory.db — do not send secrets (passwords, API keys, private server credentials) in chats or tests; (2) if you want to avoid automatic storage, disable auto_extract and/or auto_inject in config.json or set expire_days low; (3) secure the database file (permissions, backups, encrypted disk) if it will contain sensitive info; (4) installing requires Python packages (jieba, scikit-learn, numpy) — prefer installing in a virtualenv; (5) review and run test.py only with non-sensitive example data; (6) if you need stronger filtering of sensitive tokens, add explicit secret-detection or opt-out rules before enabling auto-extraction. Overall the skill is internally consistent and local-only, but its automatic capture of all conversation content is the primary privacy risk.
功能分析
Type: OpenClaw Skill Name: local-memory-for-openclaw Version: 1.0.0 The skill implements a local memory management system for OpenClaw agents using SQLite and TF-IDF for text embeddings. It operates entirely locally without external network calls, providing features for automatic memory extraction from conversations and manual management via commands like /remember and /recall. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found; the code is well-structured and aligns with its stated purpose.
能力评估
Purpose & Capability
Name/description, declared Python dependencies (jieba, scikit-learn, numpy), and implemented behavior (local sqlite DB, TF-IDF embeddings, local jieba tokenizer) are coherent: the code implements local extraction, storage, embedding, retrieval, and manual commands as described.
Instruction Scope
SKILL.md and the code instruct the agent to automatically extract and persist memory from every conversation and to inject retrieved memory into system prompts for subsequent messages. This matches the intended purpose, but the extraction is rule-based and will store any user-provided content (including credentials, IPs, or other secrets) unless the user disables auto_extract or filters content.
Install Mechanism
No install spec is provided (instruction-only install), and no remote downloads or archive extraction are present. The repo includes Python files that depend on common packages; installing those via pip is the expected next step. There are no surprising external URLs or installers.
Credentials
The skill requests no environment variables, no external credentials, and uses only local file paths (db/memory.db and lib/models/). Required permissions are limited to local disk I/O for its own data files.
Persistence & Privilege
The skill is configured to trigger on every message (skill.json pattern ".*" and SKILL.md '自动全局触发'), and the platform default allows autonomous invocation. While not set to always:true, this combination means the skill will run automatically for normal conversations and persist extracted memories locally — increasing privacy exposure. The skill does not modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install local-memory-for-openclaw
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /local-memory-for-openclaw 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of local-memory-for-openclaw - Adds local AI memory management with all data stored on device for privacy. - Automatically extracts and manages key facts, preferences, progress, and to-dos from conversations. - Injects relevant memories into each conversation for better context retention. - Supports manual memory commands: save, recall, delete, and list. - Handles automatic memory updates, conflict resolution, and expiration. - Easy configuration via config.json; no external services or fees required.
元数据
Slug local-memory-for-openclaw
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

local_memory 是什么?

Manage AI conversation memory locally with automatic extraction, retrieval, and manual commands, ensuring privacy without external APIs or fees. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 127 次。

如何安装 local_memory?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install local-memory-for-openclaw」即可一键安装,无需额外配置。

local_memory 是免费的吗?

是的,local_memory 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

local_memory 支持哪些平台?

local_memory 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 local_memory?

由 hellofsf(@hellofsf)开发并维护,当前版本 v1.0.0。

💬 留言讨论