← Back to Skills Marketplace
hellofsf

local_memory

by hellofsf · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
127
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install local-memory-for-openclaw
Description
Manage AI conversation memory locally with automatic extraction, retrieval, and manual commands, ensuring privacy without external APIs or fees.
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install local-memory-for-openclaw
  3. After installation, invoke the skill by name or use /local-memory-for-openclaw
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug local-memory-for-openclaw
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is local_memory?

Manage AI conversation memory locally with automatic extraction, retrieval, and manual commands, ensuring privacy without external APIs or fees. It is an AI Agent Skill for Claude Code / OpenClaw, with 127 downloads so far.

How do I install local_memory?

Run "/install local-memory-for-openclaw" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is local_memory free?

Yes, local_memory is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does local_memory support?

local_memory is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created local_memory?

It is built and maintained by hellofsf (@hellofsf); the current version is v1.0.0.

💬 Comments