Neural Memory
Associative memory with spreading activation for persistent, intelligent recall. Use PROACTIVELY when: (1) You need to remember facts, decisions, errors, or...
Associative memory with spreading activation for persistent, intelligent recall. Use PROACTIVELY when: (1) You need to remember facts, decisions, errors, or...
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
A biologically-inspired memory system that uses spreading activation instead of keyword/vector search. Memories form a neural graph where neurons connect via 20 typed synapses. Frequently co-accessed memories strengthen their connections (Hebbian learning). Stale memories decay naturally. Contradictions are auto-detected.
Why not just vector search? Vector search finds documents similar to your query. NeuralMemory finds conceptually related memories through graph traversal — even when there's no keyword or embedding overlap. "What decision did we make about auth?" activates time + entity + concept neurons simultaneously and finds the intersection.
pip install neural-memory
The brain and config at
~/.neuralmemory/ are auto-created on first use.
The plugin occupies the exclusive memory slot — auto-injects context before each agent run and auto-captures memories after.
# Install from npm npm install -g neuralmemory
Add to
~/.openclaw/openclaw.json:
{ "plugins": { "load": { "paths": ["<path-to-installed-plugin>"] }, "entries": { "neuralmemory": { "enabled": true, "config": { "pythonPath": "python", "brain": "default", "autoContext": true, "autoCapture": true } } }, "slots": { "memory": "neuralmemory" } } }
Plugin features:
before_agent_start hook: injects tool instructions + relevant memories as context (persists across /new)agent_end hook: auto-extracts facts, decisions, and TODOs from the conversationcontextDepth (0-3), maxContextTokens (100-10000)After installing, build the plugin:
cd <path-to-installed-plugin> npm run build
This compiles TypeScript to JavaScript in
dist/. The plugin entry point is dist/index.js.
On Windows, use forward slashes or escaped backslashes in
openclaw.json paths:
{ "plugins": { "load": { "paths": ["C:/Users/<you>/AppData/Roaming/npm/node_modules/neuralmemory"] } } }
To find the installed path:
npm list -g neuralmemory --parseable
If
openclaw plugins list doesn't show the plugin:
openclaw.json points to the package root (where package.json is)npm run build was run (the dist/ folder must exist with compiled .js files)python instead of python3 in the plugin config (Windows default)If you prefer MCP over the plugin, add to
~/.openclaw/mcp.json:
{ "mcpServers": { "neural-memory": { "command": "python", "args": ["-m", "neural_memory.mcp"], "env": { "NEURALMEMORY_BRAIN": "default" } } } }
On Windows, use
"python" (not "python3"). This gives you all 60 MCP tools but without the auto-context/auto-capture hooks.
nmem stats
You should see brain statistics (neurons, synapses, fibers).
| Symptom | Cause | Fix |
|---|---|---|
doesn't show plugin | Plugin path wrong or not built | Run , verify path in |
Agent runs in terminal | Agent confused CLI vs tool | Plugin now auto-injects tool instructions via |
Agent forgets tools after | No tool instructions in new session | Plugin now injects on every |
(Windows) | Windows uses not | Set in plugin config |
| Timeout errors | Slow machine or large brain | Increase in plugin config (max 120000ms) |
| Tool | Purpose | When to Use |
|---|---|---|
| Store a memory | After decisions, errors, facts, insights, user preferences |
| Query memories | Before tasks, when user references past context, "do you remember..." |
| Get recent memories | At session start, inject fresh context |
| Quick TODO with 30-day expiry | Task tracking |
| Tool | Purpose | When to Use |
|---|---|---|
| Auto-extract memories from text | After important conversations — captures decisions, errors, TODOs automatically |
(depth=3) | Deep associative recall | Complex questions requiring cross-domain connections |
| Workflow pattern suggestions | When user repeats similar action sequences |
| Tool | Purpose | When to Use |
|---|---|---|
| Brain health diagnostics | Periodic checkup, before sharing brain |
| Brain statistics | Quick overview of memory counts |
| Brain snapshots and rollback | Before risky operations, version checkpoints |
| Transfer memories between brains | Cross-project knowledge sharing |
nmem_context to inject recent memories into your awarenessnmem_recall with that topicnmem_remember with type="decision"nmem_remember with type="error"nmem_remember with type="preference"nmem_recall with appropriate depthnmem_auto with action="process" on important conversation segmentsnmem_remember( content="Use PostgreSQL for production, SQLite for development", type="decision", tags=["database", "infrastructure"], priority=8 )
nmem_recall( query="database configuration for production", depth=1, max_tokens=500 )
Returns memories found via graph traversal, not keyword matching. Related memories (e.g., "deploy uses Docker with pg_dump backups") surface even without shared keywords.
nmem_recall( query="why did the deployment fail last week?", depth=2 )
Follows CAUSED_BY and LEADS_TO synapses to trace cause-and-effect chains.
nmem_auto( action="process", text="We decided to switch from REST to GraphQL because the frontend needs flexible queries. The migration will take 2 sprints. TODO: update API docs." )
Automatically extracts: 1 decision, 1 fact, 1 TODO.
| Depth | Name | Speed | Use Case |
|---|---|---|---|
| 0 | Instant | <10ms | Quick facts, recent context |
| 1 | Context | ~50ms | Standard recall (default) |
| 2 | Habit | ~200ms | Pattern matching, workflow suggestions |
| 3 | Deep | ~500ms | Cross-domain associations, causal chains |
~/.neuralmemory/brains/<brain>.dbnmem_remember returns fiber_id for reference trackingNo automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.