Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

mementomemento 搜索

Agent Skill

memento 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

26,737

周安装

1,103

GitHub Stars

公开资料未说明

下载量

8,736
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:memento(memento 搜索)
来源仓库:https://github.com/braibaud/memento
安装命令:
openclaw skills install memento
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install memento

简介

memento 为 OpenClaw 代理提供本地持久内存,自动提取并回忆对话事实。

  • 适用于需要长期记忆保持与知识回溯的应用场景。
  • 通过 SQLite 存储结构化数据,支持高效查询与更新。
  • 使用前应确认存储空间与数据库版本兼容性。memento 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 建议定期清理过期记忆以提升性能与准确性。

SKILL.md

name
memento
description
Local persistent memory for OpenClaw agents. Captures conversations, extracts structured facts via LLM, and auto-recalls relevant knowledge before each turn. Privacy-first, all stored data stays local in SQLite.
metadata
version
0.6.0
author
braibaud
license
MIT
repository
https://github.com/braibaud/Memento
openclaw
emoji
🧠
kind
plugin
requires
node
>=18.0.0
optionalEnv
when
Using anthropic/* models for extraction
when
Using openai/* models for extraction
when
Using mistral/* models for extraction
when
Generic fallback for any provider
when
OpenClaw OAuth token for model routing (auto-used when running inside OpenClaw)
when
Migration only: path to agent workspace for bootstrapping
when
Deep consolidation CLI: explicit agent:path mappings
dataFiles
purpose
Main database — conversations, facts, embeddings (local only, never uploaded)
purpose
Human-readable conversation backups (local only)
purpose
Optional: agent workspace paths for one-time migration bootstrap
install
kind
node
package
@openclaw/memento
label
Install Memento plugin (npm)
extensions
keywords

Memento — Local Persistent Memory for OpenClaw Agents

Memento gives your agents long-term memory. It captures conversations, extracts structured facts using an LLM, and auto-injects relevant knowledge before each AI turn.

All stored data stays on your machine — no cloud sync, no subscriptions. Extraction uses your configured LLM provider; use a local model (Ollama) for fully air-gapped operation.

⚠️ Privacy note: When autoExtract is enabled, conversation segments are sent to your configured LLM provider for fact extraction. If you use a cloud provider (Anthropic, OpenAI, Mistral), that text leaves your machine. For fully local operation, set extractionModel to ollama/<model> and keep Ollama running locally.

What It Does

  1. Captures every conversation turn, buffered per session
  2. Extracts structured facts (preferences, decisions, people, action items) via configurable LLM (opt-in — see Privacy section)
  3. Recalls relevant facts before each AI turn using FTS5 keyword search + optional semantic embeddings (BGE-M3)
  4. Respects privacy — facts are classified as shared, private, or secret based on content, with hard overrides for sensitive categories (medical, financial, credentials)
  5. Cross-agent knowledge — shared facts flow between agents with provenance tags; private/secret facts never cross boundaries

Quick Start

Install the plugin, restart your gateway, and Memento starts capturing automatically. Extraction is off by default — enable it explicitly when ready.

Optional: Semantic Search

Download a local embedding model for richer recall:

mkdir -p ~/.node-llama-cpp/models
curl -L -o ~/.node-llama-cpp/models/bge-m3-Q8_0.gguf \
  "https://huggingface.co/gpustack/bge-m3-GGUF/resolve/main/bge-m3-Q8_0.gguf"

Environment Variables

All environment variables are optional — you only need the one matching your chosen LLM provider:

VariableWhen Needed
ANTHROPIC_API_KEYUsing anthropic/* models for extraction
OPENAI_API_KEYUsing openai/* models for extraction
MISTRAL_API_KEYUsing mistral/* models for extraction
MEMENTO_API_KEYGeneric fallback for any provider
MEMENTO_WORKSPACE_MAINMigration only: path to agent workspace for bootstrapping

No API key needed for ollama/* models (local inference).

Configuration

Add to your openclaw.json under plugins.entries.memento.config:

{
  "memento": {
    "autoCapture": true,
    "extractionModel": "anthropic/claude-sonnet-4-6",
    "extraction": {
      "autoExtract": true,
      "minTurnsForExtraction": 3
    },
    "recall": {
      "autoRecall": true,
      "maxFacts": 20,
      "crossAgentRecall": true,
      "autoQueryPlanning": false
    }
  }
}
autoExtract: true is an explicit opt-in (default: false). When enabled, conversation segments are sent to the configured extractionModel for LLM-based fact extraction. Omit or set to false to keep everything local.
autoQueryPlanning: true is an explicit opt-in (default: false). When enabled, a fast LLM call runs before each recall search to expand the query with synonyms and identify relevant categories — improving precision at the cost of one extra LLM call per turn.

Data Storage

Memento stores all data locally:

PathContents
~/.engram/conversations.sqliteMain database: conversations, facts, embeddings
~/.engram/segments/*.jsonlHuman-readable conversation backups
~/.engram/migration-config.jsonOptional: migration workspace paths (only for bootstrapping)

Privacy & Data Flow

FeatureData leaves machine?Details
autoCapture (default: true)❌ NoWrites to local SQLite + JSONL only
autoExtract (default: false)⚠️ Yes, if cloud LLMSends conversation text to configured provider. Use ollama/* for local.
autoRecall (default: true)❌ NoReads from local SQLite only
Secret facts❌ NeverFiltered from extraction context — never sent to any LLM
Migration❌ NoReads local workspace files, writes to local SQLite

Migration (Bootstrap from Existing Memory Files)

Migration is an optional, one-time process to seed Memento from existing agent memory/markdown files. It is user-initiated only — never runs automatically.

What it reads

Migration reads only the files you explicitly list in the config. It does not scan your filesystem, read arbitrary files, or access anything outside the configured paths.

Setup

  1. Create ~/.engram/migration-config.json or set MEMENTO_WORKSPACE_MAIN:
{
  "agents": [
    {
      "agentId": "main",
      "workspace": "/path/to/your-workspace",
      "paths": ["MEMORY.md", "memory/*.md"]
    }
  ]
}
  1. Always dry-run first to verify exactly which files will be read:
npx tsx src/extraction/migrate.ts --all --dry-run

The dry-run prints every file path it would read — review this before proceeding.

  1. Run the actual migration:
npx tsx src/extraction/migrate.ts --all

Security notes

  • Migration only reads files matching the glob patterns you configure
  • Extracted facts inherit visibility classification (shared/private/secret)
  • Secret-classified facts are never sent to cloud LLM providers
  • Migration config file is optional — if absent, migration is completely inert
  • The migration script has no network access beyond the configured extraction LLM

Architecture

  • Capture layer — hooks message:received + message:sent, buffers multi-turn segments
  • Extraction layer — async LLM extraction with deduplication, occurrence tracking, temporal state transitions (previous_value), and knowledge graph relations (including causal edges with causal_weight)
  • Storage layer — SQLite schema v7 (better-sqlite3) with FTS5 full-text search + optional vector embeddings; knowledge graph (fact_relations with causal_weight), multi-layer clusters, and temporal transition tracking (previous_value)
  • Recall layer — optional LLM query planning pre-pass (autoQueryPlanning), multi-factor scoring (recency × frequency × category weight), 1-hop graph traversal with causal edge 1.5× boost, injected via before_prompt_build hook

Requirements

  • OpenClaw 2026.2.20+
  • Node.js 18+
  • An API key for your preferred LLM provider (for extraction — not needed if extraction is disabled or using Ollama)
  • Optional: GPU for accelerated embedding search (falls back to CPU gracefully)

Install

# From ClawHub
clawhub install memento

# Or for local development
git clone https://github.com/braibaud/Memento
cd Memento
npm install

Note: better-sqlite3 includes native bindings that compile during npm install. This is expected behavior for SQLite access.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

98.93%
按下载量换算8,643

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills