diff --git a/apps/docs/docs.json b/apps/docs/docs.json index 89aae4290..c558c1840 100644 --- a/apps/docs/docs.json +++ b/apps/docs/docs.json @@ -183,7 +183,8 @@ { "group": "Plugins", "pages": [ - "integrations/clawdbot" + "integrations/clawdbot", + "integrations/claude-code" ] } ] diff --git a/apps/docs/images/claude-code-icon.svg b/apps/docs/images/claude-code-icon.svg new file mode 100644 index 000000000..210688d84 --- /dev/null +++ b/apps/docs/images/claude-code-icon.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/apps/docs/images/claude-code-supermemory.png b/apps/docs/images/claude-code-supermemory.png new file mode 100644 index 000000000..c856c9ace Binary files /dev/null and b/apps/docs/images/claude-code-supermemory.png differ diff --git a/apps/docs/integrations/claude-code.mdx b/apps/docs/integrations/claude-code.mdx new file mode 100644 index 000000000..4a130f777 --- /dev/null +++ b/apps/docs/integrations/claude-code.mdx @@ -0,0 +1,113 @@ +--- +title: "Claude Code" +sidebarTitle: "Claude Code" +description: "Claude Code Supermemory Plugin — persistent memory across coding sessions" +icon: "/images/claude-code-icon.svg" +--- + +
+ Claude Code + Supermemory +
+ +[Claude-Supermemory](https://github.com/supermemoryai/claude-supermemory) is a Claude Code plugin that gives your AI persistent memory across sessions. Your agent remembers what you worked on — across sessions, across projects. + +## Get Your API Key + +Create a Supermemory API key from the [API Keys](https://console.supermemory.ai/keys) page, then add it to your shell profile so it persists across sessions: + + + + ```bash + echo 'export SUPERMEMORY_CC_API_KEY="sm_..."' >> ~/.zshrc + source ~/.zshrc + ``` + + + ```bash + echo 'export SUPERMEMORY_CC_API_KEY="sm_..."' >> ~/.bashrc + source ~/.bashrc + ``` + + + ```powershell + [System.Environment]::SetEnvironmentVariable("SUPERMEMORY_CC_API_KEY", "sm_...", "User") + ``` + Restart your terminal after running this. + + + +## Install the Plugin + +```bash +# Add the plugin marketplace +/plugin marketplace add supermemoryai/claude-supermemory + +# Install the plugin +/plugin install claude-supermemory +``` + +## How It Works + +Once installed, the plugin runs automatically: + +- **Context Injection** — On session start, relevant memories are fetched and injected into Claude's context. This includes user preferences, project knowledge, and past interactions. +- **Auto-Capture** — Tool usage is captured and stored during the session for future context. + +### What Gets Captured + +| Tool | Captured As | +| ----- | --------------------------------------------------- | +| Edit | `Edited src/auth.ts: "old code..." → "new code..."` | +| Write | `Created src/new-file.ts (500 chars)` | +| Bash | `Ran: npm test (SUCCESS/FAILED)` | +| Task | `Spawned agent: explore codebase` | + +## Commands + +### /claude-supermemory:logout + +Log out from Supermemory and clear saved credentials. + +``` +/claude-supermemory:logout +``` + +## Configuration + +### Environment Variables + +```bash +SUPERMEMORY_CC_API_KEY=sm_... # Required +SUPERMEMORY_SKIP_TOOLS=Read,Glob,Grep # Tools to not capture (optional) +SUPERMEMORY_DEBUG=true # Enable debug logging (optional) +``` + +### Settings File + +Create `~/.supermemory-claude/settings.json`: + +```json +{ + "skipTools": ["Read", "Glob", "Grep", "TodoWrite"], + "captureTools": ["Edit", "Write", "Bash", "Task"], + "maxContextMemories": 10, + "maxProjectMemories": 20, + "debug": false +} +``` + +## Next Steps + + + + Source code, issues, and detailed README. + + + + Multi-platform memory for Telegram, WhatsApp, Discord, and more. + +