Installation¶
Requirements¶
- Python 3.11 or higher
- pip or pipx
Basic Installation¶
Install NeuralMemory from PyPI:
This installs the base profile (≤4 direct runtime deps: aiosqlite, typer, rich, networkx) with CLI, MCP stdio, SQLite, and in-memory storage.
Fresh installs default MCP tool discovery to the standard tier (10 tools). Existing configs without [tool_tier] keep full discovery for compatibility.
Optional Dependencies¶
NeuralMemory has optional features you can install as needed:
Sync / shared HTTP client¶
Includes:
aiohttpfor remote SharedStorage and WebSocket sync clients
Server (FastAPI + Web UI)¶
Includes:
- FastAPI REST API + pydantic models
- Interactive Web UI for brain visualization
- WebSocket sync support (
aiohttpincluded)
Vietnamese NLP¶
Includes:
- underthesea - Vietnamese NLP toolkit
- pyvi - Vietnamese word segmentation
English NLP¶
Includes:
- spaCy - Industrial NLP
- en_core_web_sm model
All Features¶
Installs everything above.
Development Installation¶
For contributing or local development:
git clone https://github.com/nhadaututtheky/neural-memory
cd neural-memory
pip install -e ".[dev]"
pre-commit install
Verify Installation¶
Environment Variables¶
| Variable | Description | Default |
|---|---|---|
NEURAL_MEMORY_DIR |
Data directory | ~/.neural-memory |
NEURAL_MEMORY_BRAIN |
Default brain name | default |
NEURAL_MEMORY_JSON |
Always output JSON | false |
Troubleshooting¶
Command not found¶
If nmem is not found after installation:
# Check if scripts are in PATH
python -m neural_memory.cli --help
# Or use pipx for isolated install
pipx install neural-memory
Permission errors on Windows¶
Run terminal as Administrator or install with --user:
Missing dependencies¶
If optional features fail: