Skip to content
Agent Memory
Command

/project-config

Update Supermemory project-level configuration

From plugin
claude-supermemory
2.7k4 skills4 commands
Install
> /plugin marketplace add supermemoryai/claude-supermemory
> /plugin install supermemory@supermemory-plugins

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/project-config

Context preview

What this command does when you run it.

Update Supermemory project-level configuration

Command definition

project-config.md
description: Update Supermemory project-level configuration
allowed-tools: ["Bash", "Read", "Edit", "AskUserQuestion"]

Project Config

Update project-level config stored in `.claude/.supermemory-claude/config.json`.

Steps

1. 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 "{}"

2. Ask the user what they want to update using AskUserQuestion:

  • **API Key** (`apiKey`): Project-level API key that overrides global
  • **Base URL** (`baseUrl`): Supermemory API base URL, defaults to `https://api.supermemory.ai`
  • **Project Container Tag** (`repoContainerTag`): Overrides the unified container used by Claude Code and Codex
  • **Legacy Personal Container Tag** (`personalContainerTag`): Optional read-only fallback for memories created by older plugin versions

3. Ask the user for the new value. Confirm the value they provide.

4. 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`, `baseUrl`, `repoContainerTag`, or the legacy-read-only `personalContainerTag`, and `NEW_VALUE` with the user's provided value.

5. Confirm to the user the project configuration has been updated.

Read more
Ships withclaude-supermemory

A Claude Code plugin that gives your AI persistent memory across sessions using Supermemory. Your agent remembers what you worked on - across sessions, across projects.

Get the whole plugin
Stats
2,736
Stars
167
Forks
Active
Maintenance
JavaScript
Language
3d ago
Last commit
6mo ago
Created

Repo: supermemoryai/claude-supermemory