superlocalmemory 3.4.17 → 3.4.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/package.json +1 -3
- package/pyproject.toml +10 -1
- package/src/superlocalmemory/cli/setup_wizard.py +30 -0
- package/src/superlocalmemory/core/embeddings.py +8 -2
- package/src/superlocalmemory/retrieval/reranker.py +4 -2
- package/src/superlocalmemory.egg-info/PKG-INFO +4 -1
- package/src/superlocalmemory.egg-info/requires.txt +3 -0
- package/docs/ARCHITECTURE.md +0 -149
- package/docs/api-reference.md +0 -284
- package/docs/auto-memory.md +0 -150
- package/docs/cli-reference.md +0 -327
- package/docs/cloud-backup.md +0 -174
- package/docs/compliance.md +0 -191
- package/docs/configuration.md +0 -182
- package/docs/getting-started.md +0 -102
- package/docs/ide-setup.md +0 -261
- package/docs/mcp-tools.md +0 -220
- package/docs/migration-from-v2.md +0 -170
- package/docs/profiles.md +0 -173
- package/docs/screenshots/01-dashboard-main.png +0 -0
- package/docs/screenshots/02-knowledge-graph.png +0 -0
- package/docs/screenshots/03-math-health.png +0 -0
- package/docs/screenshots/03-patterns-learning.png +0 -0
- package/docs/screenshots/04-learning-dashboard.png +0 -0
- package/docs/screenshots/04-recall-lab.png +0 -0
- package/docs/screenshots/05-behavioral-analysis.png +0 -0
- package/docs/screenshots/05-trust-dashboard.png +0 -0
- package/docs/screenshots/06-graph-communities.png +0 -0
- package/docs/screenshots/06-settings.png +0 -0
- package/docs/screenshots/07-memories-blurred.png +0 -0
- package/docs/skill-evolution.md +0 -256
- package/docs/troubleshooting.md +0 -310
- package/docs/v2-archive/ACCESSIBILITY.md +0 -291
- package/docs/v2-archive/ARCHITECTURE.md +0 -886
- package/docs/v2-archive/CLI-COMMANDS-REFERENCE.md +0 -425
- package/docs/v2-archive/COMPRESSION-README.md +0 -390
- package/docs/v2-archive/FRAMEWORK-INTEGRATIONS.md +0 -300
- package/docs/v2-archive/MCP-MANUAL-SETUP.md +0 -775
- package/docs/v2-archive/MCP-TROUBLESHOOTING.md +0 -787
- package/docs/v2-archive/PATTERN-LEARNING.md +0 -228
- package/docs/v2-archive/PROFILES-GUIDE.md +0 -453
- package/docs/v2-archive/RESET-GUIDE.md +0 -353
- package/docs/v2-archive/SEARCH-ENGINE-V2.2.0.md +0 -749
- package/docs/v2-archive/SEARCH-INTEGRATION-GUIDE.md +0 -502
- package/docs/v2-archive/UI-SERVER.md +0 -262
- package/docs/v2-archive/UNIVERSAL-INTEGRATION.md +0 -488
- package/docs/v2-archive/V2.2.0-OPTIONAL-SEARCH.md +0 -666
- package/docs/v2-archive/WINDOWS-INSTALL-README.txt +0 -34
- package/docs/v2-archive/WINDOWS-POST-INSTALL.txt +0 -45
- package/docs/v2-archive/example_graph_usage.py +0 -146
- package/ui/index.html +0 -1879
- package/ui/js/agents.js +0 -192
- package/ui/js/auto-settings.js +0 -399
- package/ui/js/behavioral.js +0 -276
- package/ui/js/clusters.js +0 -206
- package/ui/js/compliance.js +0 -252
- package/ui/js/core.js +0 -246
- package/ui/js/dashboard.js +0 -110
- package/ui/js/events.js +0 -178
- package/ui/js/fact-detail.js +0 -92
- package/ui/js/feedback.js +0 -333
- package/ui/js/graph-core.js +0 -447
- package/ui/js/graph-filters.js +0 -220
- package/ui/js/graph-interactions.js +0 -351
- package/ui/js/graph-ui.js +0 -214
- package/ui/js/ide-status.js +0 -102
- package/ui/js/init.js +0 -45
- package/ui/js/learning.js +0 -435
- package/ui/js/lifecycle.js +0 -298
- package/ui/js/math-health.js +0 -98
- package/ui/js/memories.js +0 -264
- package/ui/js/modal.js +0 -357
- package/ui/js/patterns.js +0 -93
- package/ui/js/profiles.js +0 -236
- package/ui/js/recall-lab.js +0 -292
- package/ui/js/search.js +0 -59
- package/ui/js/settings.js +0 -224
- package/ui/js/timeline.js +0 -32
- package/ui/js/trust-dashboard.js +0 -73
package/docs/compliance.md
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
# Compliance
|
|
2
|
-
> SuperLocalMemory V3 Documentation
|
|
3
|
-
> https://superlocalmemory.com | Part of Qualixar
|
|
4
|
-
|
|
5
|
-
SuperLocalMemory is designed for organizations that need to meet data protection and privacy regulations. Mode A satisfies the strictest requirements by keeping all data local.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## EU AI Act
|
|
10
|
-
|
|
11
|
-
The EU AI Act (Regulation 2024/1689) establishes requirements for AI systems operating in the European Union.
|
|
12
|
-
|
|
13
|
-
### Mode A: Full Compliance by Architecture
|
|
14
|
-
|
|
15
|
-
In Mode A, SuperLocalMemory operates as a local data retrieval system with zero cloud dependency:
|
|
16
|
-
|
|
17
|
-
| Requirement | How Mode A satisfies it |
|
|
18
|
-
|-------------|------------------------|
|
|
19
|
-
| **Data sovereignty** | All data stored and processed locally. Nothing leaves the device. |
|
|
20
|
-
| **Right to erasure** | `slm forget` deletes data from the local database. No cloud logs exist to purge. |
|
|
21
|
-
| **Transparency** | The retrieval pipeline is fully auditable. No black-box AI decisions. |
|
|
22
|
-
| **Risk classification** | A local retrieval system with no autonomous decision-making qualifies as minimal risk. |
|
|
23
|
-
|
|
24
|
-
### Mode B: Full Compliance
|
|
25
|
-
|
|
26
|
-
Mode B uses a local LLM (Ollama). Data never leaves the device. Same compliance posture as Mode A.
|
|
27
|
-
|
|
28
|
-
### Mode C: Shared Responsibility
|
|
29
|
-
|
|
30
|
-
Mode C sends recall queries to a cloud LLM provider. In this mode:
|
|
31
|
-
|
|
32
|
-
- **Your data** (stored memories) remains local
|
|
33
|
-
- **Queries** are sent to the cloud provider
|
|
34
|
-
- The cloud provider's compliance posture applies to those queries
|
|
35
|
-
- A Data Processing Agreement (DPA) with your provider is recommended
|
|
36
|
-
|
|
37
|
-
## GDPR
|
|
38
|
-
|
|
39
|
-
The General Data Protection Regulation applies to personal data of EU residents.
|
|
40
|
-
|
|
41
|
-
### Right to Erasure (Article 17)
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
# Delete specific memories
|
|
45
|
-
slm forget "John's phone number"
|
|
46
|
-
slm forget --id 42
|
|
47
|
-
|
|
48
|
-
# Delete all memories before a date
|
|
49
|
-
slm forget --before "2025-01-01"
|
|
50
|
-
|
|
51
|
-
# Delete an entire profile
|
|
52
|
-
slm profile delete client-eu
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
Deletion is permanent. In Mode A, there are no cloud copies to worry about.
|
|
56
|
-
|
|
57
|
-
### Data Portability (Article 20)
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
# Export all memories for a profile
|
|
61
|
-
slm profile export work > work-data.json
|
|
62
|
-
|
|
63
|
-
# The export is standard JSON — readable by any system
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### Data Minimization (Article 5)
|
|
67
|
-
|
|
68
|
-
The entropy gate in the ingestion pipeline filters out redundant and low-value information automatically. Only memories with sufficient information value are stored.
|
|
69
|
-
|
|
70
|
-
### Purpose Limitation
|
|
71
|
-
|
|
72
|
-
Profiles enforce purpose limitation. Client A's data is stored in Client A's profile and is never accessible from another profile.
|
|
73
|
-
|
|
74
|
-
## Retention Policies
|
|
75
|
-
|
|
76
|
-
Named retention policies automate data lifecycle management.
|
|
77
|
-
|
|
78
|
-
### Built-in policies
|
|
79
|
-
|
|
80
|
-
| Policy | Retention period | Use case |
|
|
81
|
-
|--------|:----------------:|----------|
|
|
82
|
-
| `indefinite` | Forever | Default. No automatic deletion. |
|
|
83
|
-
| `gdpr-30d` | 30 days | GDPR-compliant short retention |
|
|
84
|
-
| `hipaa-7y` | 7 years | HIPAA medical records requirement |
|
|
85
|
-
|
|
86
|
-
### Apply a policy
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
slm retention set gdpr-30d
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
This applies to the active profile. Memories older than the retention period are automatically archived and then deleted.
|
|
93
|
-
|
|
94
|
-
### Custom policies
|
|
95
|
-
|
|
96
|
-
```bash
|
|
97
|
-
slm retention set custom --days 90
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
### Per-profile policies
|
|
101
|
-
|
|
102
|
-
Different profiles can have different policies:
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
slm profile switch client-eu
|
|
106
|
-
slm retention set gdpr-30d
|
|
107
|
-
|
|
108
|
-
slm profile switch internal
|
|
109
|
-
slm retention set indefinite
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
## Access Control
|
|
113
|
-
|
|
114
|
-
SuperLocalMemory uses Attribute-Based Access Control (ABAC) per profile.
|
|
115
|
-
|
|
116
|
-
- Each profile is an isolated access boundary
|
|
117
|
-
- No cross-profile data access is possible
|
|
118
|
-
- Profile switching requires the `slm profile switch` command
|
|
119
|
-
- The audit trail logs all profile switches
|
|
120
|
-
|
|
121
|
-
## Audit Trail
|
|
122
|
-
|
|
123
|
-
Every memory operation is logged in a tamper-evident hash chain.
|
|
124
|
-
|
|
125
|
-
### View the audit trail
|
|
126
|
-
|
|
127
|
-
```bash
|
|
128
|
-
slm audit # Recent entries
|
|
129
|
-
slm audit --limit 100 # Last 100 entries
|
|
130
|
-
slm audit --action store # Only store operations
|
|
131
|
-
slm audit --action delete # Only delete operations
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
### Verify integrity
|
|
135
|
-
|
|
136
|
-
```bash
|
|
137
|
-
slm audit --verify
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
This checks the hash chain for tampering. Each entry contains a hash of the previous entry, creating a blockchain-like chain. Any modification to a past entry breaks the chain and is detected.
|
|
141
|
-
|
|
142
|
-
### What gets logged
|
|
143
|
-
|
|
144
|
-
| Action | What is recorded |
|
|
145
|
-
|--------|-----------------|
|
|
146
|
-
| `store` | Memory ID, timestamp, profile, content hash |
|
|
147
|
-
| `recall` | Query, timestamp, profile, result count |
|
|
148
|
-
| `delete` | Memory ID, timestamp, profile, reason |
|
|
149
|
-
| `profile_switch` | From profile, to profile, timestamp |
|
|
150
|
-
| `mode_change` | From mode, to mode, timestamp |
|
|
151
|
-
| `migration` | Source version, target version, timestamp |
|
|
152
|
-
|
|
153
|
-
## HIPAA
|
|
154
|
-
|
|
155
|
-
For healthcare applications:
|
|
156
|
-
|
|
157
|
-
1. Use Mode A (zero cloud) to ensure PHI never leaves the device
|
|
158
|
-
2. Apply the `hipaa-7y` retention policy
|
|
159
|
-
3. Use per-patient or per-case profiles for isolation
|
|
160
|
-
4. Enable audit trail verification for compliance audits
|
|
161
|
-
|
|
162
|
-
```bash
|
|
163
|
-
slm profile create patient-12345
|
|
164
|
-
slm profile switch patient-12345
|
|
165
|
-
slm retention set hipaa-7y
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
## SOC 2
|
|
169
|
-
|
|
170
|
-
SuperLocalMemory supports SOC 2 requirements through:
|
|
171
|
-
|
|
172
|
-
- **Access controls:** Profile-based isolation with ABAC
|
|
173
|
-
- **Audit logging:** Hash-chained, tamper-evident audit trail
|
|
174
|
-
- **Data encryption:** SQLite database can be encrypted at rest using OS-level encryption (FileVault, BitLocker, LUKS)
|
|
175
|
-
- **Change management:** All configuration changes are logged
|
|
176
|
-
|
|
177
|
-
## Compliance Checklist
|
|
178
|
-
|
|
179
|
-
| Requirement | Mode A | Mode B | Mode C |
|
|
180
|
-
|-------------|:------:|:------:|:------:|
|
|
181
|
-
| Data stays on device | Yes | Yes | Partial (queries sent to cloud) |
|
|
182
|
-
| No cloud dependency | Yes | Yes | No |
|
|
183
|
-
| Right to erasure | Yes | Yes | Yes (local); cloud logs depend on provider |
|
|
184
|
-
| Audit trail | Yes | Yes | Yes |
|
|
185
|
-
| Retention policies | Yes | Yes | Yes |
|
|
186
|
-
| Profile isolation | Yes | Yes | Yes |
|
|
187
|
-
| Tamper detection | Yes | Yes | Yes |
|
|
188
|
-
|
|
189
|
-
---
|
|
190
|
-
|
|
191
|
-
*SuperLocalMemory V3 — Copyright 2026 Varun Pratap Bhardwaj. Elastic License 2.0. Part of Qualixar.*
|
package/docs/configuration.md
DELETED
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
# Configuration
|
|
2
|
-
> SuperLocalMemory V3 Documentation
|
|
3
|
-
> https://superlocalmemory.com | Part of Qualixar
|
|
4
|
-
|
|
5
|
-
Control how SuperLocalMemory stores, retrieves, and processes your memories.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Three Operating Modes
|
|
10
|
-
|
|
11
|
-
SuperLocalMemory runs in one of three modes. You pick the trade-off between privacy and power.
|
|
12
|
-
|
|
13
|
-
| Mode | What it does | Needs API key? | Data leaves your machine? |
|
|
14
|
-
|------|-------------|:--------------:|:-------------------------:|
|
|
15
|
-
| **A: Zero-Cloud** | Math-based retrieval. No LLM calls. | No | Never |
|
|
16
|
-
| **B: Local LLM** | Mode A + a local LLM via Ollama. | No | Never |
|
|
17
|
-
| **C: Cloud LLM** | Mode B + a cloud LLM for maximum recall quality. | Yes | Yes (queries only) |
|
|
18
|
-
|
|
19
|
-
### Check your current mode
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
slm mode
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### Switch modes
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
slm mode a # Zero-cloud (default)
|
|
29
|
-
slm mode b # Local LLM
|
|
30
|
-
slm mode c # Cloud LLM
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
Switching modes takes effect immediately. No data is lost.
|
|
34
|
-
|
|
35
|
-
### Mode A: Zero-Cloud (Default)
|
|
36
|
-
|
|
37
|
-
All operations run locally. Retrieval uses four channels (semantic similarity, keyword search, entity graph, and temporal context) combined with mathematical scoring. No network calls.
|
|
38
|
-
|
|
39
|
-
Best for: privacy-sensitive work, air-gapped environments, EU AI Act compliance.
|
|
40
|
-
|
|
41
|
-
### Mode B: Local LLM
|
|
42
|
-
|
|
43
|
-
Everything from Mode A, plus a local LLM (via Ollama) that improves recall by understanding query intent and reranking results.
|
|
44
|
-
|
|
45
|
-
**Setup:**
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
# Install Ollama (if not already installed)
|
|
49
|
-
brew install ollama # macOS
|
|
50
|
-
curl -fsSL https://ollama.com/install.sh | sh # Linux
|
|
51
|
-
|
|
52
|
-
# Pull a model
|
|
53
|
-
ollama pull llama3.2
|
|
54
|
-
|
|
55
|
-
# Switch to Mode B
|
|
56
|
-
slm mode b
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
Best for: developers who want better recall without sending data to the cloud.
|
|
60
|
-
|
|
61
|
-
### Mode C: Cloud LLM
|
|
62
|
-
|
|
63
|
-
Everything from Mode B, plus a cloud LLM for cross-encoder reranking and agentic multi-round retrieval. Highest recall quality.
|
|
64
|
-
|
|
65
|
-
**Setup:**
|
|
66
|
-
|
|
67
|
-
```bash
|
|
68
|
-
slm mode c
|
|
69
|
-
slm provider set openai
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
You will be prompted for your API key (stored locally in your config file, never transmitted except to the provider you choose).
|
|
73
|
-
|
|
74
|
-
Best for: maximum recall quality when privacy constraints allow cloud calls.
|
|
75
|
-
|
|
76
|
-
## Provider Configuration
|
|
77
|
-
|
|
78
|
-
Mode C supports multiple LLM providers.
|
|
79
|
-
|
|
80
|
-
### Set your provider
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
slm provider # Show current provider
|
|
84
|
-
slm provider set # Interactive provider selector
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
### Supported providers
|
|
88
|
-
|
|
89
|
-
| Provider | Command | Env variable |
|
|
90
|
-
|----------|---------|-------------|
|
|
91
|
-
| OpenAI | `slm provider set openai` | `OPENAI_API_KEY` |
|
|
92
|
-
| Anthropic | `slm provider set anthropic` | `ANTHROPIC_API_KEY` |
|
|
93
|
-
| Azure OpenAI | `slm provider set azure` | `AZURE_OPENAI_API_KEY` |
|
|
94
|
-
| Ollama (local) | `slm provider set ollama` | None needed |
|
|
95
|
-
| OpenRouter | `slm provider set openrouter` | `OPENROUTER_API_KEY` |
|
|
96
|
-
|
|
97
|
-
### Set API keys
|
|
98
|
-
|
|
99
|
-
You can set keys interactively or via environment variables:
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
# Interactive (stored in config file)
|
|
103
|
-
slm provider set openai
|
|
104
|
-
# Prompts: Enter your OpenAI API key: sk-...
|
|
105
|
-
|
|
106
|
-
# Via environment variable (takes precedence)
|
|
107
|
-
export OPENAI_API_KEY="sk-..."
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
## Config File
|
|
111
|
-
|
|
112
|
-
All settings live in:
|
|
113
|
-
|
|
114
|
-
```
|
|
115
|
-
~/.superlocalmemory/config.json
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
### Example config
|
|
119
|
-
|
|
120
|
-
```json
|
|
121
|
-
{
|
|
122
|
-
"mode": "a",
|
|
123
|
-
"profile": "default",
|
|
124
|
-
"provider": {
|
|
125
|
-
"name": "openai",
|
|
126
|
-
"model": "gpt-4o-mini",
|
|
127
|
-
"api_key_env": "OPENAI_API_KEY"
|
|
128
|
-
},
|
|
129
|
-
"auto_capture": true,
|
|
130
|
-
"auto_recall": true,
|
|
131
|
-
"embedding_model": "all-MiniLM-L6-v2",
|
|
132
|
-
"max_recall_results": 10,
|
|
133
|
-
"retention": {
|
|
134
|
-
"default_policy": "indefinite"
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
### Key settings
|
|
140
|
-
|
|
141
|
-
| Setting | Default | Description |
|
|
142
|
-
|---------|---------|-------------|
|
|
143
|
-
| `mode` | `"a"` | Operating mode: `a`, `b`, or `c` |
|
|
144
|
-
| `profile` | `"default"` | Active memory profile |
|
|
145
|
-
| `auto_capture` | `true` | Automatically store decisions and context |
|
|
146
|
-
| `auto_recall` | `true` | Automatically inject relevant memories |
|
|
147
|
-
| `embedding_model` | `"all-MiniLM-L6-v2"` | Sentence transformer for semantic search |
|
|
148
|
-
| `max_recall_results` | `10` | Maximum memories returned per query |
|
|
149
|
-
|
|
150
|
-
## Environment Variables
|
|
151
|
-
|
|
152
|
-
These override config file settings when set:
|
|
153
|
-
|
|
154
|
-
| Variable | Purpose |
|
|
155
|
-
|----------|---------|
|
|
156
|
-
| `SLM_MODE` | Override operating mode |
|
|
157
|
-
| `SLM_PROFILE` | Override active profile |
|
|
158
|
-
| `SLM_DATA_DIR` | Override data directory (default: `~/.superlocalmemory/`) |
|
|
159
|
-
| `OPENAI_API_KEY` | OpenAI API key for Mode C |
|
|
160
|
-
| `ANTHROPIC_API_KEY` | Anthropic API key for Mode C |
|
|
161
|
-
| `AZURE_OPENAI_API_KEY` | Azure OpenAI API key for Mode C |
|
|
162
|
-
| `OPENROUTER_API_KEY` | OpenRouter API key for Mode C |
|
|
163
|
-
|
|
164
|
-
## Database Location
|
|
165
|
-
|
|
166
|
-
All data is stored locally in:
|
|
167
|
-
|
|
168
|
-
```
|
|
169
|
-
~/.superlocalmemory/memory.db # SQLite database
|
|
170
|
-
~/.superlocalmemory/config.json # Configuration
|
|
171
|
-
~/.superlocalmemory/backups/ # Automatic backups
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
To use a custom location:
|
|
175
|
-
|
|
176
|
-
```bash
|
|
177
|
-
export SLM_DATA_DIR="/path/to/your/data"
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
---
|
|
181
|
-
|
|
182
|
-
*SuperLocalMemory V3 — Copyright 2026 Varun Pratap Bhardwaj. Elastic License 2.0. Part of Qualixar.*
|
package/docs/getting-started.md
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
# Getting Started
|
|
2
|
-
> SuperLocalMemory V3 Documentation
|
|
3
|
-
> https://superlocalmemory.com | Part of Qualixar
|
|
4
|
-
|
|
5
|
-
Get your AI's memory system running in under 5 minutes. **V3.1: Now with Active Memory — your memory learns from your usage and gets smarter over time, at zero token cost.**
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Prerequisites
|
|
10
|
-
|
|
11
|
-
- **Node.js** 18 or later
|
|
12
|
-
- **Python** 3.10 or later (installed automatically on most systems)
|
|
13
|
-
- An AI coding tool (Claude Code, Cursor, VS Code, Windsurf, or any MCP-compatible IDE)
|
|
14
|
-
|
|
15
|
-
## Install
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
npm install -g superlocalmemory
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
This installs the `slm` command globally.
|
|
22
|
-
|
|
23
|
-
## Run the Setup Wizard
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
slm setup
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
The wizard walks you through three choices:
|
|
30
|
-
|
|
31
|
-
1. **Pick your mode**
|
|
32
|
-
- **Mode A** (default) — Zero cloud. All memory stays on your machine. No API key needed.
|
|
33
|
-
- **Mode B** — Local LLM. Uses Ollama on your machine for smarter recall.
|
|
34
|
-
- **Mode C** — Cloud LLM. Uses OpenAI, Anthropic, or another provider for maximum power.
|
|
35
|
-
|
|
36
|
-
2. **Connect your IDE** — The wizard detects installed IDEs and configures them automatically.
|
|
37
|
-
|
|
38
|
-
3. **Verify installation** — A quick self-test confirms everything works.
|
|
39
|
-
|
|
40
|
-
> **Tip:** Start with Mode A. You can switch to B or C anytime with `slm mode b` or `slm mode c`.
|
|
41
|
-
|
|
42
|
-
## Store Your First Memory
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
slm remember "The project uses PostgreSQL 16 on port 5433, not the default 5432"
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
You should see:
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
Stored memory #1 (Mode A, profile: default)
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## Recall a Memory
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
slm recall "what database port do we use"
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Output:
|
|
61
|
-
|
|
62
|
-
```
|
|
63
|
-
[1] The project uses PostgreSQL 16 on port 5433, not the default 5432
|
|
64
|
-
Score: 0.94 | Stored: 2 minutes ago | Profile: default
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
## Check System Status
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
slm status
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
This shows:
|
|
74
|
-
|
|
75
|
-
- Current mode (A, B, or C)
|
|
76
|
-
- Active profile
|
|
77
|
-
- Total memories stored
|
|
78
|
-
- Database location
|
|
79
|
-
- Health of math layers (Fisher, Sheaf, Langevin)
|
|
80
|
-
|
|
81
|
-
## How It Works With Your IDE
|
|
82
|
-
|
|
83
|
-
Once connected, SuperLocalMemory works automatically:
|
|
84
|
-
|
|
85
|
-
- **Auto-recall** — When your AI assistant responds, relevant memories are injected as context. No manual queries needed.
|
|
86
|
-
- **Auto-capture** — Decisions, bug fixes, architecture choices, and preferences are stored as you work. No manual tagging needed.
|
|
87
|
-
|
|
88
|
-
You can still use `slm remember` and `slm recall` from the terminal whenever you want explicit control.
|
|
89
|
-
|
|
90
|
-
## Next Steps
|
|
91
|
-
|
|
92
|
-
| What you want to do | Guide |
|
|
93
|
-
|---------------------|-------|
|
|
94
|
-
| Set up a specific IDE | [IDE Setup](ide-setup.md) |
|
|
95
|
-
| Switch modes or providers | [Configuration](configuration.md) |
|
|
96
|
-
| Learn all CLI commands | [CLI Reference](cli-reference.md) |
|
|
97
|
-
| Migrate from V2 | [Migration from V2](migration-from-v2.md) |
|
|
98
|
-
| Understand how it works | [Architecture](architecture.md) |
|
|
99
|
-
|
|
100
|
-
---
|
|
101
|
-
|
|
102
|
-
*SuperLocalMemory V3 — Copyright 2026 Varun Pratap Bhardwaj. Elastic License 2.0. Part of Qualixar.*
|