Skip to main content

OpenClaw Plugin

OpenClaw Alchemyst Integration gives OpenClaw CLI agents perfect memory and context recall powered by Alchemyst AI.

Features

  • Auto-Recall β€” automatically injects relevant context before AI turns
  • Auto-Capture β€” stores conversations automatically after AI responses
  • 5 AI tools for manual memory management
  • Slash commands β€” /remember and /recall for in-chat use
  • CLI commands β€” search, profile, and wipe memories from terminal

Installation

1. Add API keys

Add your keys to ~/.openclaw/.env:
nano ~/.openclaw/.env
ALCHEMYST_API_KEY=your_alchemyst_api_key_here
OPENAI_API_KEY=your_openai_api_key_here
Get your Alchemyst API key at platform.getalchemystai.com.

2. Install the plugin

cp -r /path/to/openclaw-alchemyst ~/.openclaw/extensions/alchemyst-memory
The destination folder must be named alchemyst-memory.

3. Enable in ~/.openclaw/openclaw.json

{
  "plugins": {
    "slots": {
      "memory": "alchemyst-memory"
    },
    "entries": {
      "alchemyst-memory": {
        "enabled": true
      }
    }
  }
}
Do not add a config block β€” OpenClaw’s schema will reject it.

4. Verify

openclaw plugins list
Expected output:
[Alchemyst] Client initialized
[Alchemyst] Registered 5 tools
[Alchemyst] Registered auto-recall hook (before_agent_start)
[Alchemyst] Registered auto-capture hook (agent_end)
[Alchemyst] Plugin registered successfully βœ“

How It Works

  • Before each AI turn: the recall hook searches Alchemyst for relevant past context and prepends it to the prompt automatically.
  • After each AI turn: the capture hook stores user and assistant messages under the session openclaw-default.

Configuration

OptionTypeDefaultDescription
ALCHEMYST_API_KEYenvrequiredAlchemyst API key
withMemorybooleantrueEnable auto-recall
similarityThresholdnumber0.7Context retrieval threshold
minimumSimilarityThresholdnumber0.5Fallback threshold
maxMemoriesnumber10Max memories per turn
debugbooleanfalseEnable debug logging

Commands

CommandDescription
/remember <text>Manually store something
/recall <query>Search stored memories
openclaw alchemyst-search <query>CLI memory search
openclaw alchemyst-profileView configuration
openclaw alchemyst-wipeDelete all memories

Resources