Updates Supermemory project config (API key, personal/repo container tags) via prompts, editing .claude/.supermemory-claude/config.json in git root.
From claude-supermemorynpx claudepluginhub supermemoryai/claude-supermemory --plugin claude-supermemory/project-configConfigures per-project Cognis settings like API key, owner/agent IDs, and signal extraction options by updating .claude/.cognis-claude/config.json.
Update project-level config stored in .claude/.supermemory-claude/config.json.
First, find the git root and read the current project config:
git_root=$(git rev-parse --show-toplevel 2>/dev/null || echo "$(pwd)")
cat "$git_root/.claude/.supermemory-claude/config.json" 2>/dev/null || echo "{}"
Ask the user what they want to update using AskUserQuestion:
apiKey): Project-level API key that overrides globalpersonalContainerTag): Used for saving and searching personal memories across sessionsrepoContainerTag): Used for repo-level memories shared across teamAsk the user for the new value. Confirm the value they provide.
Update the project config file:
node -e "
const fs = require('fs');
const path = require('path');
const { execSync } = require('child_process');
let gitRoot;
try { gitRoot = execSync('git rev-parse --show-toplevel', { encoding: 'utf-8' }).trim(); } catch { gitRoot = process.cwd(); }
const dir = path.join(gitRoot, '.claude', '.supermemory-claude');
const file = path.join(dir, 'config.json');
let data = {};
try { data = JSON.parse(fs.readFileSync(file, 'utf-8')); } catch {}
data['KEY_NAME'] = 'NEW_VALUE';
fs.mkdirSync(dir, { recursive: true });
fs.writeFileSync(file, JSON.stringify(data, null, 2));
console.log('Updated: ' + file);
"
Replace KEY_NAME with apiKey, personalContainerTag, or repoContainerTag and NEW_VALUE with the user's provided value.
Confirm to the user the project configuration has been updated.