← 返回
AI智能 Key

Memori

Agent-native memory for OpenClaw that structures memory from agent trace, execution history, decisions, tool calls, and conversations into durable long-term...
OpenClaw的智能体原生记忆系统,将追踪记录、执行历史、决策、工具调用和对话结构化为持久长期记忆。
rpkruse
AI智能 clawhub v1.0.10 3 版本 99790.4 Key: 需要
★ 2
Stars
📥 912
下载
💾 14
安装
3
版本
#ai-agents#context-management#latest#latest ai-agents memory persistence#long-term-memory#memori#memory#openclaw#persistence

概述

Memori - Structured Long-term Memory for OpenClaw

Give your OpenClaw agents persistent, structured memory derived from agent execution, tool usage, workflow history, and conversations. Memori integrates seamlessly in the background via lifecycle hooks and provides agents with the tools to retrieve context when it is relevant.

Core Workflow

Memori operates on two parallel tracks through standard OpenClaw lifecycle hooks:

1. Advanced Augmentation (automatic)

After each interaction, Memori converts raw session data into structured, reusable memories asynchronously.

  • Transforms raw agent sessions into structured memory units
  • Captures the agent's actions, reasoning, tool usage, responses, corrections, and failures
  • Organizes into classes to enable efficient retrieval
  • Generates embeddings for semantic retrieval
  • Updates structured memory and the knowledge graph

This is how structured memory is continuously built and updated over time. It runs after the agent responds and does not impact latency.

2. Agent-Controlled-Intelligent Recall

Recall is explicit and initiated by the agent.

Memori separates memory creation from memory recall:

  • Creation is automatic (advanced augmentation)
  • Recall is intentional (agent-controlled)

Agents decide:

  • When to recall
  • What scope to recall from
  • How much history to include

To maintain an efficient context window, Memori equips the agent with specific tools to retrieve history when required for the conversation:

  1. memori_recall: Searches the structured memory graph for specific facts, constraints, and prior decisions.
  2. memori_recall_summary: Retrieves structured daily briefs and rolling summaries of prior sessions.
  3. memori_feedback: Reports on memory quality to improve extraction accuracy.

Installation

openclaw plugins install @memorilabs/openclaw-memori

Configuration

Add to your ~/.openclaw/openclaw.json or use the openclaw memori init CLI command to set up your workspace:

openclaw memori init \
  --api-key "YOUR_MEMORI_API_KEY" \
  --entity-id "your-entity-id" \
  --project-id "your-project-id"

Alternatively, configure it directly via JSON:

{
  "plugins": {
    "entries": {
      "openclaw-memori": {
        "enabled": true,
        "config": {
          "apiKey": "${MEMORI_API_KEY}",
          "entityId": "openclaw-user",
          "projectId": "default-project"
        }
      }
    }
  }
}

Configuration Options

  • apiKey (required): Your Memori API key from memorilabs.ai
  • entityId (required): Unique identifier for this user's memories
  • projectId (required): Scopes all memories to a specific project or workspace

Agentic Tool Guidelines

When this plugin is active, the agent is equipped with tools to manage long-term context. The agent should use its discretion to call these tools when helpful:

  • Contextual Recall: The agent can run a memori_recall search to retrieve relevant details if context is missing regarding user preferences.
  • Summaries: The agent can utilize the memori_recall_summary tool to construct a brief if a user requests a recap.
  • Account Creation: If a user explicitly asks to create an account, the agent can use the memori_signup tool to initiate the process by asking for an email address. Keys are never returned in the chat. The system securely emails the credentials to the user, who must then manually configure them to activate the plugin.
  • Quota Monitoring: The agent can use the memori_quota tool to check the user's current memory usage and storage limits to communicate quota status or gracefully degrade behavior if limits are reached.
  • Date Defaults: If the agent chooses to search memory, providing specific start/end dates is recommended to keep context windows efficient. Omitting dates will search all available history.

Verification

Check that the plugin is working and securely connected:

# Verify plugin is securely connected to the API
openclaw memori status --check

# Check for Memori logs in gateway output
openclaw gateway logs --filter "[Memori]"

Quota Management

Check your current API quota:

memori quota

Example output:

 __  __                           _
|  \/  | ___ _ __ ___   ___  _ __(_)
| |\/| |/ _ \ '_ ` _ \ / _ \| '__| |
| |  | |  __/ | | | | | (_) | |  | |
|_|  |_|\___|_| |_| |_|\___/|_|  |_|
                  perfectam memoriam
                       memorilabs.ai

+ Maximum # of Memories: 100
+ Current # of Memories: 0

+ You are not currently over quota.

Use this to monitor usage and upgrade if needed.

Performance

  • Automatic deduplication prevents memory bloat
  • Agent-controlled retrieval ensures token usage remains targeted, compact, and actionable
  • Semantic ranking ensures relevant memories surface first

Privacy, Consent & Data Handling

Explicit Opt-In Required: Memori requires the user to explicitly configure an API key (MEMORI_API_KEY) and an entityId. No data is captured or transmitted unless these credentials are actively provided by the user.

  • ✅ Conversations are securely transmitted to the Memori backend (https://api.memorilabs.ai) only when the plugin is fully configured by the user.
  • ✅ Data is encrypted in transit and at rest.
  • ✅ Users control their data scope via their specific projectId and entityId.
  • ✅ The backend automatically filters sensitive data (API keys, passwords, secrets) prior to storage.

For details: Memori Privacy Policy

Memory Persistence

Memories persist safely across:

  • Session restarts
  • Gateway restarts
  • System reboots
  • OpenClaw upgrades

All storage is handled by the Memori backend and is scoped safely alongside your local MEMORY.md file without overwriting it.

Troubleshooting

Plugin not loading:

  • Verify enabled: true in openclaw.json
  • Check API key: echo $MEMORI_API_KEY
  • Restart gateway: openclaw gateway restart

No memories captured:

  • Check gateway logs for [Memori] errors
  • Verify API endpoint reachable
  • Test API key: memori quota

Memories not recalled:

  • Did the agent utilize the retrieval tool? Check your gateway logs for memori_recall tool execution. If it didn't use the tool, you can prompt it to search its memory.
  • Ensure entityId and projectId are consistent across sessions.
  • Verify memories exist: memori quota shows count > 0.

Quota exceeded:

  • Run memori quota to check usage
  • Upgrade at memorilabs.ai
  • Or clear old memories via dashboard

Learn More

  • npm Package: https://www.npmjs.com/package/@memorilabs/openclaw-memori
  • GitHub: https://github.com/MemoriLabs/Memori
  • Documentation: https://memorilabs.ai/docs/memori-cloud/openclaw/overview/
  • API Dashboard: https://app.memorilabs.ai/
  • Support: GitHub Issues

Notes

This skill informs the agent about the Memori plugin. The plugin must be installed separately via npm. Once installed, memory capture happens in the background, and the agent is empowered to explicitly query its memories when needed.

版本历史

共 3 个版本

  • v1.0.10 当前
    2026-05-08 12:28 安全 安全
  • v1.0.8
    2026-05-03 04:05 安全
  • v1.0.7
    2026-03-29 19:00 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,354 📥 317,968
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,059 📥 797,945
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 710 📥 243,683