The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
fix: allow anonymousTelemetryId in openclaw.json config (#4826)
Parteeksachdeva57f944e18ad8
diff --git a/openclaw/config.ts b/openclaw/config.tsindex 94cb1226c..32d6a8964 100644--- a/openclaw/config.ts+++ b/openclaw/config.ts@@ -147,6 +147,7 @@ export const DEFAULT_CUSTOM_CATEGORIES: Record<string, string> = {const ALLOWED_KEYS = ["mode","apiKey",+ "anonymousTelemetryId","baseUrl","userId","userEmail",@@ -215,6 +216,10 @@ export const mem0ConfigSchema = {return {mode,apiKey: resolvedApiKey,+ anonymousTelemetryId:+ typeof cfg.anonymousTelemetryId === "string"+ ? cfg.anonymousTelemetryId+ : undefined,baseUrl: resolvedBaseUrl,userId:typeof cfg.userId === "string" && cfg.userIddiff --git a/openclaw/openclaw.plugin.json b/openclaw/openclaw.plugin.jsonindex 6158c260c..5bafe6d46 100644--- a/openclaw/openclaw.plugin.json+++ b/openclaw/openclaw.plugin.json@@ -134,6 +134,10 @@"topK": {"type": "number"},+ "anonymousTelemetryId": {+ "type": "string",+ "description": "Persistent anonymous telemetry identifier"+ },"oss": {"type": "object","properties": {diff --git a/openclaw/tests/config.test.ts b/openclaw/tests/config.test.tsindex 7b420213a..6e99a0f39 100644--- a/openclaw/tests/config.test.ts+++ b/openclaw/tests/config.test.ts@@ -88,6 +88,11 @@ describe("mem0ConfigSchema.parse() — defaults", () => {const cfg = mem0ConfigSchema.parse({ apiKey: "test-key" });expect(cfg.skills).toBeUndefined();});++ it("allows anonymousTelemetryId", () => {+ const cfg = mem0ConfigSchema.parse({ apiKey: "test-key", anonymousTelemetryId: "123" });+ expect(cfg.anonymousTelemetryId).toBe("123");+ });});// ---------------------------------------------------------------------------diff --git a/openclaw/types.ts b/openclaw/types.tsindex 2e375739f..5aef97a4c 100644--- a/openclaw/types.ts+++ b/openclaw/types.ts@@ -8,6 +8,7 @@ export type Mem0Config = {mode: Mem0Mode;// Platform-specificapiKey?: string;+ anonymousTelemetryId?: string;baseUrl?: string;customInstructions: string;customCategories: Record<string, string>;