Quick Start¶
This guide walks you through basic NeuralMemory usage in 5 minutes.
0. Setup¶
Claude Code (Plugin)¶
/plugin marketplace add nhadaututtheky/neural-memory
/plugin install neural-memory@neural-memory-marketplace
OpenClaw (Plugin)¶
Then in ~/.openclaw/openclaw.json:
Restart the gateway. The plugin auto-registers 6 tools (nmem_remember, nmem_recall, nmem_context, nmem_todo, nmem_stats, nmem_health) and injects memory context before each agent run. See the full setup guide.
Cursor / Windsurf / Other MCP Clients¶
Then add nmem-mcp to your editor's MCP config. No nmem init needed — the MCP server auto-initializes on first use.
VS Code Extension¶
Install from the VS Code Marketplace for a visual interface — sidebar memory tree, interactive graph explorer, CodeLens on functions, and keyboard shortcuts for encode/recall.
Optional: Explicit Init¶
1. Store Your First Memory¶
Output:
2. Query Memories¶
Output:
3. Use Memory Types¶
Different types help organize and retrieve memories:
# Decisions (never expire)
nmem remember "We decided to use PostgreSQL" --type decision
# TODOs (expire in 30 days)
nmem todo "Review PR #123" --priority 7
# Facts
nmem remember "API endpoint is /v2/users" --type fact
# Errors with solutions
nmem remember "ERROR: null pointer in auth. SOLUTION: add null check" --type error
4. Get Context¶
Retrieve recent memories for AI context injection:
With JSON output for programmatic use:
5. View Statistics¶
Output:
6. Manage Brains¶
Create separate brains for different projects:
# List brains
nmem brain list
# Create new brain
nmem brain create work
# Switch to brain
nmem brain use work
# Export brain
nmem brain export -o backup.json
7. Web Visualization¶
Start the server to visualize your brain:
Open http://localhost:8000/ui to see:
- Interactive neural graph
- Color-coded neuron types
- Click nodes for details
Example Workflow¶
Here's a typical workflow during a coding session:
# Start of session - get context
nmem context --limit 10
# During work - remember important things
nmem remember "UserService now uses async/await"
nmem remember "DECISION: Use JWT for auth. REASON: Stateless" --type decision
nmem todo "Add rate limiting to API" --priority 8
# When you need to recall
nmem recall "auth decision"
nmem recall "UserService changes"
# End of session - check what's pending
nmem list --type todo
Next Steps¶
- CLI Reference — All commands and options
- Memory Types — Understanding different memory types
- Integration Guide — Integrate with Claude Code, Cursor, and other editors
- OpenClaw Plugin Guide — Full setup for OpenClaw agents