refactor: update OpenClaw plugin config, hook logic, and documentation (#4764)

This commit is contained in:
Kartik
2026-04-09 17:36:05 +05:30
committed by GitHub
parent 88f696a60a
commit 78ca85a260
5 changed files with 34 additions and 58 deletions
+17 -27
View File
@@ -1,7 +1,7 @@
{
"id": "openclaw-mem0",
"name": "Memory (Mem0)",
"description": "Mem0 memory backend for OpenClaw — platform or self-hosted open-source",
"description": "Mem0 memory backend for OpenClaw — platform or self-hosted open-source. Injects recalled memories into agent context (auto-recall) and extracts facts after each turn (auto-capture). Both configurable via autoRecall/autoCapture settings.",
"version": "1.0.5",
"kind": "memory",
"skills": ["skills"],
@@ -13,9 +13,23 @@
},
"providerAuthEnvVars": {
"mem0": ["MEM0_API_KEY"],
"mem0-oss-openai": ["OPENAI_API_KEY"],
"mem0-oss-anthropic": ["ANTHROPIC_API_KEY"]
"openclaw-mem0-oss": ["OPENAI_API_KEY"]
},
"providerAuthChoices": [
{
"provider": "mem0",
"method": "api-key",
"choiceId": "mem0-api-key",
"choiceLabel": "Mem0 API key",
"choiceHint": "Required for platform mode. Get your key at https://app.mem0.ai/dashboard/api-keys",
"groupId": "mem0",
"groupLabel": "Mem0",
"optionKey": "apiKey",
"cliFlag": "--mem0-api-key",
"cliOption": "--mem0-api-key <key>",
"cliDescription": "Mem0 platform API key"
}
],
"uiHints": {
"mode": {
"label": "Mode",
@@ -32,16 +46,6 @@
"placeholder": "default",
"help": "User ID for scoping memories"
},
"orgId": {
"label": "Organization ID",
"placeholder": "org-...",
"advanced": true
},
"projectId": {
"label": "Project ID",
"placeholder": "proj-...",
"advanced": true
},
"autoCapture": {
"label": "Auto-Capture",
"help": "Automatically store conversation context after each agent turn"
@@ -65,10 +69,6 @@
"advanced": true,
"help": "Custom prompt for open-source mode memory extraction."
},
"enableGraph": {
"label": "Enable Graph Memory",
"help": "Enable Mem0 graph memory for entity relationships (platform mode only)"
},
"searchThreshold": {
"label": "Search Threshold",
"placeholder": "0.5",
@@ -110,12 +110,6 @@
"userEmail": {
"type": "string"
},
"orgId": {
"type": "string"
},
"projectId": {
"type": "string"
},
"autoCapture": {
"type": "boolean"
},
@@ -134,9 +128,6 @@
"customPrompt": {
"type": "string"
},
"enableGraph": {
"type": "boolean"
},
"searchThreshold": {
"type": "number"
},
@@ -192,7 +183,6 @@
"properties": {
"enabled": { "type": "boolean" },
"importanceThreshold": { "type": "number" },
"enableGraph": { "type": "boolean" },
"credentialPatterns": { "type": "array", "items": { "type": "string" } }
}
},