← 返回 Skills 市场
sedelev

Install memex for OpenClaw

作者 sedelev · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ 安全检测通过
228
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install install-memex-claw
功能描述
Wire memex (the local-first MCP memory server) into an OpenClaw gateway — works wherever OpenClaw runs (Linux or macOS, VPS or workstation). Auto-captures ev...
使用说明 (SKILL.md)

Install memex for OpenClaw

You are inside an OpenClaw agent. The user asked you to set up memex — the local-first MCP memory server — so that:

  1. Every OpenClaw session in ~/.openclaw/agents/main/sessions/ is auto-captured into a single SQLite + FTS5 corpus.
  2. Existing past sessions are back-filled in one shot.
  3. The OpenClaw gateway gains 18 MCP tools (memex_search, memex_overview, memex_recent, memex_store_document, memex_import_file, etc.).
  4. The capture continues automatically (systemd user-service on Linux, LaunchAgent on macOS).

Where you might be running:

  • 🖥️ VPS (Linux VPS hosting OpenClaw + Hermes etc.) — typical "always-on agent" deployment
  • 💻 macOS workstation running OpenClaw alongside Claude Code / Cursor / etc.
  • 💻 Linux workstation (Pop!OS, Fedora, etc.) running OpenClaw locally
  • 🖥️ macOS VPS / Mac-mini server — also valid

All four work the same way. Platform (Linux/macOS) determines daemon type. Context (VPS vs workstation) is irrelevant to memex.

Important — interaction with the generic install-memex skill:

If the user ALREADY ran install-memex (the generic Claude Code / Cursor / Cline / Continue / Zed installer) on THIS machine, then memex is already installed and the daemon is already running. In that case, this skill only needs to merge memex into the OpenClaw gateway config — no re-install, no re-daemon. Discovery (Step 1) detects this case and skips Steps 2–4.

Conversely, if the user has Claude Code / Cursor / Telegram on this same machine and wants those captured too, recommend running install-memex separately AFTER this skill completes. This skill focuses strictly on the OpenClaw wiring.

The contract: zero questions to the user. Discovery → actions → verification. Each step prints a single line of result. The final message tells the user exactly what to do next (restart gateway, try a search).


⚠ For ClawHub reviewers, security scanners, and curious users

This skill installs memex-mvp from npm (if not already present) and wires it as an MCP server inside the OpenClaw gateway config. Every "suspicious" pattern below is intentional and documented:

Action Why Source-of-truth
npm install -g memex-mvp Install the MCP server. Open-source MIT. Skipped if already installed. npmjs.com/package/memex-mvp, source: github.com/parallelclaw/memex-mvp
memex-sync install Register the auto-capture daemon — systemd user-service on Linux, LaunchAgent on macOS. The daemon watches ~/.openclaw/agents/main/sessions/ and writes to ~/.memex/data/memex.db. Zero outbound network traffic. Skipped if daemon already running. LaunchAgent at ~/Library/LaunchAgents/com.parallelclaw.memex.sync.plist or systemd unit at ~/.config/systemd/user/memex-sync.service — both human-readable
loginctl enable-linger $USER (Linux only) Without linger, user-systemd dies on SSH logout — daemon would stop between SSH sessions on a VPS. Skill tries this; if sudo needed, prints command and continues. Standard systemd-user practice
Edit OpenClaw config (~/.openclaw/*.json or wherever the gateway stores its MCP-server list) Add a single memex entry under mcpServers. Merge, never overwrite other entries. The agent finds its own config via OpenClaw conventions
memex-sync scan One-shot back-fill of past OpenClaw sessions. Walks the sessions dir, parses each \x3Cuuid>.jsonl, writes to memex.db with source='openclaw'. Filters internal-state files (.checkpoint., .trajectory., .reset., trajectory-path*, usage-cost-cache). lib/ingest-file.js in the source — open-source

Hard guarantees:

  • Agent shows every command before running it
  • sudo is NEVER invoked by the skill (linger fallback prints the manual command for the user instead)
  • OpenClaw config is merged, never overwritten
  • memex at runtime emits zero outbound network traffic — local-first by design
  • If memex is already installed (e.g. via the generic install-memex skill), this skill skips re-install and only wires OpenClaw — no surprise reinstalls

Before this skill can be installed (one-time OpenClaw bootstrap)

If the user runs openclaw skill install install-memex-claw and gets back "plugin not allowed" / "permission denied" / "skill plugin disabled" — the OpenClaw gateway's permission model is blocking arbitrary skill execution by default. This is OpenClaw's safety guard, not specific to memex.

The exact permission name varies between OpenClaw versions — common ones:

  • plugins.allow: ["skill", …] in ~/.openclaw/openclaw.json
  • A separate skills.enabled: true setting
  • A capability called skill-install or skill-runtime

Check your OpenClaw docs for the exact permission name in your version, set it once, restart the gateway, and retry. After this bootstrap is done once, every future ClawHub skill works out of the box.

Once this skill is loaded and you're reading the rest of this file: continue to "Prerequisite" below.

Prerequisite

You are running INSIDE an OpenClaw agent that can execute shell commands. If you're not OpenClaw, stop: this is the wrong skill — use install-memex instead.

Step 1 — Discovery (run ALL checks first, then decide)

Run each as a separate shell command, capture the output. Don't act on anything until all checks have answered.

# 1. Are we inside OpenClaw?
which openclaw 2>/dev/null || find / -maxdepth 4 -name "openclaw" -type d 2>/dev/null | head -3
# 2. Platform — Linux or Darwin (macOS)
uname -s
# 3. Node version (need ≥ 20)
node --version
# 4. Existing memex install?
which memex && memex --version || echo "NO_MEMEX"
# 5. Existing memex daemon running?
memex-sync status 2>/dev/null | grep -E "process:" || echo "NO_DAEMON"
# 6. Existing OpenClaw sessions?
ls -1 ~/.openclaw/agents/main/sessions/ 2>/dev/null | grep -E '^[0-9a-f-]+\.jsonl$' | wc -l
# 7. On Linux: systemd user-instance available?
[ "$(uname -s)" = "Linux" ] && systemctl --user --version 2>/dev/null | head -1 || echo "macOS or no-systemd"
# 8. OpenClaw gateway config location? (varies — try common paths)
ls -la ~/.openclaw/openclaw.json ~/.openclaw/config.json ~/.openclaw/mcp.json 2>/dev/null

Branch on results:

Discovery state Action
OpenClaw not found Stop. Tell user: "This skill is for OpenClaw agents. For Claude Code / Cursor / Cline / Continue / Zed, use install-memex instead."
Node \x3C 20 or missing Stop. Tell user how to install Node (nvm.sh or distro package manager). Don't install Node yourself.
memex ≥ 0.11.5 + daemon running Skip Steps 2–4. Go directly to Step 5 (MCP wiring). Tell user: "memex already installed and running — just need to wire it into OpenClaw."
memex installed but \x3C 0.11.5 Upgrade in-place: npm install -g memex-mvp@latest. Then continue (daemon will auto-restart if running). Critical for self-hosted OpenClaw users — older versions miss .reset.* session archives where the long-term Telegram chat lives (~140 MB of history).
memex installed, daemon not running Run memex-sync install to register/start the daemon. Skip the npm install.
memex not installed Full path: Step 2 (install) → Step 3 (daemon) → Step 4 (back-fill) → Step 5 (wire).
No existing sessions Still proceed — daemon will capture new sessions going forward. Mention this.
Linux without systemd (e.g. minimal container) Step 3 fallback to nohup memex-sync &. Tell user the auto-restart limitation.
No config file found at common paths Ask the user (ONE question allowed): "Where does your OpenClaw gateway look for MCP-server config?" — proceed with their answer.

Report each result back to the user as facts, not questions:

"✓ OpenClaw detected" "✓ Linux + systemd 255 — will use user-systemd for daemon" "✓ Node 22.10.0 — ok" "→ memex not installed — installing 0.11.5" "✓ Found 126 OpenClaw sessions ready to back-fill" "→ Config at ~/.openclaw/openclaw.json"

Step 2 — Install memex (skip if already at ≥ 0.11.5)

npm install -g memex-mvp@latest

If EACCES (no permission to write to npm global prefix), apply the standard fix — never use sudo:

mkdir -p ~/.npm-global
npm config set prefix ~/.npm-global
echo 'export PATH=$HOME/.npm-global/bin:$PATH' >> ~/.zshrc 2>/dev/null
echo 'export PATH=$HOME/.npm-global/bin:$PATH' >> ~/.bashrc 2>/dev/null
export PATH=$HOME/.npm-global/bin:$PATH
npm install -g memex-mvp@latest

After install:

memex --version    # must print 0.11.5 or later

Step 3 — Install the auto-capture daemon (skip if already running)

memex-sync install

Platform-specific behavior (handled automatically by memex-sync v0.11.5+):

Platform What memex-sync install does
macOS (uname -s = Darwin) Writes ~/Library/LaunchAgents/com.parallelclaw.memex.sync.plist, runs launchctl load — daemon auto-starts on every login.
Linux + systemd-user Writes ~/.config/systemd/user/memex-sync.service, runs systemctl --user daemon-reload && enable && start. Tries loginctl enable-linger $USER so daemon survives SSH logout.
Linux without systemd (container) memex-sync install exits with "systemctl --user not available". Fall back: nohup memex-sync > /tmp/memex.log 2>&1 & — works but won't auto-restart on reboot.

If linger needs sudo, the install output prints the manual command. Tell the user that line verbatim — don't try to run sudo yourself.

Step 4 — Back-fill existing sessions

memex-sync scan

memex-sync scan walks SOURCES (Claude Code, Cowork, OpenClaw added in v0.10.14, …) and emits any unindexed sessions. For OpenClaw it processes every \x3Cuuid>.jsonl in ~/.openclaw/agents/main/sessions/ PLUS .checkpoint.* snapshots PLUS .reset.* archives (v0.11.5+), filters internal-state noise, and writes to memex.db.

Expected output:

=== Claude Code + Cowork ===
- skipping claude-code: directory not found at /home/user/.claude/projects   (on VPS without Claude Code)
- skipping claude-cowork: directory not found at ...                          (on Linux — Cowork is macOS-only)
scanning openclaw: /home/user/.openclaw/agents/main/sessions
+ openclaw-abc12345.jsonl ← 23 msgs from openclaw (with ai-title)
+ openclaw-def67890.jsonl ← 41 msgs from openclaw
…
scanned 126 files · 1255 messages emitted

If the daemon was already running (Step 3 skipped), the back-fill via scan is still useful — it catches anything the daemon's chokidar might have raced on startup.

Step 4b — Channel-aware re-import (memex ≥ 0.11.5, recommended for ALL OpenClaw users)

v0.11.5 is the first version where OpenClaw ingestion can be trusted end-to-end on both self-hosted OpenClaw (the dominant case — separate \x3Cuuid>.jsonl per session) and Moonshot Kimi-Claw (the merged-file variant). Older versions had architectural blind spots. After upgrading from anything below 0.11.5, run a channel-aware re-import:

memex-sync backfill-channels --yes

This deletes existing source = 'openclaw' rows and re-imports each archived file with the v0.11.5 pipeline. Expected banner:

Backfill: 110 archived OpenClaw file(s) (57 main + 38 checkpoint + 15 reset)
  mode:          auto -> detected: self-hosted
  current state: 1481 messages in 8 conversation(s)
  38 checkpoint file(s) will be SKIPPED (snapshots — avoid 30-40× duplication).
  15 reset file(s) will be ingested (full archives of pre-reset session history).

Per-channel breakdown at the end:

  channels:
    • telegram: 7338 msgs
    • kimi-web:  102 msgs

Idempotent — re-running is safe (UNIQUE(source, conv, msg_id) dedups).

Override mode if auto-detection picks the wrong one:

memex-sync backfill-channels --yes --mode kimi-claw     # force Moonshot mode
memex-sync backfill-channels --yes --mode self-hosted   # force self-hosted mode

Auto-detection rarely needs override — it inspects sessions.json and falls back to scanning file contents for channel markers (Kimi-Claw merged files contain BOTH Kimi and Telegram markers; self-hosted has one channel per file).

What you get out of v0.11.5 vs older

Bug class Fixed in Real-world impact
Channel-aware routing (TG / Kimi-web / system in own conv buckets) v0.11.0 Telegram messages from one sender now share one thread across all OpenClaw sessions
Kimi-web header strips correctly without optional [Time:] block v0.11.1 Clean user-text in storage for short messages
Tool-result records (Bash/Read output, role='user' no marker) inherit parent conv v0.11.1 Assistant reasoning chain stays glued to the conversation it answers
Two-mode routing: kimi-claw ingests checkpoints, self-hosted skips them v0.11.2 Self-hosted: no more 30-40× row duplication from checkpoint snapshots
Auto-discovery of custom channels from sessions.json (discord/matrix/web-ui) v0.11.2 Self-hosters with non-standard channels work out of the box
--mode flag for manual override v0.11.2 Power-user escape hatch when auto-detection fails
Content-based session-type detection (when sessions.json doesn't have entry) v0.11.3 After main-session rotation, archived files are still correctly classified
.reset.* files ingested (full pre-reset session archives) v0.11.4 → v0.11.5 Self-hosted users get back their full long-term history — typically 3-7K messages that were hidden in .reset.* files (~140 MB) before memex saw them
shouldIngest accepts reset files whose names end in .Z (not .jsonl) v0.11.5 Made the v0.11.4 reset-pickup actually fire — real reset format is \x3Cuuid>.jsonl.reset.\x3CISO-timestamp>, doesn't end in .jsonl
ENOENT crash in memex-sync scan on fresh boxes (~/.memex/data/ missing) v0.11.2 Scan no longer crashes mid-run on a clean install
Ghost conversations from subagent system-init files (msg_count=0, [Subagent Context] titles) v0.11.2 Conv list shows real conversations only

Step 5 — Wire memex into the OpenClaw gateway config

The most fragile step. Get it exactly right:

# 1. Find the config (Step 1 likely already located it)
ls -la ~/.openclaw/openclaw.json ~/.openclaw/config.json ~/.openclaw/mcp.json 2>/dev/null

# 2. Get the absolute path to memex
which memex

You (OpenClaw agent) know your own gateway config structure. Read it, merge in the memex entry, write atomically:

{
  // … existing config preserved …
  "mcpServers": {
    // … other MCP servers preserved …
    "memex": {
      "command": "\x3CABSOLUTE_PATH_FROM_WHICH_MEMEX>"
    }
  }
}

Three critical rules:

  1. Absolute path from which memex (e.g. /home/user/.npm-global/bin/memex or /usr/local/bin/memex). NEVER just "memex" — MCP-stdio doesn't inherit shell PATH.
  2. Merge, don't overwrite. Read the JSON, set .mcpServers.memex, write the whole thing back. Other entries stay untouched.
  3. Atomic write: write to \x3Cpath>.tmp, then mv to \x3Cpath>. If the gateway is mid-read, an atomic rename is safe; a partial write is not.

Step 6 — Verify (what you CAN check before gateway restart)

After install + scan, only a few things are verifiable. The full data ingestion happens when the OpenClaw gateway restarts and spawns the memex MCP server — that's when staged inbox files get processed into memex.db. Until then, memex overview may show zero messages even though the back-fill worked.

So Step 6 checks only what's deterministically true RIGHT NOW:

# 1. Daemon is up?
memex-sync status

# 2. Are inbox files staged for the MCP server to process?
ls ~/.memex/inbox/ | wc -l

Expected output:

memex-sync status
  daemon:    installed (systemd user-service · …)
  process:   running (PID 12345)
  watching:  1 openclaw main session(s) · 6 entries total
  last activity: just now

$ ls ~/.memex/inbox/ | wc -l
6     # = number of OpenClaw sessions staged for ingestion

Don't try memex overview or memex search until AFTER the gateway is restarted (Step 7). Why: the inbox→DB import happens inside the memex MCP server, which gets spawned by the OpenClaw gateway on first MCP request after restart. Running queries before that yields "memex.db not found" or "0 messages" — confusing but expected.

Diagnostic flowchart if either check fails:

  • memex-sync status shows "process: not running" → check journalctl --user -u memex-sync -n 30 (Linux) or tail ~/.memex/data/launchd.err.log (macOS). On Linux without linger this is the most common cause.
  • ls inbox/ is empty after scan → memex-sync scan couldn't find anything. Double-check ls ~/.openclaw/agents/main/sessions/ | grep -v -E '\.(checkpoint|trajectory|reset)\.' — if THAT is empty too, the user has no OpenClaw sessions yet (no problem, daemon will capture new ones going forward).

Step 7 — Final message to the user

Adjust the numbers; print verbatim otherwise:

✓ Node 22 — ok
✓ Linux + systemd 255 — daemon as user-service (linger enabled)
✓ memex 0.11.5 installed
✓ Daemon running (PID 12345)
✓ Back-filled 126 sessions → 1255 messages
✓ MCP wired into ~/.openclaw/openclaw.json

NEXT STEP (you must do this — I can't):
   Restart the OpenClaw gateway so it picks up the memex MCP tools.
     openclaw gateway restart      # or your gateway-restart command

   After restart, ask me to search for something to test the wiring:
     "поищи в мемексе про \x3Ctopic>"

memex is now capturing every new OpenClaw session you have — searchable
in milliseconds, verbatim (no AI compression). To browse the corpus in
a browser: `memex web --open`.

Bonus suggestion (mention only if relevant):

"If you ALSO use Claude Code / Cursor / Cline on this same machine, OR have Telegram chats you want indexed, run install-memex (the generic skill) separately to capture those too. memex shares the same database across all sources."

Step 8 — Verify (after user restarts the gateway)

After the user restarts the OpenClaw gateway and the memex MCP server has processed its first inbox files, these commands will return real data — ask the user to run them (or run them yourself if they reconnect):

# Real corpus stats — should now show the back-filled OpenClaw sessions
memex overview

# Smoke search — should find content from a recent session
memex search "\x3Crecent topic>"

Expected memex overview:

memex corpus snapshot

Total: 1255 messages in 6 conversations
By source:
  • openclaw       1255 msgs in 6 conversations (last: just now)

If memex overview still shows 0 messages 30 seconds after gateway restart:

  • Check that the gateway actually launched memex MCP: ps aux | grep memex should show a memex process spawned by openclaw
  • Check the OpenClaw config's mcpServers.memex.command IS the absolute path from which memex (no shell PATH inheritance over MCP stdio)
  • As a last resort, manually import each staged inbox file: for f in ~/.memex/inbox/openclaw-*.jsonl; do memex import "$f"; done

What this skill explicitly does NOT do

  • ❌ Touch other MCP servers in the OpenClaw config — merges only
  • ❌ Install Node (tells user how)
  • ❌ Run sudo — prints the sudo command if linger needs it
  • ❌ Configure Telegram capture (use the generic install-memex skill — it handles Telegram Desktop integration)
  • ❌ Configure sync between memex on different machines (separate roadmap)
  • ❌ Change OpenClaw's session-storage path

Edge cases

Symptom Cause Fix
npm install EACCES npm global prefix not writable Apply ~/.npm-global prefix fix in Step 2
memex-sync install says "systemctl --user not available" Container w/o systemd-user Use nohup memex-sync & fallback (Step 3)
memex-sync status "process: not running" after install (Linux) linger not enabled, daemon died on SSH disconnect sudo loginctl enable-linger $USER
memex overview empty after scan No matching session files (filtered as noise, or wrong dir) ls ~/.openclaw/agents/main/sessions/ | grep -v -E '\.(checkpoint|trajectory|reset)\.' to confirm dialogue files exist
Existing memex \x3C 0.10.14 Pre-OpenClaw-support version npm install -g memex-mvp@latest
Gateway config path not at common locations Custom OpenClaw setup ASK the user (one question allowed): "Where is your OpenClaw gateway's MCP-server config?"
Two daemons (e.g. macOS LaunchAgent + leftover nohup) Multiple memex-sync install runs or manual processes memex-sync uninstall then memex-sync install — re-establishes single canonical instance
User runs this skill AND install-memex on same machine Both wire memex MCP into different agents' configs (Claude Code + OpenClaw) No conflict — shared ~/.memex/data/memex.db is the corpus, each agent has its own MCP config

Safety rules — read before starting

  • If node or npm aren't installed, stop and tell the user how to install Node. Don't install Node yourself.
  • Never run rm, sudo, or anything destructive without explicit user "yes" in chat. The skill never runs sudo — only prints commands.
  • Show every command before running it. If the user says "no" / "stop", halt and explain.
  • If a step fails, do NOT auto-retry or auto-fix — report what failed and ask how to proceed.
  • When editing the OpenClaw config, always preserve existing MCP servers. If you can't merge cleanly, abort and tell the user exactly what couldn't be parsed.
  • Stay focused on memex+OpenClaw wiring. If sidetracked, return to this skill and say: "OK, back to memex setup. We were at step N — should I continue?"

Begin

Start Step 1 (Discovery) now. After all checks, branch per the table in Step 1 and proceed without asking permission — unless a showstopper fires (no OpenClaw, no Node, or unparseable config).

安全使用建议
Treat this as an inconclusive low-confidence review: installation should wait for a successful artifact inspection of metadata.json and the artifact directory.
能力评估
Purpose & Capability
Artifact inspection was attempted but local command execution failed before metadata.json or artifact contents could be read, so no purpose-to-capability mismatch was evidenced.
Instruction Scope
No SKILL.md or instruction artifacts were available for review due to the workspace inspection failure.
Install Mechanism
No install specs or dependency artifacts could be read, so no install risk was evidenced.
Credentials
No file, network, credential, or runtime behavior could be verified from artifacts.
Persistence & Privilege
No artifact-backed persistence or privilege behavior was identified.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install install-memex-claw
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /install-memex-claw 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
v1.0.3 — pairs with memex-mvp v0.11.5 (the first release where OpenClaw ingestion can be trusted end-to-end on BOTH self-hosted OpenClaw and Moonshot Kimi-Claw). Bumps version checks throughout (≥ 0.11.5 now required, was ≥ 0.10.14). Rewrites Step 4b around the matured v0.11.x channel-aware pipeline: documents two-mode routing (auto-detected kimi-claw vs self-hosted), the --mode override flag, the new backfill banner with separate counts for main / checkpoint / reset files. Adds a 'What you get out of v0.11.5 vs older' table summarising every fix between v0.11.0 and v0.11.5 so users upgrading from any prior version know what changes. Key wins for self-hosted OpenClaw (the dominant case — ~90% of installs per maintainer feedback): (a) checkpoint snapshots are auto-skipped to avoid 30-40x row duplication; (b) .reset.* full session archives are now picked up (v0.11.4 added it, v0.11.5 made shouldIngest actually allow them through — the real reset filename ends in '.833Z' not '.jsonl' so v0.11.4's logic was dead code); (c) content-based session-type detection survives main-session rotation when sessions.json has dropped the entry. Key wins for Kimi-Claw users: (a) Kimi-web header strips correctly without optional [Time:] block; (b) tool-results inherit the parent conversation instead of orphaning into a fallback bucket. Adds documentation of .reset.* archive ingestion in Step 4 — self-hosted users typically gain 3-7K messages of long-term Telegram history (~140 MB) that were invisible to memex before. No behavior change in install / daemon / MCP wiring — Discovery + Steps 1-3 + 5-8 unchanged. v1.0.2 — fixes two friction points: Step 6 (Verify) moved DB-content checks to new Step 8 (post-restart) since inbox isn't drained until first MCP server start. plugins.allow troubleshooting generalised. Pairs with memex-mvp v0.10.15. v1.0.1 — adds 'Before this skill can be installed' bootstrap section documenting the one-time plugins.allow edit on fresh OpenClaw VPS. v1.0 — first release. Wires memex into an OpenClaw gateway WHEREVER OpenClaw runs: Linux VPS, Linux workstation, macOS workstation, macOS server — all four equally first-class. Discovery checks OpenClaw / Node ≥ 20 / existing memex install / existing daemon / sessions count / systemd-user (Linux only) / gateway config location. Branches intelligently: if memex is already installed (e.g. via the generic install-memex skill for Claude Code), skips install+daemon and just merges memex into the OpenClaw gateway's MCP-server config. Otherwise full platform-aware install: Linux → ~/.config/systemd/user/memex-sync.service with loginctl enable-linger attempt; macOS → ~/Library/LaunchAgents/com.parallelclaw.memex.sync.plist. EACCES handled via ~/.npm-global prefix fix (no sudo). MCP wiring uses absolute path from `which memex` (MCP-stdio doesn't inherit shell PATH), merges into the OpenClaw config without overwriting other MCP servers. Verifies end-to-end before declaring done. Zero questions to the user — discovery → actions → verification. Adds 18 MCP tools (memex_search, memex_recent, memex_overview, memex_store_document, memex_import_file, etc.) to OpenClaw after gateway restart. Pairs nicely with install-memex (generic skill) when the same machine ALSO runs Claude Code / Cursor / Telegram capture — both skills share ~/.memex/data/memex.db so the corpus is unified. Memex runtime emits zero outbound network traffic.
v1.0.2
v1.0.2 — fixes two real friction points found by a tester: (1) Step 6 (Verify) used to instruct the agent to run `memex overview` and `memex search` immediately after install — but the staged inbox files only get processed into memex.db when the MCP server first runs, which is AFTER the gateway restart. So verify-before-restart always confused tester ('memex.db not found' or '0 messages'). Step 6 now checks only what's deterministically available pre-restart (daemon status + inbox file count). Full data verification moved to new Step 8, run after the user restarts the gateway. (2) The plugins.allow bootstrap troubleshooting in v1.0.1 was version-specific — at least one OpenClaw build doesn't use 'skill' as the permission name. Generalised the troubleshooting to 'check your OpenClaw docs for the exact permission name' without prescribing one. Pairs with memex-mvp v0.10.15 which pre-creates memex.db (with full schema) inside `memex-sync install` so post-install CLI commands no longer error with 'DB not found' — they correctly report 'no data yet' until the MCP server processes the inbox after gateway restart. v1.0.1 — adds a 'Before this skill can be installed' bootstrap section at the top of SKILL.md. On a fresh OpenClaw VPS, the default config doesn't allow the 'skill' plugin in plugins.allow, so 'openclaw skill install' returns 'plugin not allowed'. We can't fix this inside our skill (chicken-and-egg — the skill needs to be installable to run), but we document the one-time fix (edit ~/.openclaw/openclaw.json plugins.allow, restart gateway) so users hitting it for the first time see the right next step. No behavior change inside the skill itself — Discovery + install + back-fill + MCP wiring all unchanged. v1.0 — first release. Wires memex into an OpenClaw gateway WHEREVER OpenClaw runs: Linux VPS, Linux workstation, macOS workstation, macOS server — all four equally first-class. Discovery checks OpenClaw / Node ≥ 20 / existing memex install / existing daemon / sessions count / systemd-user (Linux only) / gateway config location. Branches intelligently: if memex is already installed (e.g. via the generic install-memex skill on the same machine for Claude Code), skips install+daemon and just merges memex into the OpenClaw gateway's MCP-server config. Otherwise full platform-aware install: Linux → ~/.config/systemd/user/memex-sync.service with loginctl enable-linger attempt; macOS → ~/Library/LaunchAgents/com.parallelclaw.memex.sync.plist. EACCES handled via ~/.npm-global prefix fix (no sudo). Back-fills past OpenClaw sessions via memex-sync scan, filtering internal-state files (.checkpoint., .trajectory., .reset., trajectory-path*, usage-cost-cache). MCP wiring uses absolute path from `which memex` (MCP-stdio doesn't inherit shell PATH), merges into the OpenClaw config without overwriting other MCP servers. Verifies end-to-end with memex-sync status + memex overview + a smoke memex search before declaring done. Zero questions to the user — discovery → actions → verification. Adds 18 MCP tools (memex_search, memex_recent, memex_overview, memex_store_document, memex_import_file, etc.) to OpenClaw after gateway restart. Pairs nicely with install-memex (generic skill) when the same machine ALSO runs Claude Code / Cursor / Telegram capture — both skills share ~/.memex/data/memex.db so the corpus is unified. Memex runtime emits zero outbound network traffic. Requires memex-mvp v0.10.14+ which added native Linux + systemd-user + OpenClaw source support.
v1.0.1
v1.0.1 — adds a 'Before this skill can be installed' bootstrap section at the top of SKILL.md. On a fresh OpenClaw VPS, the default config doesn't allow the 'skill' plugin in plugins.allow, so 'openclaw skill install' returns 'plugin not allowed'. We can't fix this inside our skill (chicken-and-egg — the skill needs to be installable to run), but we document the one-time fix (edit ~/.openclaw/openclaw.json plugins.allow, restart gateway) so users hitting it for the first time see the right next step. No behavior change inside the skill itself — Discovery + install + back-fill + MCP wiring all unchanged. v1.0 — first release. Wires memex into an OpenClaw gateway WHEREVER OpenClaw runs: Linux VPS, Linux workstation, macOS workstation, macOS server — all four equally first-class. Discovery checks OpenClaw / Node ≥ 20 / existing memex install / existing daemon / sessions count / systemd-user (Linux only) / gateway config location. Branches intelligently: if memex is already installed (e.g. via the generic install-memex skill on the same machine for Claude Code), skips install+daemon and just merges memex into the OpenClaw gateway's MCP-server config. Otherwise full platform-aware install: Linux → ~/.config/systemd/user/memex-sync.service with loginctl enable-linger attempt; macOS → ~/Library/LaunchAgents/com.parallelclaw.memex.sync.plist. EACCES handled via ~/.npm-global prefix fix (no sudo). Back-fills past OpenClaw sessions via memex-sync scan, filtering internal-state files (.checkpoint., .trajectory., .reset., trajectory-path*, usage-cost-cache). MCP wiring uses absolute path from `which memex` (MCP-stdio doesn't inherit shell PATH), merges into the OpenClaw config without overwriting other MCP servers. Verifies end-to-end with memex-sync status + memex overview + a smoke memex search before declaring done. Zero questions to the user — discovery → actions → verification. Adds 18 MCP tools (memex_search, memex_recent, memex_overview, memex_store_document, memex_import_file, etc.) to OpenClaw after gateway restart. Pairs nicely with install-memex (generic skill) when the same machine ALSO runs Claude Code / Cursor / Telegram capture — both skills share ~/.memex/data/memex.db so the corpus is unified. Memex runtime emits zero outbound network traffic. Requires memex-mvp v0.10.14+ which added native Linux + systemd-user + OpenClaw source support.
v1.0.0
v1.0.0 — first release. Wires memex into an OpenClaw gateway WHEREVER OpenClaw runs: Linux VPS, Linux workstation, macOS workstation, macOS server — all four equally first-class. Discovery checks OpenClaw / Node ≥ 20 / existing memex install / existing daemon / sessions count / systemd-user (Linux only) / gateway config location. Branches intelligently: if memex is already installed (e.g. via the generic install-memex skill on the same machine for Claude Code), skips install+daemon and just merges memex into the OpenClaw gateway's MCP-server config. Otherwise full platform-aware install: Linux → ~/.config/systemd/user/memex-sync.service with loginctl enable-linger attempt; macOS → ~/Library/LaunchAgents/com.parallelclaw.memex.sync.plist. EACCES handled via ~/.npm-global prefix fix (no sudo). Back-fills past OpenClaw sessions via memex-sync scan, filtering internal-state files (.checkpoint., .trajectory., .reset., trajectory-path*, usage-cost-cache). MCP wiring uses absolute path from `which memex` (MCP-stdio doesn't inherit shell PATH), merges into the OpenClaw config without overwriting other MCP servers. Verifies end-to-end with memex-sync status + memex overview + a smoke memex search before declaring done. Zero questions to the user — discovery → actions → verification. Adds 18 MCP tools (memex_search, memex_recent, memex_overview, memex_store_document, memex_import_file, etc.) to OpenClaw after gateway restart. Pairs nicely with install-memex (generic skill) when the same machine ALSO runs Claude Code / Cursor / Telegram capture — both skills share ~/.memex/data/memex.db so the corpus is unified. Memex runtime emits zero outbound network traffic. Requires memex-mvp v0.10.14+ which added native Linux + systemd-user + OpenClaw source support.
元数据
Slug install-memex-claw
版本 1.0.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

Install memex for OpenClaw 是什么?

Wire memex (the local-first MCP memory server) into an OpenClaw gateway — works wherever OpenClaw runs (Linux or macOS, VPS or workstation). Auto-captures ev... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 228 次。

如何安装 Install memex for OpenClaw?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install install-memex-claw」即可一键安装,无需额外配置。

Install memex for OpenClaw 是免费的吗?

是的,Install memex for OpenClaw 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Install memex for OpenClaw 支持哪些平台?

Install memex for OpenClaw 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Install memex for OpenClaw?

由 sedelev(@sedelev)开发并维护,当前版本 v1.0.3。

💬 留言讨论