Memory

OpenClaw Memory Admin

Try it

Inspect, back up, search, export, and update OpenClaw long-term memory stored with MemoryOS. Use when Codex needs to manage MemoryOS memory files for an Open...

What it does

Manage OpenClaw long-term memory by operating directly on MemoryOS storage files and by following the MemoryOS data model used in and .

The skill document

OpenClaw MemoryOS Memory Admin

Manage OpenClaw long-term memory by operating directly on MemoryOS storage files and by following the MemoryOS data model used in long_term_user.json and long_term_assistant.json.

Use the bundled script for deterministic operations. Read the reference file only when you need to confirm the on-disk layout or explain how MemoryOS maps user profile, user knowledge, and assistant knowledge.

Quick Start

Prefer scripts/memoryos_admin.py over ad hoc edits.

Common commands:

python scripts/memoryos_admin.py summary --data-root "D:\path\to\memoryos_data" --user-id alice --assistant-id openclaw
python scripts/memoryos_admin.py search-user --data-root "D:\path\to\memoryos_data" --user-id alice --query "project preference"
python scripts/memoryos_admin.py add-user-knowledge --data-root "D:\path\to\memoryos_data" --user-id alice --text "User prefers concise technical answers."
python scripts/memoryos_admin.py set-profile --data-root "D:\path\to\memoryos_data" --user-id alice --profile-file ".\profile.txt"
python scripts/memoryos_admin.py backup --data-root "D:\path\to\memoryos_data" --user-id alice --assistant-id openclaw

Workflow

Follow this order unless the user asks for a narrower task:

  1. Locate the MemoryOS data root used by the OpenClaw integration.
  2. Run summary to inspect current profile and knowledge counts.
  3. Run backup before any mutating action.
  4. Use search-user or search-assistant to verify whether the target memory already exists.
  5. Use add-user-knowledge, add-assistant-knowledge, or set-profile for intentional updates.
  6. Use export-markdown when the user wants a readable audit or handoff artifact.

Data Rules

Treat these files as the authoritative long-term memory state:

  • users//long_term_user.json
  • assistants//long_term_assistant.json

Interpret them this way:

  • user_profiles..data: current synthesized user profile
  • knowledge_base[]: user-specific long-term knowledge entries
  • assistant_knowledge[]: assistant-side reusable knowledge entries

Preserve existing timestamps unless you are explicitly adding or replacing content.

Do not hand-edit embeddings. The bundled admin script stores and updates records without embeddings on purpose, because this skill is for memory administration, curation, backup, and inspection. Semantic retrieval inside live MemoryOS runtime can rebuild or add embeddings through normal MemoryOS flows when needed.

Mutation Guidance

Use set-profile only when the user wants to replace the synthesized profile with a curated version.

Use add-user-knowledge for durable facts about the user, preferences, identity, recurring tasks, or persistent context that OpenClaw should remember.

Use add-assistant-knowledge for workflow instructions, project background, house rules, or reusable operational knowledge that belongs to the assistant rather than the user.

Before appending a near-duplicate memory, search first and ask whether the old entry should be kept, replaced manually, or left unchanged if the instruction is ambiguous.

OpenClaw Integration Notes

If OpenClaw is not present in the workspace, treat OpenClaw as the consuming agent and MemoryOS as the storage backend. The critical integration contract is the MemoryOS data_storage_path and the chosen user_id plus assistant_id.

When wiring another agent project to MemoryOS:

  • keep a stable user_id per person
  • keep a stable assistant_id per OpenClaw persona or deployment
  • point the agent to the same data_storage_path
  • back up memory files before schema or workflow changes

References

Read references/memoryos-layout.md when you need exact file layout and field names.

Related skills

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván557 installs18 stars

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai21 installs8 stars

Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.

by fly0pants4.3k installs296 stars

More from xiaocaijic

Browse all skills

专业级 AI 短视频配音助手,支持多角色音色映射、自动语速调节及 BGM 建议。

by xiaocaijic19 installs

Organize project, agent, or user memory using an A-MEM-style workflow with structured notes, semantic tags, contextual summaries, explicit links, and lightwe...

by xiaocaijic21 installs

Read meeting minutes or notes from a local file path or URL, or inspect a local meeting-notes directory and report the file count plus file list. Use when th...

by xiaocaijic24 installs

Read meeting minutes, produce a short summary with the current conversation model, save the meeting text and summary into local memory, answer follow-up ques...

by xiaocaijic22 installs

Distill successful multi-step OpenClaw sessions into reusable learned skills before compaction. Use when a task involved many tool calls, environment setup,...

by xiaocaijic19 installs

电商 AI 语音技能。用于在 OpenClaw 或类似技能宿主中,按不同触发词独立启用两套互不干扰的能力:(1) 售后客服模式,将售后文本咨询按预设退款规则生成客服回复并输出 TTS 音频;(2) 电话推销模式,按产品名称、功能、优势和优惠范围生成推销话术并输出 TTS 音频。适用于需要模式切换、配置确认、音色选...

by xiaocaijic22 installs