Install Powermem Memory

v0.3.0

Step-by-step guide to install and configure the PowerMem long-term memory plugin (full path, options, troubleshooting). After setup, the plugin auto-captures...

0· 133·0 current·0 all-time
bypowermem@teingi·duplicate of @teingi/install-powermem-memory

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for teingi/install-powermem-memory-full.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Install Powermem Memory" (teingi/install-powermem-memory-full) from ClawHub.
Skill page: https://clawhub.ai/teingi/install-powermem-memory-full
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 install-powermem-memory-full

ClawHub CLI

Package manager switcher

npx clawhub@latest install install-powermem-memory-full
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
The SKILL.md describes installing and configuring the memory-powermem plugin and PowerMem (pip package or server). The actions described (checking python/openclaw, pip installing powermem, configuring OpenClaw plugin entries) match the stated purpose. Minor inconsistency: the registry metadata declares no required env vars/credentials, but the instructions explicitly rely on OpenClaw 'agents.defaults.model' and provider API keys being configured (these are necessary for the default 'useOpenClawModel' flow).
Instruction Scope
The runtime instructions tell the agent/user to run local commands (python3 checks, venv creation, pip install, openclaw CLI config, optional powermem-server and curl health checks). They also document auto-capture/auto-recall behavior (the plugin will send conversation content to PowerMem). This scope is appropriate for an installer, but it explicitly instructs the agent to modify OpenClaw config and to possibly capture conversation text—this has privacy implications and should be reviewed by the user. The SKILL.md also references an install.sh (GitHub) which, if executed blindly, could run arbitrary commands.
Install Mechanism
There is no baked install spec in the skill bundle — installation is manual via standard tools: 'pip install powermem', optional 'powermem-server', and installing the OpenClaw plugin or a referenced install.sh on GitHub. These are standard package sources (PyPI, GitHub). No obscure download URLs or embedded archives are present in the skill bundle, but users should still inspect any remote install.sh before running it.
Credentials
The metadata declares no required environment variables, but the instructions rely on OpenClaw-provided model and provider credentials (LLM + embedding keys) when 'useOpenClawModel: true' (the default). That is proportionate to the plugin's function (it needs embeddings/LLM to run intelligent extraction), but the skill does not explicitly declare those credentials in the registry metadata—users should be aware that provider keys stored in OpenClaw will be used and that PowerMem may see injected LLM/embedding environment values when invoked.
Persistence & Privilege
The skill does not request 'always: true' and is user-invocable. Installing the plugin modifies OpenClaw's configuration (enabling a plugin slot) and results in persistent behavior (autoCapture/autoRecall enabled by default). That persistence is consistent with the plugin's purpose but increases the impact of stored memories; consider disabling autoCapture/autoRecall or reviewing retention settings if you don't want automatic long-term storage.
Assessment
This guide appears to do what it claims (install and configure PowerMem for OpenClaw), but take these precautions before proceeding: - Verify sources: confirm the powermem package on PyPI and inspect the upstream repositories referenced in the docs (oceanbase/powermem and ob-labs/memory-powermem). Don't install packages or run scripts from unknown sources without review. - Never run curl | sh blindly: if you use the referenced install.sh, open it in a text editor and review what it will do (file writes, downloads, system changes). Prefer manual steps you understand. - Use a virtualenv: install powermem inside an isolated venv to limit scope and avoid polluting system Python. - Prefer local SQLite for personal use: the default CLI mode stores data locally under the OpenClaw stateDir; avoid HTTP/server mode unless you control the server and trust its network exposure. - Inspect any created powermem.env: if the installer writes ~/.openclaw/powermem/powermem.env, review its contents and credentials before leaving it on disk. - Understand auto-capture: the plugin can automatically store conversation highlights. If you have privacy concerns, set autoCapture/autoRecall to false or tighten recall/retention settings. - Protect provider keys: the plugin may use OpenClaw-injected LLM/embedding credentials; ensure those credentials are stored securely in OpenClaw and audit which services the plugin will call. If you want a higher-assurance review, provide the exact install.sh referenced or the memory-powermem plugin source so those artifacts can be inspected for unexpected behaviors.

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

latestvk976ma5q9fgxta07g10gtrrfzn83gbnm
133downloads
0stars
1versions
Updated 1mo ago
v0.3.0
MIT-0

PowerMem Memory Guide

This skill folder includes supplementary docs:

  • powermem-intro.md — What PowerMem is, features, vs file-based memory.
  • config-reference.md — Config keys, state dir, commands.

How It Works

  • Auto-Capture: After a conversation, the plugin sends valuable user/assistant text to PowerMem (optional infer / intelligent extraction).
  • Auto-Recall: Before each turn, it searches memories and can inject a <relevant-memories> block into context.

When User Asks to Install

Recommended order (TO C): (1) OpenClaw installed and default model + provider auth configured. (2) Python 3.10+ verified (python3 --version) before venv / pip install. (3) pip install powermem and pmem available to the gateway (PATH or pmemPath). (4) Install the memory-powermem plugin. No powermem.env is required for the default path.

The curl install.sh deploys the plugin and OpenClaw entries; with -y it may still create ~/.openclaw/powermem/powermem.env as an optional template—it does not run pip install powermem. That file is not required if the user relies on OpenClaw-injected LLM + default SQLite.

  1. Check OpenClaw
    openclaw --version. If missing: npm install -g openclaw, openclaw onboard.
    Ensure agents.defaults.model is set (e.g. openai/gpt-4o-mini) and the corresponding provider / API key works for normal chat—the plugin reuses that for PowerMem when useOpenClawModel is true (default).

  2. Check Python (required before venv / pip)
    PowerMem needs Python 3.10 or newer. Run python3 --version first; the minor version must be ≥ 10 (e.g. 3.10.x, 3.12.x). Optional strict check:

    python3 -c "import sys; assert sys.version_info >= (3, 10), 'Need Python 3.10+'; print(sys.version.split()[0], 'OK')"
    

    If it fails: upgrade Python or use a specific binary (e.g. python3.12) for all commands below instead of python3.

  3. Install PowerMem (CLI — default)

    • Venv recommended: e.g. python3 -m venv ~/.openclaw/powermem/.venv && source ~/.openclaw/powermem/.venv/bin/activate.
    • pip install powermem.
    • Defaults: Plugin injects SQLite at <OpenClaw stateDir>/powermem/data/powermem.db and LLM + embedding env vars derived from OpenClaw. Typical stateDir is ~/.openclaw unless the user uses another instance (OPENCLAW_STATE_DIR, --workdir).
    • Optional envFile: Path to a PowerMem .env for extra tuning. If the file exists, pmem loads it; OpenClaw-derived vars still override the same keys when useOpenClawModel is true.
    • useOpenClawModel: false: Disables injection; user must supply a complete PowerMem config via .env and/or environment variables.
    • Verify: pmem --version. If the gateway does not inherit the venv, set pmemPath to the absolute path of pmem.
  4. HTTP path (enterprise / shared server)

    • Same Python 3.10+ requirement as CLI; then pip install powermem, .env in server working directory, powermem-server --host 0.0.0.0 --port 8000.
    • Check: curl -s http://localhost:8000/api/v1/system/health.
  5. Install the plugin
    openclaw plugins install /path/to/memory-powermem, or install.sh from INSTALL.md.

  6. Configure OpenClaw

    CLI — minimal (recommended, matches plugin defaults):
    Do not set envFile unless you need a file. Example:

    openclaw config set plugins.enabled true
    openclaw config set plugins.slots.memory memory-powermem
    openclaw config set plugins.entries.memory-powermem.config.mode cli
    openclaw config set plugins.entries.memory-powermem.config.pmemPath pmem
    openclaw config set plugins.entries.memory-powermem.config.useOpenClawModel true --json
    openclaw config set plugins.entries.memory-powermem.config.autoCapture true --json
    openclaw config set plugins.entries.memory-powermem.config.autoRecall true --json
    openclaw config set plugins.entries.memory-powermem.config.inferOnAdd true --json
    

    CLI — optional .env override file:

    openclaw config set plugins.entries.memory-powermem.config.envFile "$HOME/.openclaw/powermem/powermem.env"
    

    (Only matters if that path exists; OpenClaw can still override LLM keys when useOpenClawModel is true.)

    HTTP:

    openclaw config set plugins.entries.memory-powermem.config.mode http
    openclaw config set plugins.entries.memory-powermem.config.baseUrl http://localhost:8000
    

    Optional: apiKey if the server uses auth.

  7. Verify
    Restart gateway, then in another terminal:

    openclaw plugins list
    

    Confirm memory-powermem is listed and its status is loaded. If it is missing or not loaded, fix install/slot config and restart the gateway before running LTM checks.

    openclaw ltm health
    openclaw ltm add "I prefer coffee in the morning"
    openclaw ltm search "coffee"
    

Available Tools

ToolDescription
memory_recallSearch long-term memories. Params: query, optional limit, scoreThreshold.
memory_storeSave text; optional infer. Params: text, optional importance.
memory_forgetDelete by memoryId or by query search.

Configuration (summary)

FieldDefaultDescription
modeclicli or http.
baseUrlRequired for HTTP; if mode omitted and baseUrl set → HTTP.
apiKeyHTTP server auth.
envFileOptional CLI .env (used only if file exists).
pmemPathpmemCLI binary path.
useOpenClawModeltrueInject LLM/embedding from OpenClaw + default SQLite under state dir.
recallLimit5Max memories per recall.
recallScoreThreshold0Min score 0–1.
autoCapture / autoRecall / inferOnAddtrueAuto memory pipeline and infer on add.

Daily Operations

openclaw gateway

openclaw ltm health
openclaw ltm add "Some fact to remember"
openclaw ltm search "query"

openclaw config set plugins.slots.memory none
openclaw config set plugins.slots.memory memory-powermem

Restart the gateway after slot or plugin config changes.

Troubleshooting

SymptomFix
Python < 3.10Run step 2 first; upgrade Python or use python3.11 / python3.12 for venv and pip install. Do not skip the version check.
pip install powermem failsConfirm Python 3.10+, clean venv. See PowerMem issues.
pmem not foundActivate venv or set pmemPath to the full binary.
openclaw ltm health unhealthy (CLI)Confirm agents.defaults.model and provider keys in OpenClaw; gateway version should expose plugin config + runtime.modelAuth. Or set useOpenClawModel: false and a full envFile.
Health OK but add/search errorsEmbedding/LLM mismatch for your provider—see gateway logs; try optional PowerMem .env from .env.example.
Wrong SQLite file / instanceData is under that OpenClaw instance’s stateDir (OPENCLAW_STATE_DIR / --workdir).
HTTP modeServer running, baseUrl correct, apiKey if enabled.
openclaw plugins list: no memory-powermem, or status is not loadedRe-run plugin install; set plugins.enabled true and plugins.slots.memory = memory-powermem; restart gateway; run openclaw plugins list again until memory-powermem shows loaded.

Comments

Loading comments...