@astramindapp/openclaw-mind 0.1.0
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/LICENSE +21 -0
- package/README.md +137 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +1499 -0
- package/dist/index.js.map +1 -0
- package/openclaw.plugin.json +178 -0
- package/package.json +82 -0
- package/skills/memory-dream/SKILL.md +113 -0
- package/skills/memory-triage/SKILL.md +118 -0
- package/skills/mind-emotional-encoding/SKILL.md +112 -0
- package/skills/mind-graph-recall/SKILL.md +114 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Astrai AI, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# @astramindapp/openclaw-mind
|
|
2
|
+
|
|
3
|
+
**MIND personal knowledge graph for OpenClaw.** 11 tools, 4 skills, full lifecycle hooks. The most complete memory plugin for AI agents.
|
|
4
|
+
|
|
5
|
+
Other memory plugins store text. **MIND understands it.**
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
openclaw plugins install @astramindapp/openclaw-mind
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## What MIND Adds to OpenClaw
|
|
12
|
+
|
|
13
|
+
- **True knowledge graph** — Every memory becomes entities + relationships, not flat text
|
|
14
|
+
- **50+ AI models** — Switch between GPT, Claude, Gemini, Llama, DeepSeek, Grok mid-conversation
|
|
15
|
+
- **MINDsense emotional intelligence** *(patented)* — Valence + arousal weighting determines encoding depth, mirroring biological memory
|
|
16
|
+
- **Autonomous learning** — 8 pattern detectors run daily on your KG, surface insights you didn't ask for
|
|
17
|
+
- **Life management** — Goals, projects, tasks, calendar, all synced from agent conversations
|
|
18
|
+
- **CRM** — Contacts and interaction history captured automatically
|
|
19
|
+
- **Cross-agent** — Memories shared across every OpenClaw agent, MCP client, and the MIND web app
|
|
20
|
+
|
|
21
|
+
## Why Not Just Use Mem0 or Another Memory Plugin?
|
|
22
|
+
|
|
23
|
+
| Feature | MIND | Mem0 | Anthropic Memory MCP |
|
|
24
|
+
|---------|------|------|----------------------|
|
|
25
|
+
| Tools | **11** | 8 | 8 |
|
|
26
|
+
| Knowledge graph | ✅ true KG (LightRAG) | ❌ vectors only | ❌ JSON |
|
|
27
|
+
| 50+ AI models | ✅ | ❌ provider-agnostic but no UI | ❌ Claude only |
|
|
28
|
+
| Emotional intelligence | ✅ MINDsense (patented) | ❌ | ❌ |
|
|
29
|
+
| Auto-recall before turn | ✅ | ✅ | ❌ |
|
|
30
|
+
| Auto-capture after turn | ✅ | ✅ | ❌ |
|
|
31
|
+
| Graph traversal queries | ✅ | ❌ | ❌ |
|
|
32
|
+
| Life management | ✅ | ❌ | ❌ |
|
|
33
|
+
| CRM | ✅ | ❌ | ❌ |
|
|
34
|
+
| Mobile app | ✅ | ❌ | ❌ |
|
|
35
|
+
| Free tier | ✅ 50 credits/mo | ✅ 10K memories/mo | ✅ |
|
|
36
|
+
|
|
37
|
+
## Quick Start
|
|
38
|
+
|
|
39
|
+
### 1. Install
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
openclaw plugins install @astramindapp/openclaw-mind
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### 2. Get a MIND API key
|
|
46
|
+
|
|
47
|
+
Sign up at [m-i-n-d.ai](https://www.m-i-n-d.ai) → Settings → Developer → Create API Key.
|
|
48
|
+
The key starts with `mind_`.
|
|
49
|
+
|
|
50
|
+
### 3. Configure
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
openclaw mind init --api-key mind_your_key_here
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Or set the env var:
|
|
57
|
+
```bash
|
|
58
|
+
export MIND_API_KEY=mind_your_key_here
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### 4. Verify
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
openclaw mind status
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
You should see "Connected to MIND" with your account info.
|
|
68
|
+
|
|
69
|
+
### 5. Import existing OpenClaw memory (optional)
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
openclaw mind import
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
This reads `~/.openclaw/workspace/` and ingests `SOUL.md`, `IDENTITY.md`, `USER.md`, `MEMORY.md`, and the daily memory directory into your MIND knowledge graph — with automatic entity extraction.
|
|
76
|
+
|
|
77
|
+
## Tools
|
|
78
|
+
|
|
79
|
+
| Tool | What It Does |
|
|
80
|
+
|------|-------------|
|
|
81
|
+
| `mind_search` | Hybrid semantic + graph search across the KG |
|
|
82
|
+
| `mind_add` | Store content with auto entity/relationship extraction |
|
|
83
|
+
| `mind_get` | Retrieve a memory by ID |
|
|
84
|
+
| `mind_list` | Paginated list of memories |
|
|
85
|
+
| `mind_update` | Update an existing memory |
|
|
86
|
+
| `mind_delete` | Soft delete with retention policy |
|
|
87
|
+
| `mind_query_graph` | Graph traversal queries — find connected entities |
|
|
88
|
+
| `mind_recall_emotional` | MINDsense-weighted recall — emotionally salient memories first |
|
|
89
|
+
| `mind_context` | Load persistent identity (soul, user, rules, priorities, recent) |
|
|
90
|
+
| `mind_life` | Create/list/complete tasks, goals, calendar events |
|
|
91
|
+
| `mind_crm_log` | Log contacts and interaction history |
|
|
92
|
+
|
|
93
|
+
## Skills (Agentic Memory Protocols)
|
|
94
|
+
|
|
95
|
+
| Skill | What It Does |
|
|
96
|
+
|-------|-------------|
|
|
97
|
+
| `memory-triage` | 5-gate importance scoring before storing (FUTURE UTILITY, NOVELTY, FACTUAL, SAFE, EMOTIONAL SALIENCE) |
|
|
98
|
+
| `memory-dream` | Periodic KG consolidation — merge duplicates, remove noise, enforce TTL |
|
|
99
|
+
| `mind-emotional-encoding` | MINDsense valence/arousal scoring on every captured fact |
|
|
100
|
+
| `mind-graph-recall` | Graph traversal recall — find everything connected to an entity, not just text similar to it |
|
|
101
|
+
|
|
102
|
+
## Configuration
|
|
103
|
+
|
|
104
|
+
All configuration is optional. Defaults are sensible.
|
|
105
|
+
|
|
106
|
+
```yaml
|
|
107
|
+
# ~/.openclaw/plugins/openclaw-mind.yaml
|
|
108
|
+
apiKey: ${MIND_API_KEY} # required (or use env var)
|
|
109
|
+
baseUrl: https://www.m-i-n-d.ai # override only for self-hosting
|
|
110
|
+
autoCapture: true # extract facts after each turn
|
|
111
|
+
autoRecall: true # inject memories before each turn
|
|
112
|
+
topK: 10 # memories to inject per turn
|
|
113
|
+
searchThreshold: 0.5 # similarity threshold (0-1)
|
|
114
|
+
queryMode: hybrid # hybrid | mix | global | local | naive
|
|
115
|
+
enableMindsense: true # MINDsense emotional weighting
|
|
116
|
+
enableLifeIntegration: true # allow agent to create life items
|
|
117
|
+
enableCrmLogging: true # allow agent to log contacts
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## CLI Reference
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
openclaw mind init [--api-key KEY] [--email EMAIL]
|
|
124
|
+
openclaw mind status
|
|
125
|
+
openclaw mind import [--workspace PATH]
|
|
126
|
+
openclaw mind search "your query"
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## Open Source
|
|
130
|
+
|
|
131
|
+
MIT licensed. Source at [github.com/theastraway/openclaw-mind](https://github.com/theastraway/openclaw-mind).
|
|
132
|
+
|
|
133
|
+
## About
|
|
134
|
+
|
|
135
|
+
Built by [Astrai AI, Inc.](https://www.m-i-n-d.ai) — makers of MIND, the world's first personal knowledge graph AI platform.
|
|
136
|
+
|
|
137
|
+
Patents pending: MIND-PAT-001 (MINDsense Emotional Intelligence Engine, App. No. 64/030,662) and MIND-PAT-002 (Cross-Agent Persistent Memory via Model Context Protocol).
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as openclaw_plugin_sdk_plugin_entry from 'openclaw/plugin-sdk/plugin-entry';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @astramindapp/openclaw-mind
|
|
5
|
+
*
|
|
6
|
+
* MIND personal knowledge graph for OpenClaw.
|
|
7
|
+
* 11 tools, 4 skills, full lifecycle hooks.
|
|
8
|
+
*
|
|
9
|
+
* Pattern modeled on @mem0/openclaw-mem0 (Apache-2.0). Differences:
|
|
10
|
+
* - True knowledge graph backend (LightRAG) instead of vectors
|
|
11
|
+
* - MINDsense emotional weighting on every captured fact (patented)
|
|
12
|
+
* - 11 tools vs Mem0's 8 (adds query_graph, recall_emotional, context, life, crm_log)
|
|
13
|
+
* - 4 skills vs Mem0's 2 (adds emotional-encoding, graph-recall)
|
|
14
|
+
* - Backed by the MIND personal AI platform with 50+ models, life mgmt, CRM, social
|
|
15
|
+
*/
|
|
16
|
+
declare const _default: {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
configSchema: openclaw_plugin_sdk_plugin_entry.OpenClawPluginConfigSchema;
|
|
21
|
+
register: NonNullable<openclaw_plugin_sdk_plugin_entry.OpenClawPluginDefinition["register"]>;
|
|
22
|
+
} & Pick<openclaw_plugin_sdk_plugin_entry.OpenClawPluginDefinition, "kind" | "reload" | "nodeHostCommands" | "securityAuditCollectors">;
|
|
23
|
+
|
|
24
|
+
export { _default as default };
|