360 Secure SkillHub
360 安全技能中心

OpenClaw Memory Core

作为OpenClaw内存插件的依赖库,核心提供三大模块:自动检测脱敏API密钥、云凭证等敏感信息;本地JSONL文件存储,支持内存项CRUD、过期管理及语义搜索;离线哈希式文本嵌入生成向量,无需外部依赖。支撑内存插件的安全存储与检索,输入文本/内存项,输出脱敏内容、存储结果或向量。

homeofe
homeofe
热度 70.40
最近更新 2026-05-20 03:35:27
分类:开发依赖:代码执行 / 读写文件应用场景:数据处理 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add openclaw-memory-core
Metadata
name
openclaw-memory-core
description
Core utilities for OpenClaw memory plugins (redaction, local store, embeddings).

OpenClaw Memory Core

Shared library powering OpenClaw's memory plugins (openclaw-memory-brain and openclaw-memory-docs). Provides three core modules:

Redaction

Automatically detects and redacts secrets before they reach memory storage. Covers:

  • API keys (OpenAI, Anthropic, Stripe, Google, GitHub PATs)
  • AWS credentials (access keys, secret keys)
  • Azure storage keys, HashiCorp Vault tokens
  • JWTs, Bearer tokens, PEM private key blocks

Usage: pipe any text through the redactor before storing — secrets are replaced with safe [REDACTED:TYPE] placeholders.

JSONL Store

Local file-based memory store using append-only .jsonl files. Features:

  • CRUD for memory items (kinds: fact, decision, doc, note)
  • Expiration support (expiresAt field)
  • Semantic search via cosine similarity on embeddings
  • No external database required — everything lives in flat files

Embeddings

Deterministic, offline, dependency-free text embedder (HashEmbedder):

  • FNV-1a hash-based vector generation (default 256 dimensions)
  • L2 normalization for cosine similarity search
  • No API calls, no model downloads — works fully offline
  • Not SOTA semantics, but stable and fast for local vector search

Integration

This is a dependency library, not a standalone plugin. Install it as a package dependency:

npm install @elvatis_com/openclaw-memory-core

Used internally by openclaw-memory-brain (auto-capture) and openclaw-memory-docs (explicit capture).