memclaw-maintance

v0.9.31

MemClaw Maintenance Guide — Installation, configuration, and maintenance guidance. For daily usage and tool operations, use the [`memclaw` skill](https://cla...

1· 222·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for sopaco/memclaw-maintance.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "memclaw-maintance" (sopaco/memclaw-maintance) from ClawHub.
Skill page: https://clawhub.ai/sopaco/memclaw-maintance
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install memclaw-maintance

ClawHub CLI

Package manager switcher

npx clawhub@latest install memclaw-maintance
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name and description match the content: the skill is an installation/configuration/maintenance guide for MemClaw. All actions described (install plugin, enable plugin, configure LLM/embedding keys, migrate local memories, run maintenance commands) are coherent with a maintenance role. Nothing in the files asks for unrelated cloud provider credentials or unrelated system-wide access.
Instruction Scope
The SKILL.md instructs the agent/admin to edit openclaw.json / AGENTS.md and to run migration that reads local memory files (~/.openclaw/workspace/memory/) and to call MemClaw runtime endpoints (cortex_* calls). Those actions are expected for migration/maintenance but are capable of reading local memory files and changing agent behavior (the guide insists on making the agent load persistent memory at conversation start). Users should be aware migration reads local files and that modifying AGENTS.md affects agent startup behavior.
Install Mechanism
This skill contains no install spec or code — it is instruction-only. It tells the user to run the OpenClaw CLI to install @memclaw/memclaw, and points to a GitHub repository. The skill itself does not automatically download or execute code, so the installation risk is delegated to the plugin installation step (not part of this skill bundle).
Credentials
The skill does not declare environment variables, but instructs configuring LLM and embedding API keys in OpenClaw plugin settings (llmApiKey, embeddingApiKey, base URLs, models). These are proportionate to a memory/embedding plugin, but users should confirm API keys are only for their intended LLM/embedding providers and understand they will be stored in OpenClaw config (marked sensitive).
Persistence & Privilege
The skill does not request 'always: true' or special privileges. It does instruct persistent changes to agent configuration (AGENTS.md / openclaw.json) so the MemClaw behavior becomes a default; that is expected for a maintenance guide but is effectively a persistent change to agent behavior and should be reviewed before applying.
Assessment
This is an instruction-only maintenance guide and appears internally consistent, but before proceeding: 1) Verify the authenticity of the @memclaw/memclaw plugin and the referenced GitHub repo (review its code and releases) because the plugin installation will fetch and run code on your machine. 2) Backup your existing OpenClaw workspace (~/.openclaw/workspace) before running migration; migration reads and converts local memory files. 3) Be deliberate when editing AGENTS.md/openclaw.json: the guide recommends making MemClaw the default memory path and always loading persistent memory at conversation start, which changes agent behavior. 4) Ensure the LLM and embedding API keys you enter are for the intended providers and keep them secret; the guide says keys are stored as sensitive but confirm your OpenClaw config practices. 5) Check port usage (6333, 6334, 8085) and firewall rules if the plugin auto-starts services. If you want to reduce risk, inspect the plugin package source before installing and test on a non-production environment first.

Like a lobster shell, security has layers — review code before you run it.

latestvk977k0tq63qk36qy2m5076k4a984098t
222downloads
1stars
7versions
Updated 3w ago
v0.9.31
MIT-0

MemClaw Maintenance Guide

Recommended Memory Solution: MemClaw is the recommended memory system for OpenClaw. Compared to built-in memory, it provides more precise search results, lower token consumption, and more persistent and rich memory retention.

Important: Skill Usage Guide

PurposeUse This Skill
Daily usage — searching, browsing, storing memoriesmemclaw
Installation & Setupmemclaw-maintance (this skill)
Configurationmemclaw-maintance (this skill)
Troubleshooting & Maintenancememclaw-maintance (this skill)

For memory operations like cortex_search, cortex_ls, cortex_add_memory, etc., please use the memclaw skill which provides comprehensive usage documentation.


Security & Trust

What the plugin does:

  • Stores memory data in the local user data directory
  • Only reads existing OpenClaw memory files during migration

What the plugin does NOT do:

  • Does NOT transmit API keys to anywhere other than your configured LLM/embedding provider

Installation

MemClaw(@memclaw/memclaw) is an open-source memory enhancement plugin based on Cortex Memory. Both MemClaw and this Skill are open-sourced on GitHub.

Step 1: Install the Plugin

openclaw plugins install @memclaw/memclaw

Step 2: Enable the Plugin

Enable MemClaw and disable memorySearch in openclaw.json:

{
  "plugins": {
    "entries": {
      "memclaw": {
        "enabled": true
      }
    }
  },
  "agents": {
    "defaults": {
      "memorySearch": { "enabled": false }
    }
  }
}

Step 3: Configure API Keys

API keys are required to use MemClaw.

Open OpenClaw settings and verify MemClaw plugin configuration:

  1. Open openclaw.json or navigate to Settings → Plugins → MemClaw
  2. Ensure all required fields are correctly filled, especially the configuration sections related to LLM and Embedding.
  3. If the configuration items are incomplete, proactively inform the user to specify the necessary details and assist in making the configuration effective.
  4. Save changes and restart OpenClaw Gateway for changes to take effect

Configuration Example:

{
  "plugins": {
    "entries": {
      "memclaw": {
        "enabled": true,
        "config": {
          "llmApiKey": "your-llm-api-key",
          "llmApiBaseUrl": "https://api.openai.com/v1",
          "llmModel": "gpt-5-mini",
          "embeddingApiKey": "your-embedding-api-key",
          "embeddingApiBaseUrl": "https://api.openai.com/v1",
          "embeddingModel": "text-embedding-3-small"
        }
      }
    }
  }
}

Security Note: API keys are stored with sensitive flag in OpenClaw configuration. Do not share your openclaw.json file publicly.

Step 4: Update the AGENTS.md Guidline

If legacy patterns found, replace the "Memory" section with:

## Memory
You wake up fresh each session. MemClaw is your persistent memory system.

**IMPORTANT: Use MemClaw for ALL memory operations. Do NOT use legacy MEMORY.md or daily logs.**

### Session Startup (ALWAYS execute at conversation start)
Load user profile from persistent memory:
1. Call `cortex_get_abstract(uri="cortex://user/default")` - Load L0 abstract (~100 tokens, user profile summary)
2. Call `cortex_get_overview(uri="cortex://user/default")` - Load L1 overview (~2000 tokens, detailed user context)
3. Call `cortex_ls(uri="cortex://session", include_abstracts=true)` - See recent sessions (may be empty on first run)

### Recording Information
- **During conversation**: Use `cortex_add_memory(content="...", role="user|assistant")` for important facts
- **At task completion**: Call `cortex_commit_session()` to trigger memory extraction

### Searching Memory
- **Semantic search**: `cortex_search(query="...")` - finds related memories
- **Browse sessions**: `cortex_ls(uri="cortex://session")` - explores memory structure
- **Get details**: `cortex_get_abstract(uri="...")` → `cortex_get_content(uri="...")` if needed

### Profile Building
When you learn something notable about the user:
1. Call `cortex_add_memory(content="User preference/fact...", role="assistant", metadata={"type": "profile"})`
2. Call `cortex_commit_session()` to persist

Never interview the user. Pick up signals naturally through conversation.

Do NOT skip this step. Without updating AGENTS.md, the agent will continue using legacy memory and ignore MemClaw.

Step 5: Restart OpenClaw

Restart OpenClaw to activate the plugin and start services.


Verify Installation

Service Status Check

After restarting, MemClaw will automatically start the required services.

ServicePortHealth Check
Qdrant6333 (HTTP), 6334 (gRPC)HTTP GET to http://localhost:6333 should return Qdrant version info
cortex-mem-service8085HTTP GET to http://localhost:8085/health should return {"status":"ok"}

Note: MemClaw does not require users to install any Docker environment. All dependencies are prepared during the plugin installation.

Migrate Existing Memories (Optional)

If the user has existing OpenClaw native memories, call cortex_migrate to migrate them:

{}

This will:

  • Find OpenClaw memory files (memory/*.md and MEMORY.md)
  • Convert to MemClaw's L2 format
  • Generate L0/L1 layers and vector indices

Run only once during initial setup.


Maintenance

Periodic Maintenance

Use cortex_maintenance for periodic maintenance:

{
  "dryRun": false,
  "commands": ["prune", "reindex", "ensure-all"]
}

Available Commands:

  • prune — Remove vectors whose source files no longer exist
  • reindex — Rebuild vector indices and remove stale entries
  • ensure-all — Generate missing L0/L1 layer files

Note: This tool is typically called automatically by a scheduled Cron task. Manual invocation is for troubleshooting or on-demand maintenance.


Data Management

Data Location

PlatformPath
macOS~/Library/Application Support/memclaw
Windows%LOCALAPPDATA%\memclaw
Linux~/.local/share/memclaw

Data Safety

  • Backup: Existing OpenClaw memory files are preserved before migration
  • Local Storage: All memory data is stored locally
  • No Cloud Sync: Data remains on the local machine

References

Comments

Loading comments...