From fe2fc4c9f860dd1c03d2e4566865f1eedaaf2cdc Mon Sep 17 00:00:00 2001 From: Prasanna721 Date: Tue, 27 Jan 2026 13:44:37 -0800 Subject: [PATCH] Rename env var to SUPERMEMORY_CLAWDBOT_API_KEY Disambiguate env var name for plugin-specific API key - Renamed SUPERMEMORY_API_KEY to SUPERMEMORY_CLAWDBOT_API_KEY in config --- README.md | 4 ++-- clawdbot.plugin.json | 2 +- config.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 93625b8..f6808ec 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ The only required value is your Supermemory API key. Get one at [console.superme Set it as an environment variable: ```bash -export SUPERMEMORY_API_KEY="sm_..." +export SUPERMEMORY_CLAWDBOT_API_KEY="sm_..." ``` Or configure it directly in `clawdbot.json`: @@ -29,7 +29,7 @@ Or configure it directly in `clawdbot.json`: "clawdbot-supermemory": { "enabled": true, "config": { - "apiKey": "${SUPERMEMORY_API_KEY}" + "apiKey": "${SUPERMEMORY_CLAWDBOT_API_KEY}" } } } diff --git a/clawdbot.plugin.json b/clawdbot.plugin.json index 4ef6dba..344a7d8 100644 --- a/clawdbot.plugin.json +++ b/clawdbot.plugin.json @@ -6,7 +6,7 @@ "label": "Supermemory API Key", "sensitive": true, "placeholder": "sm_...", - "help": "Your API key from console.supermemory.ai (or use ${SUPERMEMORY_API_KEY})" + "help": "Your API key from console.supermemory.ai (or use ${SUPERMEMORY_CLAWDBOT_API_KEY})" }, "containerTag": { "label": "Container Tag", diff --git a/config.ts b/config.ts index 0e670d4..dea6cc1 100644 --- a/config.ts +++ b/config.ts @@ -69,11 +69,11 @@ export function parseConfig(raw: unknown): SupermemoryConfig { const apiKey = typeof cfg.apiKey === "string" && cfg.apiKey.length > 0 ? resolveEnvVars(cfg.apiKey) - : process.env.SUPERMEMORY_API_KEY + : process.env.SUPERMEMORY_CLAWDBOT_API_KEY if (!apiKey) { throw new Error( - "supermemory: apiKey is required (set in plugin config or SUPERMEMORY_API_KEY env var)", + "supermemory: apiKey is required (set in plugin config or SUPERMEMORY_CLAWDBOT_API_KEY env var)", ) }