Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand All @@ -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}"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion clawdbot.plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
)
}

Expand Down