memory

A memory system that lets an assistant keep selected facts and preferences between conversations. It can store memories locally in files or use experimental Mem0 and Zep providers.

In plain words
What is it for?
Use it to remember preferences, names, relationships, jobs, locations, and other useful facts across sessions.
Why use it?
It removes the need to repeat the same personal details or preferences in every conversation. It also gives a choice between local storage and external memory services.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/acnlabs/openpersona/memory
Any agent
npx skills add acnlabs/OpenPersona --skill memory
Clone the repo
git clone --depth 1 https://github.com/acnlabs/OpenPersona

Made for: Claude Code, Codex.

Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,578 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01578
Opus 5 $0.00000 $0.00789
Sonnet 5 $0.00000 $0.00316
Haiku 4.5 $0.00000 $0.00158

Measured 2d ago against content hash 1a70273e2a37, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

memory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/memory.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

layers/faculties/memory/SKILL.md · 161 lines

How it starts

The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Memory Faculty — Cognition

Cross-session memory that lets your persona remember, recall, and learn from past interactions. Memories persist across conversations and shape how you engage with the user over time.

Supported Providers

Provider Env Var for Key Best For Status
Local (none, default) Zero-dependency, file-based, full privacy ✅ Built-in
Mem0 MEMORY_API_KEY Managed memory service, automatic extraction ⚠️ Experimental
Zep MEMORY_API_KEY Structured memory with temporal awareness ⚠️ Experimental

Note: Only the local provider is bundled. External providers require their SDK to be installed and MEMORY_PROVIDER set accordingly. The local provider stores memories as JSON lines in ~/.openclaw/memory/persona-<slug>/.

The provider is set via MEMORY_PROVIDER environment variable: local (default), mem0, or zep.

When to Store (Automatic)

Store memories proactively during conversation — don't wait for the user to say "remember this":

  • Preferences: "I'm vegetarian", "I prefer dark mode", "I hate mornings"
  • Personal facts: names, relationships, jobs, locations, birthdays
  • Recurring topics: if the user brings up a subject 2+ times, it's worth remembering
  • Emotional moments: breakthroughs, frustrations, celebrations
  • Milestones: relationship stage transitions, achievement moments (→ also log as evolution event)
  • Explicit requests: "Remember that I..." or "Don't forget..."

Do NOT store:

  • Casual filler ("how's it going", "thanks")
  • Content the user explicitly marks as private or asks you to forget
  • Secrets, passwords, API keys, or sensitive credentials (→ use Body credential management instead)

When to Recall (Automatic)

Retrieve memories proactively when they're relevant — don't wait to be asked:

  • User mentions a topic you have memories about → recall and weave in naturally
  • Start of a new conversation → retrieve recent memories for context continuity
  • User seems to repeat themselves → check if you already know this, acknowledge it
  • Emotional callback → "Last time you mentioned X, you seemed Y — how's that going?"

Read the full file on GitHub · 161 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 161 lines · 0 tokens per session scan A 1a70273e2a37

Subscribe to this mod's changes

memory is a skill published in the GitHub repository acnlabs/OpenPersona (48 stars, last pushed 22d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,578 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

squash-merge

Squash-merge a PR into zeroclaw-labs/zeroclaw master with fully preserved commit history in the squash message body. Use this skill when the user explicitly mentions squash-merging, merging a specific PR number, landing a PR, or 合入 — e.g. "squash-merge #123", "merge PR 456", "land #789", "合入 #123", "/squash-merge…

zeroclaw-labs/zeroclaw · 0 tokens

zeroclaw

Help users operate and interact with their ZeroClaw agent instance — through both the CLI (zeroclaw commands) and the REST/WebSocket gateway API. Use this skill whenever the user wants to: send messages to ZeroClaw, manage memory or cron jobs, check system status, configure channels or providers, hit the gateway API…

zeroclaw-labs/zeroclaw · 167 tokens

github-pr

Open or update a GitHub Pull Request for ZeroClaw. Handles creating new PRs with a fully filled-out template body, and updating existing PRs (title, body sections, labels, comments). Use this skill whenever the user wants to open a PR, create a pull request, update a PR, edit PR description, add labels to a PR, or…

zeroclaw-labs/zeroclaw · 0 tokens

feature-matrix-parity

Update the OpenClaw and Hermes comparison columns of the ZeroClaw feature-and-support matrix. Use this skill when the user wants to refresh, fill, or verify parity data in docs/book/feature-matrix-parity.toml, add a new comparison row or section to the feature matrix, or re-walk the competitor repos for support…

zeroclaw-labs/zeroclaw · 127 tokens

github-issue-triage

Issue triage and lifecycle management agent for ZeroClaw. Use this skill whenever the user wants to: triage open issues, close stale/duplicate/fixed issues, apply labels, run a backlog sweep, enforce the current issue stale policy, or handle a specific issue. Trigger on: 'triage issues', 'issue triage', 'sweep…

zeroclaw-labs/zeroclaw · 140 tokens

gh-pr-description

Drafts and reviews GitHub pull request descriptions for the eve repository. Use when opening, updating, or reviewing a PR, or when summarizing a branch for reviewers.

vercel/eve · 38 tokens