memtap 2.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 +122 -0
- package/index.ts +2816 -0
- package/openclaw.plugin.json +115 -0
- package/package.json +40 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 psifactory LLC
|
|
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,122 @@
|
|
|
1
|
+
# MemTap — Graph-Based Agent Memory for OpenClaw
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/memtap)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
|
|
6
|
+
**MemTap** gives your OpenClaw agent a persistent, graph-based long-term memory powered by ArangoDB.
|
|
7
|
+
|
|
8
|
+
Instead of simple vector recall, MemTap builds a **knowledge graph** — memories are connected through entities, relationships, and temporal context. Your agent remembers facts, tracks decisions, discovers connections through multi-hop graph traversal, and consolidates knowledge over time.
|
|
9
|
+
|
|
10
|
+
## Quick Start
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
# Install the plugin
|
|
14
|
+
openclaw plugins install memtap
|
|
15
|
+
|
|
16
|
+
# Sign up and get your API key at https://memtap.ai
|
|
17
|
+
|
|
18
|
+
# Configure
|
|
19
|
+
openclaw config set plugins.entries.memtap.config.apiKey "mt_live_your_key_here"
|
|
20
|
+
openclaw config set plugins.entries.memtap.config.serverUrl "https://api.memtap.ai"
|
|
21
|
+
|
|
22
|
+
# Restart gateway
|
|
23
|
+
openclaw gateway restart
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
That's it. Your agent now has memory.
|
|
27
|
+
|
|
28
|
+
## What It Does
|
|
29
|
+
|
|
30
|
+
### 14 Tools
|
|
31
|
+
|
|
32
|
+
| Tool | Description |
|
|
33
|
+
|------|-------------|
|
|
34
|
+
| `memtap_recall` | Semantic search across the knowledge graph |
|
|
35
|
+
| `memtap_remember` | Store a new memory with auto-extracted entities |
|
|
36
|
+
| `memtap_bulletin` | Context bulletin with graph expansion — agent "knows" related things |
|
|
37
|
+
| `memtap_graphrag` | Multi-hop GraphRAG: vector/BM25 search + graph traversal |
|
|
38
|
+
| `memtap_maintenance` | Memory hygiene: decay reports, contradiction detection, dedup |
|
|
39
|
+
| `memtap_graph` | Graph analysis: overview, gaps, clusters, connections, traverse |
|
|
40
|
+
| `memtap_decide` | Decision tracking: create, list, resolve, defer |
|
|
41
|
+
| `memtap_memory` | CRUD operations on individual memories |
|
|
42
|
+
| `memtap_entities` | Entity management: list, get linked memories, merge duplicates |
|
|
43
|
+
| `memtap_edges` | Create relationships between memories |
|
|
44
|
+
| `memtap_health` | Server health check and memory statistics |
|
|
45
|
+
| `memtap_monitor` | Neural performance monitoring and analytics |
|
|
46
|
+
| `memtap_alerts` | Anomaly detection and alerting system |
|
|
47
|
+
| `memtap_dashboard` | Comprehensive system overview dashboard |
|
|
48
|
+
|
|
49
|
+
### 5 Hooks
|
|
50
|
+
|
|
51
|
+
- **Pre-message recall** — Automatically loads relevant context before each conversation turn
|
|
52
|
+
- **Post-message capture** — Extracts and stores important information from conversations
|
|
53
|
+
- **Bootstrap bulletin** — Injects a memory context bulletin when an agent session starts
|
|
54
|
+
- **Periodic consolidation** — Background memory maintenance and knowledge consolidation
|
|
55
|
+
- **Session analytics** — Performance monitoring across sessions
|
|
56
|
+
|
|
57
|
+
## Configuration
|
|
58
|
+
|
|
59
|
+
```json5
|
|
60
|
+
{
|
|
61
|
+
"plugins": {
|
|
62
|
+
"entries": {
|
|
63
|
+
"memtap": {
|
|
64
|
+
"enabled": true,
|
|
65
|
+
"config": {
|
|
66
|
+
"serverUrl": "https://api.memtap.ai",
|
|
67
|
+
"apiKey": "mt_live_...",
|
|
68
|
+
"agentId": "main", // optional: scope memories per agent
|
|
69
|
+
"autoCapture": true, // auto-extract memories from conversations
|
|
70
|
+
"bulletinOnBoot": true, // inject memory context on session start
|
|
71
|
+
"bulletinTopics": ["projects", "preferences"],
|
|
72
|
+
"decayRate": 0.005 // memory importance decay per day
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Optional: Embedding Support
|
|
81
|
+
|
|
82
|
+
For vector-enhanced GraphRAG search, configure an embedding provider:
|
|
83
|
+
|
|
84
|
+
```json5
|
|
85
|
+
{
|
|
86
|
+
"embeddingUrl": "https://api.openai.com/v1/embeddings",
|
|
87
|
+
"embeddingModel": "text-embedding-3-small",
|
|
88
|
+
"embeddingApiKey": "sk-..."
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Pricing
|
|
93
|
+
|
|
94
|
+
| Plan | Price | Memories | Agents | API Calls |
|
|
95
|
+
|------|-------|----------|--------|-----------|
|
|
96
|
+
| Free | $0/mo | 1,000 | 1 | 10,000 |
|
|
97
|
+
| Starter | $13/mo | 50,000 | 3 | 500,000 |
|
|
98
|
+
| Pro | $43/mo | 500,000 | 15 | 5,000,000 |
|
|
99
|
+
| Team | $109/mo | 2,000,000 | Unlimited | 50,000,000 |
|
|
100
|
+
| Enterprise | $1,299/mo | 10,000,000 | Custom | Custom |
|
|
101
|
+
|
|
102
|
+
Sign up at [memtap.ai](https://memtap.ai) to get your API key.
|
|
103
|
+
|
|
104
|
+
## Why MemTap?
|
|
105
|
+
|
|
106
|
+
- **Graph-based**: Full knowledge graph, not just vector similarity
|
|
107
|
+
- **GraphRAG**: Multi-hop traversal discovers connections vector search misses
|
|
108
|
+
- **Decision tracking**: Unique decision management for AI agents
|
|
109
|
+
- **Auto-capture**: Learns from conversations without explicit commands
|
|
110
|
+
- **Memory decay**: Natural forgetting keeps the graph relevant
|
|
111
|
+
- **8x cheaper**: $13/mo vs $99/mo (Mem0, Zep)
|
|
112
|
+
|
|
113
|
+
## Links
|
|
114
|
+
|
|
115
|
+
- **Website**: [memtap.ai](https://memtap.ai)
|
|
116
|
+
- **API Docs**: [api.memtap.ai](https://api.memtap.ai)
|
|
117
|
+
- **GitHub**: [github.com/memtap/openclaw-plugin](https://github.com/memtap/openclaw-plugin)
|
|
118
|
+
- **Support**: [github.com/memtap/openclaw-plugin/issues](https://github.com/memtap/openclaw-plugin/issues)
|
|
119
|
+
|
|
120
|
+
## License
|
|
121
|
+
|
|
122
|
+
MIT — [psifactory LLC](https://psifactory.io)
|