Skip to content

Commit fcf1101

Browse files
committed
Fix OpenClaw Supermemory onboarding
1 parent 93fe36c commit fcf1101

4 files changed

Lines changed: 26 additions & 5 deletions

File tree

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ Long-term memory for OpenClaw. Automatically remembers conversations, recalls re
1212
openclaw plugins install @supermemory/openclaw-supermemory
1313
```
1414

15-
Restart OpenClaw after installing.
16-
1715
## Setup
1816

1917
```bash
2018
openclaw supermemory setup
19+
openclaw gateway restart
2120
```
2221

2322
Enter your API key from [app.supermemory.ai](https://app.supermemory.ai/?view=integrations). That's it.
@@ -26,6 +25,7 @@ Enter your API key from [app.supermemory.ai](https://app.supermemory.ai/?view=in
2625

2726
```bash
2827
openclaw supermemory setup-advanced
28+
openclaw gateway restart
2929
```
3030

3131
Configure all options interactively: container tag, auto-recall, auto-capture, capture mode, custom container tags, and more.
@@ -100,9 +100,16 @@ Or configure in `~/.openclaw/openclaw.json`:
100100
```json
101101
{
102102
"plugins": {
103+
"slots": {
104+
"memory": "openclaw-supermemory"
105+
},
103106
"entries": {
104107
"openclaw-supermemory": {
105108
"enabled": true,
109+
"hooks": {
110+
"allowPromptInjection": true,
111+
"allowConversationAccess": true
112+
},
106113
"config": {
107114
"apiKey": "${SUPERMEMORY_OPENCLAW_API_KEY}",
108115
"containerTag": "my_memory",

commands/cli.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,15 @@ export function registerCli(
5858
if (!config.plugins) config.plugins = {}
5959
const plugins = config.plugins as Record<string, unknown>
6060
if (!plugins.entries) plugins.entries = {}
61+
if (!plugins.slots) plugins.slots = {}
6162
const entries = plugins.entries as Record<string, unknown>
63+
const slots = plugins.slots as Record<string, unknown>
64+
slots.memory = "openclaw-supermemory"
6265

6366
entries["openclaw-supermemory"] = {
6467
enabled: true,
6568
hooks: {
69+
allowPromptInjection: true,
6670
allowConversationAccess: true,
6771
},
6872
config: {
@@ -78,7 +82,7 @@ export function registerCli(
7882

7983
console.log("\n✓ API key saved to ~/.openclaw/openclaw.json")
8084
console.log(
81-
" Restart OpenClaw to apply changes: openclaw gateway --force\n",
85+
" Restart OpenClaw to apply changes: openclaw gateway restart\n",
8286
)
8387
})
8488

@@ -280,7 +284,10 @@ export function registerCli(
280284
if (!config.plugins) config.plugins = {}
281285
const plugins = config.plugins as Record<string, unknown>
282286
if (!plugins.entries) plugins.entries = {}
287+
if (!plugins.slots) plugins.slots = {}
283288
const entries = plugins.entries as Record<string, unknown>
289+
const slots = plugins.slots as Record<string, unknown>
290+
slots.memory = "openclaw-supermemory"
284291

285292
const pluginConfig: Record<string, unknown> = {
286293
apiKey: apiKey.trim(),
@@ -314,6 +321,7 @@ export function registerCli(
314321
entries["openclaw-supermemory"] = {
315322
enabled: true,
316323
hooks: {
324+
allowPromptInjection: true,
317325
allowConversationAccess: true,
318326
},
319327
config: pluginConfig,
@@ -358,7 +366,7 @@ export function registerCli(
358366
` Routing instructions: "${customContainerInstructions.trim().slice(0, 50)}${customContainerInstructions.length > 50 ? "..." : ""}"`,
359367
)
360368
}
361-
console.log("\nRestart OpenClaw to apply: openclaw gateway --force\n")
369+
console.log("\nRestart OpenClaw to apply: openclaw gateway restart\n")
362370
})
363371

364372
cmd

openclaw.plugin.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"id": "openclaw-supermemory",
33
"kind": "memory",
4+
"commandAliases": [
5+
{
6+
"name": "supermemory",
7+
"cliCommand": "supermemory"
8+
}
9+
],
410
"contracts": {
511
"tools": [
612
"supermemory_search",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@supermemory/openclaw-supermemory",
3-
"version": "2.1.13",
3+
"version": "2.1.14",
44
"type": "module",
55
"description": "OpenClaw Supermemory memory plugin",
66
"license": "MIT",

0 commit comments

Comments
 (0)